.was-validated .upload-container:has(input:valid) {
    border-color: #198754 !important;
}

.form-check-input.is-valid:checked,
.was-validated .form-check-input:valid:checked {
    background-color: white !important;
}

.home-content #action-buttons {
    display: none;
}

.fc-daygrid-dot-event {
    border: 1px solid #f8813f !important;
    padding-block: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.fc-timegrid-event-harness-inset .fc-timegrid-event,
.fc-timegrid-event.fc-event-mirror,
.fc-timegrid-more-link {
    background-color: #fff5ed !important;
    padding: 0.5rem;
    min-height: 50px !important;
    font-size: 13px;
}

.fc-v-event .fc-event-main-frame {
    color: #454d5b;
}

.fc-daygrid-dot-event:hover {
    transform: scale(1.05);
    z-index: 1000;
}

.fc-daygrid-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-direction-ltr .fc-daygrid-event.fc-event-end,
.fc-direction-rtl .fc-daygrid-event.fc-event-start {
    font-size: 12px;
}

.fc-daygrid-dot-event .fc-event-title {
    margin-top: 0.3rem;
}

.upload-file-wrapper .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 130px;
    position: relative;
}

.upload-file-wrapper .file-preview {
    max-width: 240px;
}

.modal-content {
    background: white;
    max-height: 87vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c6c6c6 rgba(0, 0, 0, 0);
}

/* #region loading page */
.loading-page {
    background-color: #124244;
    background-image: linear-gradient(180deg, #124244 58.7%, #37a4b0 118.96%);
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}
.loading-page.hidden {
    opacity: 0;
}

.loading-page .logo {
    width: 220px;
}

.loader {
    width: 82px;
    height: 18px;
    position: relative;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10%);
    top: 0;
    background: #f8813f;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: jump 0.5s ease-in infinite alternate;
}

.loader::after {
    background: #0000;
    color: #fff;
    top: 100%;
    box-shadow: 32px -20px, -32px -20px;
    animation: split 0.5s ease-out infinite alternate;
}

@keyframes split {
    0% {
        box-shadow: 8px -20px, -8px -20px;
    }
    100% {
        box-shadow: 32px -20px, -32px -20px;
    }
}
@keyframes jump {
    0% {
        transform: translate(-50%, -150%);
    }
    100% {
        transform: translate(-50%, 10%);
    }
}

/* #endregion loading page */

@media screen and (max-width: 768px) {
    main.home-content {
        background-image: none;
    }
}

.scrollbar-thin {
    scrollbar-width: thin;
}

.profile-dropdown-toggle .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
    border-color: #f8813f99 !important;
    box-shadow: 0 0 6px 2px rgba(248, 129, 63, 0.25) !important;
}

.pagination-container .form-select:focus {
    border-color: transparent !important;
    box-shadow: 0 0 6px 2px rgba(34, 101, 109, 0.25) !important;
}

.btn.dropdown-toggler:focus {
    box-shadow: none !important;
}

@media screen and (max-width: 767px) {
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    .pagination-container .page-text {
        display: none;
    }

    .pagination-container {
        justify-content: space-between;
    }
}

.toasters-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav.tabs .nav-link.active,
.nav.tabs .nav-link:focus {
    box-shadow: none !important;
}

.btn.text-danger.border-danger:focus {
    border-color: rgb(220, 53, 69) !important;
    box-shadow: 0 0 6px 2px rgba(220, 53, 69, 0.25) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 6px 2px rgba(19, 166, 71, 0.25);
}

.row-gap-3 {
    row-gap: 1rem;
}

@media screen and (min-width: 769px) {
    aside {
        padding: 0 !important;
    }

    aside nav {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        height: 100%;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}


.folder-item {
    border-radius: 6px;
    border: 1px solid #efefef;
    background-color: #fff;
    box-shadow: 0px 0px 21px 12px rgba(242, 242, 242, 0.8);
    display: flex;
    min-height: 52px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all linear 0.2s;
    cursor: pointer;
}

.folder-item:hover {
    border: 1px solid #efefef;
    background-color: #fff5ed;
}

.folder-item .text-content {
    flex-grow: 1;
}

.folder-item .text-content .files-count {
    margin: 0;
    color: #989898;
    font-size: 10px;
    font-weight: 400;
}

.folder-item .folder-name {
    color: #464646;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
}

.min-height-40 {
    min-height: 40px;
}
