@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Orbitron:wght@400..900&display=swap");

:root {
    --bs-primary: #009fe3 !important;
    --bs-secondary: #163c82 !important;
    --bs-primary-rgb: 0, 159, 227 !important;
    --bs-secondary-rgb: 22, 60, 130 !important;
}

.color-secondary {
    color: var(--bs-secondary) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron" !important;
}

p,
a,
td,
th,
span,
i,
b,
div,
label,
input,
input::-webkit-input-placeholder {
    font-family: "Nunito Sans" !important;
}

#kt_aside,
#kt_aside_logo {
    background-color: #04448b !important;
}

.menu-aside-link {
    background-color: #04448b !important;
    border: none !important;
}

.btn-primary {
    background-color: #04448b !important;
}

.text-primary {
    color: #04448b !important;
}

.ki-outline {
    color: white !important;
}

.img-login {
    width: 80% !important;
}
select.form-control,
span.select2-selection {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300448B' d='M1.41.59 6 5.17l4.59-4.58L12 1l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 0.65rem;
    padding-right: 2.5rem;
}

.nocursor {
    cursor: default !important;
}

.ged-accordion .accordion-item {
    border: none;
    background: transparent;
}

.ged-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: inherit;
    border: 0;
}

.ged-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.ged-accordion .accordion-button::after {
    content: "+";
    background-image: none;
    transform: none;
    font-size: 40px;
    font-weight: 500;
    width: auto;
    height: auto;
    margin-left: auto;
}

.ged-accordion .accordion-button:not(.collapsed)::after {
    content: "-";
    background-image: none;
    transform: none;
    font-size: 50px;
    font-weight: 500;
    width: auto;
    height: auto;
    margin-left: auto;
}

.ged-accordion .accordion-body {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ged-accordion .accordion-item:last-child .accordion-body {
    border-bottom: none;
}

@media (min-width: 1650px) {
    .img-login {
        width: 80vh !important;
    }
}

.ged-create-input-fixed .form-control,
.ged-update-input-fixed .form-control {
    height: 42px;
}

.ged-create-input-fixed,
.ged-update-input-fixed {
    min-height: 78px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-file-upload-container,
#ged-create-link-container,
#update-file-upload-container,
#update-link-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 78px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-link-container .form-control,
#update-link-container .form-control {
    height: 42px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-file-upload-container .form-label,
#ged-create-link-container .form-label,
#update-file-upload-container .form-label,
#update-link-container .form-label {
    display: flex;
    align-items: center;
    min-height: 21px;
    margin-bottom: 0.5rem;
}

#ged-create-input-slot {
    position: relative;
    width: 100%;
    min-height: 78px;
}

#ged-create-input-slot .ged-create-input-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#ged-create-input-slot .ged-pane-hidden {
    visibility: hidden;
    pointer-events: none;
}

.ged-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--bs-gutter-x, 1.5rem);
    row-gap: var(--bs-gutter-y, 1.5rem);
    margin-top: var(--bs-gutter-y, 1.5rem);
}

.ged-category-card {
    width: calc((100% - (5 * var(--bs-gutter-x, 1.5rem))) / 6);
}

@media (max-width: 1200px) {
    .ged-category-card {
        width: calc((100% - (2 * var(--bs-gutter-x, 1.5rem))) / 3);
    }
}

@media (max-width: 992px) {
    .ged-category-card {
        width: calc((100% - var(--bs-gutter-x, 1.5rem)) / 2);
    }
}

@media (max-width: 576px) {
    .ged-category-card {
        width: 100%;
    }
}

.ged-preview-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 210 / 297;
}

.ged-preview-card img,
.ged-preview-card .ged-preview-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.ged-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    background: rgba(27, 70, 139, 0.74);
    color: #fff;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 1rem;
}

.ged-preview-card:hover .ged-preview-overlay {
    opacity: 1;
}

.ged-preview-name {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}


.ged-preview-overlay .ged-overlay-icon {
    font-size: 2rem;
}

.ged-category-dropdown {
    padding: 0;
    border: 0;
    background: transparent;
}

.ged-category-toggle-btn.form-select {
    height: 42px;
    border: 1px solid var(--bs-gray-300, #dbdfe9);
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ged-category-toggle-btn .ged-category-label-create,
.ged-category-toggle-btn .ged-category-label-update {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ged-category-toggle-btn.form-select:hover,
.ged-category-toggle-btn.form-select:active,
.ged-category-toggle-btn.form-select.show,
.show > .ged-category-toggle-btn.form-select {
    color: var(--bs-secondary-color, #3f4254);
    background-color: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-gray-300, #dbdfe9) !important;
    box-shadow: none !important;
    outline: none;
}

.ged-category-toggle-btn.form-select:focus,
.ged-category-toggle-btn.form-select:focus-visible {
    border: 1px solid var(--bs-gray-400, #c4cada) !important;
    box-shadow: none !important;
    outline: none;
}

.ged-category-dropdown .dropdown-menu {
    border-radius: 0.475rem;
    background-color: var(--bs-body-bg, #fff);
    margin-top: 0.25rem;
}

#kt_modal_create .ged-category-dropdown .dropdown-menu.w-100.p-3,
#kt_modal_create .ged-category-dropdown .dropdown-menu.w-100.p-3.show,
#kt_modal_update .ged-category-dropdown .dropdown-menu.w-100.p-3,
#kt_modal_update .ged-category-dropdown .dropdown-menu.w-100.p-3.show {
    --bs-dropdown-border-width: 1px;
    --bs-dropdown-border-color: #000;
    --bs-dropdown-box-shadow: none;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    color: var(--bs-gray-700, #4b5675) !important;
    box-shadow: none !important;
    filter: none !important;
}

.ged-category-dropdown .dropdown-menu.show {
    box-shadow: none !important;
}

.ged-category-dropdown .dropdown-menu .form-check-input {
    border: 1px solid var(--bs-gray-300, #dbdfe9);
    box-shadow: none !important;
}

.ged-category-dropdown .dropdown-menu .form-check-label,
.ged-category-dropdown .dropdown-menu .form-check,
.ged-category-dropdown .dropdown-menu {
    color: var(--bs-gray-700, #4b5675) !important;
}

.ged-category-dropdown .dropdown-menu .form-check-input:focus,
.ged-category-dropdown .dropdown-menu .form-check-input:active {
    border: 1px solid var(--bs-gray-400, #c4cada);
    box-shadow: none !important;
    outline: none;
}

.ged-create-input-fixed input[type="file"].form-control,
.ged-update-input-fixed input[type="file"].form-control,
#ged_create_file_previewImage input[type="file"].form-control,
#update-preview-upload-container input[type="file"].form-control {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.ged-create-input-fixed input[type="file"].form-control::file-selector-button,
.ged-update-input-fixed input[type="file"].form-control::file-selector-button,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button {
    margin: -0.375rem 0.75rem -0.375rem -0.75rem;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-right: 1px solid var(--bs-border-color, #dbdfe9);
    background-color: var(--bs-light, #f9f9f9);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none;
    outline: none;
    transition: none;
}

.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:hover,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:hover,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:hover,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:hover,
.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:focus,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:focus,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:focus,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:focus,
.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:active,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:active,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:active,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:active {
    background-color: var(--bs-light, #f9f9f9);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none;
    outline: none;
}

.titleDashboard {
    font-family: "Orbitron" !important;
}

.ged-user-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: var(--bs-gutter-x, 1.5rem);
    row-gap: var(--bs-gutter-y, 1.5rem);
}

.ged-user-category-card {
    width: 100%;
}

@media (max-width: 1200px) {
    .ged-user-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .ged-user-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .ged-user-category-grid {
        grid-template-columns: 1fr;
    }
}

.ged-user-preview-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 210 / 297;
}

.ged-user-preview-card img,
.ged-user-preview-card .ged-user-preview-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.ged-user-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    background: rgba(27, 70, 139, 0.74);
    color: #fff;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 1rem;
}

.ged-user-preview-card:hover .ged-user-preview-overlay {
    opacity: 1;
}

.ged-user-preview-name {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}


.ged-user-preview-overlay .ged-overlay-icon {
    font-size: 2rem;
}
