:root {
    --gdku-ink: #1f2f43;
    --gdku-ink-soft: #4b5c72;
    --gdku-paper: #f5f1ea;
    --gdku-card: #fffdf8;
    --gdku-accent: #ff5f13;
    --gdku-accent-dark: #cc4c0f;
    --gdku-line: #e7ddce;
    --gdku-glow: rgba(255, 95, 19, 0.2);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 78px;
    overflow-x: clip;
}

body.user-mode {
    overflow-x: hidden;
}

html {
    overflow-x: clip;
}

body.nav-drawer-open {
    overflow: hidden;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 95, 19, 0.22), transparent 32%),
        linear-gradient(140deg, rgba(31, 47, 67, 0.96), rgba(24, 37, 54, 0.98));
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.22, 0.76, 0.2, 1), opacity 0.2s ease;
}

.page-transition-splash,
.page-transition-welcome {
    display: none;
}

.page-transition-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff3e1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.22s ease 0.12s, transform 0.3s ease 0.12s;
}

.page-transition-mark img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.46);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
}

body.page-preload .page-content,
body.page-preload .main-navbar,
body.page-preload .footer {
    opacity: 1;
    transform: none;
}

body.page-is-leaving .page-content,
body.page-is-leaving .main-navbar,
body.page-is-leaving .footer {
    transition: opacity 0.24s ease, transform 0.32s ease;
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
}

body.page-is-leaving .page-transition-overlay {
    opacity: 1;
    transform: translateY(0);
}

body.page-is-leaving .page-transition-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

body.page-is-entering .page-transition-overlay {
    opacity: 1;
    transform: translateY(0);
    animation: pageEnterOverlayOut 0.36s cubic-bezier(0.22, 0.76, 0.2, 1) forwards;
}

body.page-is-entering .page-transition-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pageEnterMarkOut 0.26s ease forwards;
}

body.page-is-entering .page-content,
body.page-is-entering .main-navbar,
body.page-is-entering .footer {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
}

body:not(.page-is-entering):not(.page-is-leaving) .page-content,
body:not(.page-is-entering):not(.page-is-leaving) .main-navbar,
body:not(.page-is-entering):not(.page-is-leaving) .footer {
    transition: opacity 0.3s ease, transform 0.34s ease;
}

@keyframes pageEnterOverlayOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes pageEnterMarkOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}
.page-content {
    flex: 1 0 auto;
    display: block;
    padding-top: 28px;
    padding-bottom: 28px;
}

.main-navbar {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.index-snap-mode .main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
    border-bottom: 0 !important;
    background: #fffaf3 !important;
}

body.index-snap-mode .main-navbar .navbar-collapse {
    background: transparent;
}

.gdku-theme {
    color: var(--gdku-ink);
    font-family: "Nunito Sans", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 95, 19, 0.12), transparent 26%),
        radial-gradient(circle at 100% 4%, rgba(31, 47, 67, 0.14), transparent 24%),
        var(--gdku-paper);
}

.gdku-theme h1,
.gdku-theme h2,
.gdku-theme h3,
.gdku-theme h4,
.gdku-theme h5 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.01em;
}

.gdku-theme .main-navbar {
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid var(--gdku-line);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(31, 47, 67, 0.08);
}

.gdku-theme .navbar-brand {
    color: var(--gdku-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.gdku-theme .navbar-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gdku-accent);
}

.gdku-theme .navbar-brand span {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.02;
}

.gdku-theme .navbar-brand strong {
    font-size: 1.35rem;
    font-family: "Cormorant Garamond", serif;
}

.gdku-theme .navbar-brand small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gdku-ink-soft);
}

.main-navbar .mobile-nav-drawer .mobile-drawer-brand {
    display: none !important;
}

.gdku-theme .navbar-toggler {
    border-color: rgba(31, 47, 67, 0.24);
}

.custom-nav-toggle {
    width: 44px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid currentColor;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.custom-nav-toggle .custom-nav-toggle-bar {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-nav-toggle.is-open .custom-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.custom-nav-toggle.is-open .custom-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.custom-nav-toggle.is-open .custom-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.gdku-theme .nav-link {
    color: var(--gdku-ink) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.gdku-theme .nav-link:hover {
    color: var(--gdku-accent) !important;
}

.gdku-theme .nav-cta {
    background: var(--gdku-accent);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
    margin-left: 0.25rem;
}

.gdku-theme .nav-cta:hover {
    background: var(--gdku-accent-dark);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    display: none;
    background: var(--gdku-card);
    border: 1px solid var(--gdku-line);
    border-radius: 14px;
    padding: 0.5rem 0;
    box-shadow: 0 16px 34px rgba(31, 47, 67, 0.14);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-item {
    display: block;
    text-decoration: none;
    color: var(--gdku-ink);
    padding: 0.65rem 1rem;
    font-size: 0.93rem;
    font-weight: 600;
}

.nav-dropdown-item i {
    width: 20px;
    color: var(--gdku-accent);
}

.nav-dropdown-item:hover {
    background: #f8f2e8;
    color: var(--gdku-accent-dark);
}

.profile-pic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(31, 47, 67, 0.18);
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--gdku-line);
    border-radius: 999px;
    padding: 0.28rem 0.7rem 0.28rem 0.32rem;
    cursor: pointer;
    background: #fff;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fffdf8;
    border: 1px solid var(--gdku-line);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(31, 47, 67, 0.12);
    z-index: 300;
}

.dropdown-menu-custom.show {
    display: block;
}

.profile-header {
    padding: 0.75rem 1rem;
}

.dropdown-item {
    padding: 0.58rem 1rem;
    color: var(--gdku-ink);
    text-decoration: none;
    display: block;
}

.dropdown-item i {
    width: 18px;
    color: var(--gdku-accent);
}

.dropdown-item:hover {
    background: #f8f2e8;
}

.gdku-theme .footer {
    margin-top: auto;
    padding: 22px 0;
    color: #fef4ea;
    background: linear-gradient(90deg, #1f2f43, #293f58);
    border-top: 3px solid var(--gdku-accent);
}

.gdku-theme .footer p {
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.74rem;
}


.gdku-theme .card {
    background: var(--gdku-card);
    border: 1px solid var(--gdku-line);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(31, 47, 67, 0.08);
}

.gdku-theme .card-header {
    border-bottom: 1px solid var(--gdku-line);
    background: #f9f4eb;
}

.gdku-theme .btn {
    border-radius: 999px;
    padding: 0.54rem 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.gdku-theme .btn-primary {
    background: linear-gradient(135deg, var(--gdku-accent), #ff8a34);
    border: none;
    box-shadow: 0 8px 24px var(--gdku-glow);
}

.gdku-theme .btn-primary:hover {
    background: linear-gradient(135deg, #e35511, #ff7d28);
}

.gdku-theme .btn-outline-primary {
    border: 2px solid var(--gdku-accent);
    color: var(--gdku-accent);
}

.gdku-theme .btn-outline-primary:hover {
    background: var(--gdku-accent);
    color: #fff;
}

.gdku-theme .btn-warning {
    color: #1f2f43;
    font-weight: 800;
}

.gdku-theme .form-control,
.gdku-theme .form-select {
    border-radius: 12px;
    border: 1px solid #d9ccb8;
    padding: 0.7rem 0.95rem;
    background: #fff;
}

.gdku-theme .form-control:focus,
.gdku-theme .form-select:focus {
    border-color: var(--gdku-accent);
    box-shadow: 0 0 0 0.25rem rgba(255, 95, 19, 0.16);
}

.gdku-theme .breadcrumb {
    background: transparent;
}

.gdku-theme .text-muted {
    color: #6a7a8c !important;
}

.gdku-theme .list-group-item {
    background: transparent;
    border-color: var(--gdku-line);
}

.gdku-theme .pagination .page-link {
    border: 1px solid var(--gdku-line);
    color: var(--gdku-ink);
}

.gdku-theme .pagination .page-item.active .page-link {
    background: var(--gdku-accent);
    border-color: var(--gdku-accent);
}

.flash-toast-container {
    position: fixed;
    top: 92px;
    right: 18px;
    z-index: 2100;
    width: min(420px, calc(100vw - 28px));
}

.flash-toast {
    position: relative;
    border: 1px solid #d9e5ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #13233d;
    box-shadow: 0 14px 32px rgba(10, 34, 68, 0.18);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.flash-toast + .flash-toast {
    margin-top: 10px;
}

.flash-toast-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #2b8eff;
}

.flash-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 10px 16px;
}

.flash-toast-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: #1b6de8;
    font-size: 0.85rem;
    margin-top: 2px;
}

.flash-toast-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 2px;
}

.flash-toast .toast-body {
    padding: 0;
    line-height: 1.35;
    color: #223a63;
    word-break: break-word;
}

.flash-toast.toast-success .flash-toast-accent { background: #198754; }
.flash-toast.toast-success .flash-toast-icon { background: #e7f6ef; color: #146c43; }
.flash-toast.toast-danger .flash-toast-accent { background: #dc3545; }
.flash-toast.toast-danger .flash-toast-icon { background: #fdecee; color: #bb2d3b; }
.flash-toast.toast-warning .flash-toast-accent { background: #f0ad00; }
.flash-toast.toast-warning .flash-toast-icon { background: #fff7df; color: #9b6a00; }
.flash-toast.toast-info .flash-toast-accent { background: #0dcaf0; }
.flash-toast.toast-info .flash-toast-icon { background: #e7fafd; color: #0b6f85; }

.admin-theme {
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 135, 0.14), transparent 38%),
        radial-gradient(circle at 85% 10%, rgba(0, 102, 255, 0.2), transparent 42%),
        linear-gradient(135deg, #050714 0%, #0a0e27 55%, #101739 100%);
    color: #eaf3ff;
}

.admin-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 255, 135, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 135, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: -1;
}

.admin-theme .main-navbar,
.admin-mode .main-navbar,
.admin-theme .footer {
    background: rgba(6, 10, 29, 0.92);
    border-bottom: 1px solid rgba(0, 255, 135, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.admin-theme .main-navbar,
.admin-mode .main-navbar {
    backdrop-filter: blur(8px);
}

.admin-theme .navbar-brand,
.admin-mode .navbar-brand {
    color: #eaf3ff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.admin-theme .navbar-brand img,
.admin-mode .navbar-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 135, 0.48);
}

.admin-theme .navbar-brand span,
.admin-mode .navbar-brand span {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.02;
}

.admin-theme .navbar-brand strong,
.admin-mode .navbar-brand strong {
    font-size: 1.28rem;
    color: #f0f7ff;
}

.admin-theme .navbar-brand small,
.admin-mode .navbar-brand small {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9fd3ff;
}

.admin-theme .main-navbar .nav-link,
.admin-mode .main-navbar .nav-link {
    color: rgba(234, 243, 255, 0.9) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.admin-theme .custom-nav-toggle,
.admin-mode .custom-nav-toggle {
    color: rgba(234, 243, 255, 0.95);
    border-color: rgba(0, 255, 135, 0.45);
}

.admin-theme .main-navbar .nav-link:hover,
.admin-theme .main-navbar .nav-link:focus,
.admin-mode .main-navbar .nav-link:hover,
.admin-mode .main-navbar .nav-link:focus {
    color: #00ff87 !important;
}

.admin-theme .navbar-collapse,
.admin-mode .navbar-collapse {
    background: transparent;
}

.admin-theme .nav-dropdown-content,
.admin-mode .nav-dropdown-content {
    background: rgba(8, 15, 38, 0.98);
    border: 1px solid rgba(0, 255, 135, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
}

.admin-theme .nav-dropdown-item,
.admin-mode .nav-dropdown-item {
    color: #dcecff;
}

.admin-theme .nav-dropdown-item i,
.admin-mode .nav-dropdown-item i {
    color: #00ff87;
}

.admin-theme .nav-dropdown-item:hover,
.admin-mode .nav-dropdown-item:hover {
    background: rgba(0, 102, 255, 0.18);
    color: #ffffff;
}

.admin-theme .user-info,
.admin-mode .user-info {
    border: 1px solid rgba(0, 255, 135, 0.24);
    background: rgba(8, 16, 38, 0.78);
    color: #eaf3ff;
}

.admin-theme .profile-pic,
.admin-mode .profile-pic {
    border-color: rgba(0, 255, 135, 0.42);
}

.admin-theme .dropdown-menu-custom,
.admin-mode .dropdown-menu-custom {
    background: rgba(8, 15, 38, 0.98);
    border: 1px solid rgba(0, 255, 135, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
}

.admin-theme .dropdown-menu-custom .dropdown-item,
.admin-mode .dropdown-menu-custom .dropdown-item {
    color: #dcecff;
}

.admin-theme .dropdown-menu-custom .dropdown-item:hover,
.admin-mode .dropdown-menu-custom .dropdown-item:hover {
    background: rgba(0, 102, 255, 0.18);
    color: #ffffff;
}

.admin-theme .profile-header small,
.admin-mode .profile-header small {
    color: #9fb4d6;
}

.admin-theme .footer {
    border-top: 1px solid rgba(0, 255, 135, 0.15);
}


.admin-theme .container .card {
    background: rgba(11, 16, 42, 0.86);
    border: 1px solid rgba(0, 255, 135, 0.22);
    color: #eaf3ff;
}

.admin-theme .table,
.admin-theme .table th,
.admin-theme .table td,
.admin-theme .table > :not(caption) > * > * {
    --bs-table-color: #eaf3ff;
    --bs-table-bg: rgba(23, 34, 53, 0.96);
    --bs-table-border-color: rgba(136, 146, 176, 0.22);
    --bs-table-striped-color: #eaf3ff;
    --bs-table-striped-bg: rgba(23, 34, 53, 0.96);
    --bs-table-active-color: #eaf3ff;
    --bs-table-active-bg: rgba(39, 56, 82, 0.98);
    --bs-table-hover-color: #eaf3ff;
    --bs-table-hover-bg: rgba(39, 56, 82, 0.98);
    color: #eaf3ff !important;
    border-color: rgba(136, 146, 176, 0.22) !important;
}

.admin-theme .table > thead,
.admin-theme .table > thead > tr > *,
.admin-theme .table-light {
    color: #eaf3ff !important;
    background: rgba(0, 102, 255, 0.14) !important;
    box-shadow: inset 0 0 0 9999px rgba(0, 102, 255, 0.14) !important;
}

.admin-theme .table > tbody > tr > * {
    color: #eaf3ff !important;
    background: rgba(23, 34, 53, 0.96) !important;
    box-shadow: inset 0 0 0 9999px rgba(23, 34, 53, 0.96) !important;
}

.admin-theme .table-striped > tbody > tr:nth-of-type(odd) > *,
.admin-theme .table-striped > tbody > tr:nth-of-type(even) > * {
    color: #eaf3ff !important;
    background: rgba(23, 34, 53, 0.96) !important;
    box-shadow: inset 0 0 0 9999px rgba(23, 34, 53, 0.96) !important;
}

.admin-theme .table-hover > tbody > tr:hover > * {
    color: #eaf3ff !important;
    background: rgba(39, 56, 82, 0.98) !important;
    box-shadow: inset 0 0 0 9999px rgba(39, 56, 82, 0.98) !important;
}

.admin-theme .table a,
.admin-theme .table strong,
.admin-theme .table code,
.admin-theme .table small,
.admin-theme .table .text-muted,
.admin-theme .table .small,
.admin-theme .table .btn,
.admin-theme .table .btn i,
.admin-theme .table .badge {
    color: #eaf3ff !important;
}

.admin-theme .table a {
    text-decoration-color: rgba(159, 211, 255, 0.55);
}

.admin-theme .table code {
    background: rgba(8, 18, 34, 0.5);
}

.admin-theme .table .btn-outline-secondary {
    color: #eaf3ff !important;
    border-color: rgba(136, 176, 230, 0.36) !important;
}

.admin-theme .table .btn-outline-secondary:hover {
    color: #061126 !important;
    background: #9fd3ff !important;
    border-color: #9fd3ff !important;
}

.admin-theme .card-header {
    background: rgba(0, 102, 255, 0.14);
    border-bottom: 1px solid rgba(0, 255, 135, 0.18);
}

.admin-theme .form-control,
.admin-theme .form-select {
    background: rgba(4, 9, 25, 0.72);
    border: 1px solid rgba(136, 146, 176, 0.35);
    color: #eaf3ff;
}

.admin-theme .form-control:focus,
.admin-theme .form-select:focus {
    border-color: rgba(0, 255, 135, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 135, 0.2);
}

.admin-theme .btn-primary {
    background: linear-gradient(135deg, #00ff87, #0066ff);
    color: #061126;
    border: none;
    font-weight: 700;
}

.admin-theme .text-muted,
.admin-theme small.text-muted {
    color: #9fb4d6 !important;
}

.admin-theme .flash-toast {
    border-color: rgba(113, 146, 209, 0.35);
    background: rgba(8, 16, 36, 0.92);
    color: #e8f1ff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.admin-theme .flash-toast .toast-body {
    color: #c8daf5;
}

.admin-theme .flash-toast .btn-close {
    filter: invert(1) grayscale(1);
}

.admin-secondary-page {
    --admin-sidebar-width: 280px;
    --admin-sidebar-collapsed-width: 82px;
    --admin-bg: #eff2f6;
    --admin-pane: #ffffff;
    --admin-pane-alt: #f6f8fb;
    --admin-ink: #1f2d3d;
    --admin-muted: #657387;
    --admin-border: #d8dee7;
    --admin-brand: #1d4ed8;
    --admin-brand-soft: #e6ecf8;
}

.admin-secondary-page .page-content {
    padding-top: 0;
    padding-bottom: 0;
}

.admin-secondary-shell {
    position: relative;
    min-height: 100vh;
    color: var(--admin-ink);
    background: var(--admin-bg);
}

.admin-secondary-page .admin-nav-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    z-index: 1030;
    background: var(--admin-pane);
    border-right: 1px solid var(--admin-border);
    border-radius: 0;
    box-shadow: none;
    padding: 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.22s ease;
}

.admin-secondary-page.admin-sidebar-collapsed .admin-nav-rail {
    width: var(--admin-sidebar-collapsed-width);
}

.admin-secondary-page .admin-nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.55rem;
    padding: 0 0.2rem;
}

.admin-secondary-page .admin-nav-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-secondary-page .admin-nav-toggle {
    border: 1px solid var(--admin-border);
    background: var(--admin-pane-alt);
    color: var(--admin-muted);
    border-radius: 0.5rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.admin-secondary-page .admin-nav-toggle:hover {
    color: var(--admin-ink);
    background: var(--admin-pane);
}

.admin-secondary-page .admin-nav-rail .nav {
    border: 0;
    gap: 0.3rem;
    flex: 1 1 auto;
    align-content: flex-start;
}

.admin-secondary-page .admin-nav-rail .nav-item {
    width: 100%;
}

.admin-secondary-page .admin-nav-rail .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 0;
    border-radius: 0.65rem;
    font-weight: 700;
    color: var(--admin-muted);
    padding: 0.58rem 0.72rem;
    text-decoration: none;
}

.admin-secondary-page .admin-nav-rail .nav-link:hover {
    background: var(--admin-pane-alt);
    color: var(--admin-ink);
}

.admin-secondary-page .admin-nav-rail .nav-link.active {
    background: var(--admin-brand);
    color: #fff;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.24);
}

.admin-secondary-page .admin-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
}

.admin-secondary-page .admin-link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-subnav {
    display: grid;
    gap: 0.25rem;
    padding: 0.25rem 0 0.35rem 1.9rem;
}

.admin-subnav-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-muted);
    border-radius: 0.55rem;
    padding: 0.35rem 0.6rem;
}

.admin-subnav-link:hover {
    background: var(--admin-pane-alt);
    color: var(--admin-ink);
}

.admin-subnav-link.active {
    background: var(--admin-brand);
    color: #fff;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.24);
}

.admin-secondary-page .admin-sidebar-profile {
    margin-top: auto;
    border-top: 1px solid var(--admin-border);
    padding-top: 0.65rem;
    position: relative;
}

.admin-secondary-page .admin-sidebar-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    background: var(--admin-pane-alt);
    cursor: pointer;
    font: inherit;
    border: 1px solid var(--admin-border);
    color: var(--admin-ink);
    outline: none;
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 0.45rem 0.55rem;
}

.admin-secondary-page .admin-sidebar-profile-trigger:hover {
    color: var(--admin-ink);
    background: var(--admin-pane);
}

.admin-secondary-page .admin-sidebar-profile-pic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--admin-border);
    flex: 0 0 auto;
}

.admin-secondary-page .admin-sidebar-profile-name {
    font-size: 0.92rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}

.admin-secondary-page .admin-sidebar-profile-chevron {
    font-size: 0.78rem;
    color: var(--admin-muted);
    transition: transform 0.2s ease;
}

.admin-secondary-page .admin-sidebar-profile-menu {
    position: fixed;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    min-width: 260px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    background: var(--admin-pane);
    color: var(--admin-ink);
    border: 1px solid var(--admin-border);
    border-radius: 0.8rem;
    box-shadow: 0 14px 30px rgba(15, 31, 54, 0.18);
}

.admin-secondary-page .admin-sidebar-profile-menu .dropdown-item {
    padding: 0.52rem 0.68rem;
    border-radius: 0.55rem;
    color: var(--admin-ink);
    font-weight: 600;
}

.admin-secondary-page .admin-sidebar-profile-menu .dropdown-item:hover {
    background: var(--admin-pane-alt);
    color: var(--admin-ink);
}

.admin-secondary-page .admin-sidebar-profile-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: var(--admin-border);
}

.admin-secondary-page .admin-sidebar-menu-option {
    padding: 0.55rem 0.9rem;
    border-top: 1px solid var(--admin-border);
}

.admin-secondary-page .admin-sidebar-menu-option .form-check-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--admin-ink);
}

.admin-secondary-page .admin-sidebar-menu-option .form-check-label i {
    width: 1rem;
    margin-right: 0.35rem;
    text-align: center;
}

.admin-secondary-page .admin-secondary-main {
    width: calc(100% - var(--admin-sidebar-width));
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
    border-left: 1px solid var(--admin-border);
    background: var(--admin-bg);
    padding: 1.2rem;
    transition: width 0.22s ease, margin-left 0.22s ease;
}

.admin-secondary-page.admin-sidebar-collapsed .admin-secondary-main,
.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-secondary-main {
    width: calc(100% - var(--admin-sidebar-collapsed-width));
    margin-left: var(--admin-sidebar-collapsed-width);
}

.admin-secondary-page .admin-secondary-main > .container-fluid {
    padding: 0 !important;
}

.admin-secondary-page .admin-content-panel {
    background: var(--admin-pane-alt);
    border: 1px solid var(--admin-border);
    border-radius: 0.95rem;
    box-shadow: 0 10px 22px rgba(18, 33, 56, 0.08);
    padding: 1rem;
}

.admin-secondary-page .admin-content-panel .card {
    border: 1px solid var(--admin-border);
    border-radius: 0.85rem;
    background: var(--admin-pane);
    box-shadow: 0 8px 18px rgba(15, 31, 54, 0.09);
}

.admin-secondary-page .admin-content-panel .card-header {
    border-bottom: 1px solid var(--admin-border);
    background: linear-gradient(140deg, var(--admin-pane-alt) 0%, var(--admin-pane) 100%);
}

.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-nav-title-text,
.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-link-text {
    display: none;
}

.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-nav-title {
    justify-content: center;
}

.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-nav-rail .nav-link {
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-sidebar-profile-name,
.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-sidebar-profile-chevron {
    display: none;
}

.admin-secondary-page .admin-secondary-shell.is-nav-collapsed .admin-sidebar-profile-trigger {
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

body.admin-theme.admin-secondary-page {
    --admin-bg: #101826;
    --admin-pane: #172235;
    --admin-pane-alt: #1b2940;
    --admin-table-row: #22314a;
    --admin-table-hover: #273852;
    --admin-ink: #e7edf7;
    --admin-muted: #9baac0;
    --admin-border: #2e3d55;
    --admin-brand: #60a5fa;
    --admin-brand-soft: rgba(96, 165, 250, 0.18);
}

body.admin-theme.admin-secondary-page .admin-secondary-shell {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

body.admin-theme.admin-secondary-page .card,
body.admin-theme.admin-secondary-page .modal-content,
body.admin-theme.admin-secondary-page .list-group-item,
body.admin-theme.admin-secondary-page .table,
body.admin-theme.admin-secondary-page .table th,
body.admin-theme.admin-secondary-page .table td,
body.admin-theme.admin-secondary-page .form-label,
body.admin-theme.admin-secondary-page .form-check-label,
body.admin-theme.admin-secondary-page .event-modal-body,
body.admin-theme.admin-secondary-page .event-modal-pre,
body.admin-theme.admin-secondary-page .stacked-diff-content {
    color: var(--admin-ink);
}

body.admin-theme.admin-secondary-page .card,
body.admin-theme.admin-secondary-page .modal-content,
body.admin-theme.admin-secondary-page .list-group-item {
    background: var(--admin-pane);
    border-color: var(--admin-border);
}

body.admin-theme.admin-secondary-page .card-header,
body.admin-theme.admin-secondary-page .table-light,
body.admin-theme.admin-secondary-page .table > thead {
    background: var(--admin-pane-alt);
}

body.admin-theme.admin-secondary-page .table > tbody > tr > * {
    color: var(--admin-ink);
    background: var(--admin-table-row);
    box-shadow: inset 0 0 0 9999px var(--admin-table-row);
}

body.admin-theme.admin-secondary-page .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--admin-ink);
    background: var(--admin-table-row);
    box-shadow: inset 0 0 0 9999px var(--admin-table-row);
}

body.admin-theme.admin-secondary-page .table-striped > tbody > tr:nth-of-type(even) > * {
    color: var(--admin-ink);
    background: var(--admin-table-row);
    box-shadow: inset 0 0 0 9999px var(--admin-table-row);
}

body.admin-theme.admin-secondary-page .table-hover > tbody > tr:hover > * {
    color: var(--admin-ink);
    background: var(--admin-table-hover);
    box-shadow: inset 0 0 0 9999px var(--admin-table-hover);
}

body.admin-theme.admin-secondary-page .form-control,
body.admin-theme.admin-secondary-page .form-select {
    background: rgba(7, 18, 35, 0.78);
    color: var(--admin-ink);
    border-color: var(--admin-border);
}

body.admin-theme.admin-secondary-page .form-control:focus,
body.admin-theme.admin-secondary-page .form-select:focus {
    border-color: rgba(0, 255, 135, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 135, 0.18);
}

body.admin-theme.admin-secondary-page .btn-outline-secondary,
body.admin-theme.admin-secondary-page .btn-outline-dark {
    color: #d6e7ff;
    border-color: rgba(136, 176, 230, 0.36);
}

body.admin-theme.admin-secondary-page .btn-outline-secondary:hover,
body.admin-theme.admin-secondary-page .btn-outline-dark:hover {
    color: #061126;
    background: #9fd3ff;
    border-color: #9fd3ff;
}

body.admin-theme.admin-secondary-page .badge.bg-dark {
    background-color: #2b3c57 !important;
}

@media (max-width: 991px) {
    .main-navbar .container {
        position: relative;
    }

    .main-navbar .navbar-toggler {
        position: relative;
        z-index: 1210;
    }

    .main-navbar .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        min-height: 100dvh;
        max-width: 100%;
        box-sizing: border-box;
        z-index: 1205;
        margin: 0;
        border-radius: 0;
        border: 0;
        padding: 6.25rem 1.1rem 1.6rem;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0s linear 0.28s;
    }

    .main-navbar .mobile-nav-drawer .mobile-drawer-brand {
        display: inline-flex !important;
        position: absolute;
        top: 1rem;
        left: 1.1rem;
        right: 4.2rem;
        justify-content: flex-start;
        width: auto;
        margin-bottom: 0;
    }

    .main-navbar .mobile-nav-drawer.collapse {
        display: block !important;
    }

    .main-navbar .mobile-nav-drawer.collapsing {
        display: block !important;
        height: 100vh;
        min-height: 100dvh;
    }

    .main-navbar .mobile-nav-drawer.show {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.28s ease;
    }

    .main-navbar .mobile-nav-drawer .navbar-nav {
        gap: 0.25rem;
    }

    .main-navbar .mobile-nav-drawer .nav-link {
        font-size: 0.94rem;
        padding: 0.6rem 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .main-navbar .mobile-nav-drawer .dropdown-toggle {
        gap: 0.35rem;
    }

    .main-navbar .mobile-nav-drawer .dropdown-toggle::after {
        margin-left: 0.1rem;
        transition: transform 0.2s ease;
    }

    .main-navbar .mobile-nav-drawer .nav-dropdown.is-open > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .gdku-theme .main-navbar .mobile-nav-drawer {
        background: rgba(245, 241, 234, 0.98);
    }

    body.index-snap-mode .main-navbar .mobile-nav-drawer {
        background: rgba(245, 241, 234, 0.98);
    }

    .nav-dropdown-content {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-top: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-dropdown.is-open .nav-dropdown-content {
        max-height: 220px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .profile-dropdown-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-dropdown-container .user-info {
        justify-content: center;
    }

    .profile-dropdown-container .dropdown-menu-custom {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        min-width: 0;
        width: min(92vw, 360px);
        max-width: 100%;
        margin-top: 0.55rem;
        transform-origin: top center;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        display: block;
        text-align: center;
        transition: max-height 0.24s ease, opacity 0.2s ease;
    }

    .profile-dropdown-container .dropdown-menu-custom.show {
        opacity: 1;
        max-height: 340px;
        pointer-events: auto;
    }

    .profile-dropdown-container .dropdown-menu-custom .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
    }

    .profile-dropdown-container .dropdown-menu-custom .dropdown-item i {
        width: auto;
    }

    .profile-dropdown-container .dropdown-menu-custom .profile-header {
        text-align: center;
    }

    .nav-dropdown-item {
        padding-left: 0.4rem;
    }

    .main-navbar .mobile-nav-drawer .nav-dropdown-content {
        text-align: center;
    }

    .main-navbar .mobile-nav-drawer .nav-dropdown-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .admin-theme .main-navbar .mobile-nav-drawer,
    .admin-mode .main-navbar .mobile-nav-drawer {
        background: rgba(8, 15, 38, 0.98);
    }

    .admin-theme .nav-dropdown-content,
    .admin-mode .nav-dropdown-content {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0.2rem 0 0.35rem;
    }

    .admin-theme .nav-dropdown-item,
    .admin-mode .nav-dropdown-item {
        padding-left: 0.2rem;
    }
}

@media (max-width: 768px) {
    .admin-secondary-page .admin-nav-rail {
        position: static;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--admin-border);
        padding: 0.75rem;
        max-height: none;
    }

    .admin-secondary-page .admin-secondary-main,
    .admin-secondary-page.admin-sidebar-collapsed .admin-secondary-main {
        margin-left: 0;
        width: 100%;
        min-height: auto;
        padding: 0.85rem;
        border-left: 0;
    }

    .admin-secondary-page .admin-nav-rail .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .admin-secondary-page .admin-nav-rail .nav-item {
        width: calc(50% - 0.2rem);
    }

    .admin-secondary-page .admin-nav-title {
        justify-content: space-between;
    }

    .admin-secondary-page .admin-nav-title-text,
    .admin-secondary-page .admin-link-text {
        display: inline;
    }

    body {
        padding-top: 74px;
    }

    .gdku-theme .navbar-brand strong {
        font-size: 1.14rem;
    }

    .gdku-theme .navbar-brand small {
        font-size: 0.63rem;
    }

    .page-content {
        padding-top: 20px;
    }
}
