.filepond--credits {
    display: none !important;
}


.dark-mode .filepond--panel-root {
    background-color: #162130;
    border: 1px solid #3b526f;
}

.dark-mode .filepond--drop-label {
    color: #ddd;
}

.dark-mode .filepond--label-action {
    text-decoration-color: #ccc;
}

.dark-mode .filepond--item-panel {
    background-color: #1e2d42;
}

.dark-mode .filepond--drip-blob {
    background-color: #555;
}

.dark-mode .filepond--file-action-button {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
}
.dark-mode [data-filepond-item-state*='error'] .filepond--item-panel {
    background-color: #ff5555;
}

.dark-mode [data-filepond-item-state='processing-complete'] .filepond--item-panel {
    background-color: #55ff55;
}

.modal-xl {
    --bs-modal-width: 80% !important;
}

body {
    overflow-y: scroll !important;
    padding-right: 0 !important;
}


.modal {
    padding-right: 0 !important;
}

.modal--quickBackground {
    opacity: 0;
    background: rgb(0, 0, 0, 0.5);
    transition: opacity 0.1s ease-in-out;
}


/* Ensure modal takes full height */
.modal-dialog--fullWidth.modal-dialog {
    height: 100vh;
    margin: 0;
    max-width: 100%;
}

.modal-dialog--fullWidth .modal-content {
    height: 100vh;
    border-radius: 0;
}

.modal-dialog--fullWidth .modal-body {
    height: 100vh;
    padding: 2rem;
    overflow: hidden;
}

/* Make tab content area scrollable */
.modal-dialog--fullWidth .tab-content {
    height: calc(100vh - 200px); /* Adjust based on header and footer height */
}

.modal-dialog--fullWidth .tab-pane {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */
.modal-dialog--fullWidth .tab-pane::-webkit-scrollbar {
    width: 6px;
}

.modal-dialog--fullWidth .tab-pane::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-dialog--fullWidth .tab-pane::-webkit-scrollbar-thumb {
    background: #dbdfea;
    border-radius: 3px;
}

.modal-dialog--fullWidth .tab-pane::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Ensure form takes full height */
.modal-dialog--fullWidth form.h-100 {
    height: 100% !important;
}

/* Ensure content area grows but allows footer to stay at bottom */
.modal-dialog--fullWidth .nk-modal-text {
    display: flex;
    flex-direction: column;
    min-height: 0;
}


.modal .nk-file.selected {
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.1);
    background-color: rgba(101, 118, 255, 0.1);
}

.modal .nk-file {
    cursor: pointer;
    border-radius: 4px;
}

.drag-n-drop-handle {
    cursor: move;
    position: absolute;
    left: -40px;
    top: 50%;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8094ae;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* Make dropdown items match button text size */
#editPageContent .btn-group .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 0.75rem 1.25rem;
}

/* Ensure dropdown icon is visible */
#editPageContent .btn-group .dropdown-toggle::after {
    transform: scaleY(-1);
    display: inline-block;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: currentColor;
}

/* Adjust spacing of dropdown toggle button */
#editPageContent .btn-group .dropdown-toggle-split {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Highlight targeted page row */
.nk-file-item:target {
    background-color: rgba(101, 118, 255, 0.1);
    animation: highlight-fade 2s ease-out;
    border-radius: 4px;
}

@keyframes highlight-fade {
    0% {
        background-color: rgba(101, 118, 255, 0.3);
        box-shadow: 0 0 8px rgba(101, 118, 255, 0.5);
    }
    100% {
        background-color: rgba(101, 118, 255, 0.1);
        box-shadow: none;
    }
}



.video-background {
    filter: blur(7px) brightness(1.25);
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-foreground.nk-auth-body {
    position: relative;
    z-index: 1;
}

.video-foreground .card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

/* Dark mode adjustments */
.video-foreground .is-dark .card {
    background: rgba(29, 29, 29, 0.95);
}

.nk-app-root {
    background: url("/assets/images/background-light.png") no-repeat fixed 100% 0;
}

.nk-app-root.nk-app-root--noBackground {
    background: none;
}

.nk-fmg-body {
    backdrop-filter: blur(10px) brightness(1.03);
}

body.nk-body {
    background-color: #f8f8f9;
}

/*
    loading animations
*/

#tabContent {
    filter: blur(0px);
    opacity: 1;
    transition: filter 0.1s ease, opacity 0.1s ease;
}

#tabContent.htmx-request {
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.75;
}

.icon--egypt-hue {
    filter: hue-rotate(-15deg) saturate(0.8);
}