@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
}

.body_class {
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--mud-palette-text-primary) !important;
    background-color: var(--mud-palette-background) !important;
}

#app {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.btn-primary {
    background-color: #007bff !important; /* Butonun arka plan rengini ayarla */
    border-color: #007bff !important; /* Kenarlık rengi */
    color: white !important; /* Yazı rengi */
}

    .btn-primary:hover {
        background-color: #0056b3 !important; /* Hover rengini koyulaştır */
        border-color: #004085 !important;
    }


.p_color {
    color: var(--mud-palette-text-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3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ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*.mud-icon-root.mud-svg-icon {
    color: #5cb338 !important;
}*/

/*.mud-nav-link-text {
    color: #0c4295 !important;
}

.dark-mode .mud-nav-link-text {
    color: #ffcc00 !important; 
}
*/
.mud-button-filled-primary {
    background-color: #0c4295 !important;
}

.mud-button-filled-success {
    background-color: #5cb338 !important;
}

.mud-input-label {
    line-height: 1.5 !important;
    padding-bottom: 4px !important;
}

.go_today {
    cursor: pointer;
    color: var(--mud-palette-text-primary);
}

.doc-in {
    color: #2e7d32;
    font-weight: bold;
}

.doc-out {
    color: #c62828;
    font-weight: bold;
}

.search-bar-container {
    background-color: #f1f8f6; /* Açık yeşil */
    border-radius: 8px;
    color: #f1f8f6;
    border: 1px solid #d8e8e3;
}

.search-box {
    width: 100%;
    background-color: white;
    border-radius: 6px;
}

:root {
    font-family: poppins, Helvetica, sans-serif;
    font-size: 18px;
    overflow-x: hidden;
    background-color: var(--mud-palette-background);
    --gray--: rgb(110, 110, 110);
    --black--: rgb(31, 31, 31);
    --blue--: rgb(53, 137, 233);
}

/* Orta kısım (Feed) */
#second_box {
    width: 100%;
    padding: 20px;
    margin: 0.5em;
}

#header_main {
    display: flex;
    justify-content: center;
}

.logo {
    width: 2em;
}

li {
    list-style: none;
    display: inline;
}

.profile_icon {
    width: 2.5em;
    border-radius: 5px;
}

.header_icon_p {
    margin-top: 0.7em;
}

.search_input {
    border: none;
    width: 20em;
    height: 3em;
    margin: 10px;
    padding: 10px;
    border-radius: 3px;
    background-color: rgb(230, 230, 230);
}

    .search_input::placeholder {
        color: rgb(151, 151, 151);
    }

.img_logo {
    margin-top: auto;
    margin-bottom: auto;
}

.header_link {
    font-weight: 500;
    font-size: 14px;
    margin: 10px;
    color: var(--gray--);
}

a {
    text-decoration: none;
    color: black;
}

.header_icon {
    text-align: center;
    color: var(--gray--);
    padding: 10px;
    margin: 0.1em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    border-radius: 2px;
    background-color: rgba(236, 236, 243, 0.815);
}

.gray {
    color: var(--gray--);
    font-size: 15px;
}

.header_content_one {
    display: flex;
    margin-left: 2%;
}

.box {
    margin-top: 1.5em;
    /*margin-left: 3em;
    margin-right: 3em;*/
    margin-bottom: 2em;
}

#header_box {
    width: 100%;
    background-color: white;
    position: relative;
    margin-top: -0.5em;
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding-right: 20px;
}

.comment_box {
    margin-top: 1em;
    background-color: white;
    width: 100%;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid rgba(220, 220, 220, 0.925);
}

.left-employee {
    color: red !important;
}

.new-employee {
    color: green !important;
}

.long-term {
    color: black !important;
}

.flex_comment {
    display: flex;
}

.comment_icons {
    margin-top: 1.5em;
}

.text_input {
    width: 100%;
    height: 2em;
    padding: 18px;
    font-size: 15px;
    border: none;
}

.link {
    font-size: 13px;
    margin: 0.7em;
    padding: 6px;
    border-radius: 4px;
    width: fit-content;
    background-color: rgba(236, 236, 243, 0.815);
}

.first_post {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    margin-top: 1.5em;
    margin-left: 0;
    border: 1px solid rgba(220, 220, 220, 0.925);
    position: relative;
}

.elem_one {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}


.post_hour {
    font-size: small;
    color: var(--gray--);
    font-weight: 500;
}

.hour_box {
    margin-top: -1em;
    margin-left: 0em;
}

.detail1 {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.userjob {
    color: var(--gray--);
    font-size: 13.5px;
    margin-top: -1.4em;
}

.caption {
    font-size: 16px;
    margin: 10px 0;
}

.post {
    width: 100%;
}

/*.feed_post {
    width: 100%;
    border-radius: 5px;
}
*/
.feed_post, video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 5px;
}

.loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .loader-container p {
        margin-top: 10px;
        font-weight: bold;
        color: #333;
    }


.interaction {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    color: var(--gray--);
}

.btn {
    margin: 0.3em;
    color: var(--gray--);
}

.send_comment_btn {
    margin: 0.3em;
    margin-left: 3em;
    color: #f8f9fa;
    background-color: #5cb338;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}


.flex {
    display: flex;
    justify-content: space-between; /* İsmi sola, tarihi sağa it */
    align-items: center; /* Dikey hizalama */
    width: 100%;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}

h6 {
    margin: 0; /* Varsayılan boşlukları kaldır */
    flex-grow: 1; /* İsmin genişliği, kalan alanı kaplar */
}

.time_posted {
    font-size: 13px; /* h6 ile aynı yükseklikte tut */
    color: var(--gray--);
    white-space: nowrap; /* Alt satıra düşmesini önle */
    margin-left: 10px; /* İsme biraz boşluk bırak */
}

.hidden-input {
    display: none; /* InputFile bileşenini gizle */
}

.custom-file-upload {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: none;
}

    .custom-file-upload:hover {
        background-color: #0056b3;
    }

.file-name {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Seçimi Sil Butonu */
.delete-file-btn {
    background-color: #dc3545;
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
}

    .delete-file-btn:hover {
        background-color: #a71d2a;
    }


.comment_controls {
    margin-left: 4em;
}

.control {
    margin: 0.5em;
    font-size: 14px;
    color: var(--gray--);
}

.load_more {
    width: 0%;
    font-size: 16px;
    margin: 5px auto;
    display: block;
    text-align: center;
    border-radius: 5px;
    /*background-color: #bbd3f2;*/
    color: transparent;
    border: none;
    cursor: pointer;
}

.load_more2 {
    width: 0%;
    font-size: 6px;
    margin: 2px auto;
    display: block;
    text-align: center;
    border-radius: 5px;
    /*background-color: #bbd3f2;*/
    color: transparent;
    border: none;
    cursor: pointer;
}

/* Örnek user avatar alanı */
.user {
    width: 2.2em;
    height: 2em;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("/img/admin.jpg");
    padding: 5px;
    border-radius: 55%;
    margin-left: 10px;
    justify-content: center;
}

.user_post {
    width: 3em;
    height: 3em;
    background-repeat: no-repeat;
    background-size: cover;
    /*background-image: url("/img/admin.jpg");*/
    padding: 5px;
    border-radius: 55%;
    margin-left: 8px;
    justify-content: center;
}

.detail1 {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.pinned-post {
    border: 2px solid rgba(100, 100, 100, 0.6);
}

.pinned-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: black;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .pinned-label i {
        font-size: 14px;
    }

.top-bar {
    position: fixed;
    top: 5em;
    right: 1.8em;
    z-index: 1000;
    /* background: white;*/
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


.saved-posts-btn {
    background-color: #ffc107;
    color: black;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}


.saved-post-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.saved-post-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.unsave-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* ...isteğe göre daha fazla .userX vb. eklenebilir */

hr {
    border: 1px solid gainsboro;
}

/* Renkli ikonlar */
.green {
    color: rgb(148, 202, 148);
}

.red {
    color: rgb(248, 130, 130);
}

.yellow {
    color: rgb(197, 195, 90);
}

/* Responsive (media queries) */
@media (max-width: 1250px) {
    #second_box {
        width: 35%;
    }
}

@media (max-width: 1100px) {
    #second_box {
        width: 45%;
    }

    .search_input {
        display: none;
    }

    .header_content_two {
        float: right;
    }

    .header_content_one {
        float: left;
    }

    .header_link {
        font-size: 13px;
        margin: 5px;
    }

    .logo {
        width: 2.4em;
    }
}

@media (max-width: 900px) {
    #second_box {
        width: 65%;
    }

    .inline_list {
        display: none;
    }

    .search_input {
        display: inline-block;
        height: 3em;
    }

    .story {
        width: 15em;
        height: 15em;
    }
}

@media (max-width: 650px) {
    #second_box {
        width: 55%;
        margin-left: -0.7em;
    }

    #main_layout {
        margin-left: 2%;
        padding: 20px;
    }

    .search_input {
        display: none;
    }

    .header_content_two {
        margin-left: 27%;
    }

    .story {
        font-size: 10px;
    }

    .calendar {
        min-width: 700px; /* 7 * 100px */
        grid-template-columns: repeat(7, minmax(100px, 1fr));
    }
}

@media (max-width: 500px) {
    #second_box {
        width: 49%;
    }
}


.calendar {
    display: grid;
    /*width: 100%;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    grid-template-rows: 50px;
    grid-auto-rows: 120px;*/
    min-width: 840px;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    grid-template-rows: 50px;
    grid-auto-rows: 120px;
    overflow: visible;
}

.calendar-container {
    width: 100%;
    margin: auto;
    /*overflow: hidden;*/
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
}

.calendar-header {
    text-align: center;
    padding: 20px 0;
    background: var(--mud-palette-background) !important;
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .calendar-header .header-title {
        text-align: center;
    }

        .calendar-header .header-title h1 {
            margin: 0;
            text-align: center;
            font-size: 18px;
            color: var(--mud-palette-text-primary);
        }

        .calendar-header .header-title p {
            margin: 5px 0 0 0;
            font-size: 13px;
            text-align: center;
            font-weight: 600;
            color: var(--mud-palette-text-secondary);
        }

        .calendar-header .header-title small {
            margin: 5px 0 0 0;
            font-size: 13px;
            text-align: center;
            font-weight: 600;
            color: rgba(81, 86, 93, 0.4);
        }



.btn-nav-month {
    transform: scale(2);
    padding: 0px 30px;
    cursor: pointer;
}

.day {
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    border-right: 1px solid rgba(166, 168, 179, 0.12);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    text-align: right;
}

    .day:nth-of-type(7n + 7) {
        border-right: 0;
    }

    .day:nth-of-type(n + 1):nth-of-type(-n + 7) {
        grid-row: 2;
    }

    .day:nth-of-type(n + 8):nth-of-type(-n + 14) {
        grid-row: 3;
    }

    .day:nth-of-type(n + 15):nth-of-type(-n + 21) {
        grid-row: 4;
    }

    .day:nth-of-type(n + 22):nth-of-type(-n + 28) {
        grid-row: 5;
    }

    .day:nth-of-type(n + 29):nth-of-type(-n + 35) {
        grid-row: 6;
    }

    .day:nth-of-type(7n + 1) {
        grid-column: 1/1;
    }

    .day:nth-of-type(7n + 2) {
        grid-column: 2/2;
    }

    .day:nth-of-type(7n + 3) {
        grid-column: 3/3;
    }

    .day:nth-of-type(7n + 4) {
        grid-column: 4/4;
    }

    .day:nth-of-type(7n + 5) {
        grid-column: 5/5;
    }

    .day:nth-of-type(7n + 6) {
        grid-column: 6/6;
    }

    .day:nth-of-type(7n + 7) {
        grid-column: 7/7;
    }

.day-name {
    font-size: 12px;
    text-transform: uppercase;
    color: #99a1a7;
    text-align: center;
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    line-height: 50px;
    font-weight: 500;
}

.day--disabled {
    /*color: var(--mud-palette-text-secondary);*/
    /*background-color: #ffffff;*/
    background-color: var(--mud-palette-dark);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9f9fa' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    cursor: not-allowed;
}


.day-number {
    margin-left: auto;
    font-size: 12px;
    color: #98a0a6;
}

.day-empty-area {
    position: absolute;
    margin-top: -20px;
    width: 100%;
    height: 100%;
}

.day-events {
    position: relative;
    text-align: left;
    z-index: 10;
}

.day-event {
    border-left-color: #290270;
    border-left-width: 3px;
    margin-top: 1px;
    padding: 2px;
    border-left-style: solid;
    position: relative;
    height: auto;
    background: #4786ff;
    border-radius: 4px;
    animation: .5s ease-out wipeToRight;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.day-event-show-more {
    line-height: 18px;
    margin-top: 1px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    position: relative;
    height: 18px;
    background: #e9e9e9;
    border-radius: 4px;
    color: #474747;
    animation-name: wipeToBottom;
    animation-duration: 2s;
    animation-delay: -0.5s;
    cursor: pointer;
}

.day-event-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.day-event-description {
    color: #fff;
    font-size: 12px;
    opacity: 0.9;
}

.day-event-details {
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    margin-top: 30px;
    left: -150px;
    transform: translate(0, 10px);
    background-color: #bfbfbf;
    padding: 1.5rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    width: auto;
}

    .day-event-details:before {
        position: absolute;
        z-index: -1;
        content: "";
        right: calc(50% - 10px);
        top: -8px;
        border-style: solid;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent #bfbfbf transparent;
        transition-duration: 0.3s;
        transition-property: transform;
    }

.day-event:hover .day-event-details {
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transform: translate(0, -20px);
    transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.day-event-details-message {
    text-align: center;
}

@keyframes wipeToBottom {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes wipeToRight {
    0% {
        width: 0;
        max-height: 34px;
    }

    50% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}
