@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-shrink: 0;
}

.navbar-toggle-checkbox {
    display: none;
}

.navbar {
    max-width: 1200px;
    margin: 0.5rem auto 1rem auto;
    padding: 0 0.9rem;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    backdrop-filter: blur(22px);
    transition-property: background-color, border-color, box-shadow, color;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 0.75rem;
}

.navbar-brand-area {
    flex-shrink: 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    transition-property: background-color, border-color, box-shadow, color;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.logo-mark {
    font-size: 1.15rem;
}

.logo-text {
    font-family: "Pacifico", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.navbar-desktop-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.9rem;
    margin-right: 0.9rem;
    flex: 1;
    justify-content: center;
}

.navbar-desktop-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02rem;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition-property: background-color, border-color, box-shadow, transform, color;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-user {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar,
.navbar * {
    color: inherit;
}

.navbar-bell-area {
    position: relative;
    flex-shrink: 0;
    margin-right: 0.2rem;
}

.icon-button {
    border: none;
    padding: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.nav-bell {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    transition-property: background-color, border-color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.nav-bell:hover {
    transform: translateY(-1px);
}

.bell-icon {
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 0.95rem;
    height: 0.95rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    background-color: #ef4444;
    color: #f9fafb;
}

.badge-hidden {
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    width: min(320px, 85vw);
    border-radius: 1rem;
    border-width: 1px;
    border-style: solid;
    padding-top: 0.6rem;
    padding-right: 0.7rem;
    padding-bottom: 0.55rem;
    padding-left: 0.7rem;
    display: none;
    z-index: 50;
}

.notification-dropdown-open {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.notification-dropdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.notification-dropdown-link {
    font-size: 0.8rem;
    text-decoration: none;
    padding-top: 0.25rem;
    padding-right: 0.55rem;
    padding-bottom: 0.25rem;
    padding-left: 0.55rem;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    white-space: nowrap;
    transition-property: background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.notification-list {
    max-height: 260px;
    overflow-y: auto;
    padding-top: 0.15rem;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
}

.notification-empty {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.notification-item {
    width: 100%;
    border: none;
    padding-top: 0.4rem;
    padding-right: 0.35rem;
    padding-bottom: 0.4rem;
    padding-left: 0.35rem;
    border-radius: 0.7rem;
    background: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    cursor: pointer;
    transition-property: background-color;
    transition-duration: 160ms;
}

.notification-item-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.notification-item-body {
    font-size: 0.8rem;
    opacity: 0.9;
}

.notification-item-meta {
    font-size: 0.72rem;
    opacity: 0.7;
}

.notification-footer {
    margin-top: 0.3rem;
    padding-top: 0.35rem;
    border-top-width: 1px;
    border-top-style: solid;
}

.notification-footer-link {
    font-size: 0.78rem;
    text-decoration: none;
    opacity: 0.9;
}

.navbar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition-property: background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.navbar-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
}

.navbar-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-right: 0.8rem;
    padding-bottom: 0.8rem;
    padding-left: 0.8rem;
    margin-top: 0.4rem;
    border-top-width: 1px;
    border-top-style: solid;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 1000;
}

.navbar-mobile-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.navbar-mobile-user {
    padding-top: 0.5rem;
    margin-top: 0.4rem;
    border-top-width: 1px;
    border-top-style: solid;
}

.navbar-mobile-menu .nav-link {
    justify-content: flex-start;
    width: 90%;
    border-radius: 0.85rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    box-shadow: none;
}

.navbar-mobile-user-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-mobile-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.nav-mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    font-weight: 600;
}

.nav-mobile-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.nav-mobile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.nav-mobile-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-mobile-power {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-width: 1px;
    border-style: solid;
    font-size: 1rem;
    transition-property: background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.navbar-toggle-checkbox:checked ~ .navbar-mobile-menu {
    display: flex;
}

@media (max-width: 900px) {
    .navbar-desktop-links {
        display: none;
    }

    .navbar-desktop-user {
        display: none;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-row {
        height: 56px;
    }

    .notification-dropdown {
        right: 0;
        width: min(340px, 90vw);
    }
}

@media (max-width: 640px) {
    .navbar {
        margin-left: 0.6rem;
        margin-right: 0.6rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .notification-dropdown {
        position: fixed;
        top: 3.6rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-height: calc(100vh - 4.5rem);
        border-radius: 1rem;
        z-index: 1400;
    }

    .notification-list {
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* DARK */

body.theme-dark .navbar {
    border-color: rgba(30, 64, 175, 0.55);
    background-image: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.25), transparent);
    background-color: rgba(2, 6, 23, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

body.theme-dark .navbar-brand {
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent);
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.8);
}

body.theme-dark .logo-text {
    color: #f9fafb;
}

body.theme-dark .nav-link {
    border-color: transparent;
    color: #e5e7eb;
    background-color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.9);
    border-color: rgba(129, 140, 248, 1);
    box-shadow: 0 10px 26px rgba(30, 64, 175, 0.9);
}

body.theme-dark .nav-link-active {
    background-image: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.6), rgba(37, 99, 235, 1));
    border-color: rgba(129, 140, 248, 1);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.95);
    color: #f9fafb;
}

body.theme-dark .nav-link-primary {
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), rgba(37, 99, 235, 1));
    border-color: rgba(56, 189, 248, 1);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.9);
    color: #0f172a;
}

body.theme-dark .nav-link-outline {
    border-color: rgba(148, 163, 184, 0.75);
    background-color: rgba(15, 23, 42, 0.95);
}

body.theme-dark .nav-bell {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.75);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

body.theme-dark .nav-bell:hover {
    background-color: rgba(37, 99, 235, 0.9);
    border-color: rgba(129, 140, 248, 1);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.95);
}

body.theme-dark .badge {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95);
}

body.theme-dark .notification-dropdown {
    border-color: rgba(30, 64, 175, 0.7);
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.98);
}

body.theme-dark .notification-dropdown-link {
    border-color: rgba(148, 163, 184, 0.8);
    background-color: rgba(15, 23, 42, 0.95);
}

body.theme-dark .notification-dropdown-link:hover {
    border-color: rgba(129, 140, 248, 1);
    background-color: rgba(30, 64, 175, 0.95);
}

body.theme-dark .notification-list::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.8);
}

body.theme-dark .notification-item:hover {
    background-color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .notification-item-unread {
    background-color: rgba(30, 64, 175, 0.55);
}

body.theme-dark .notification-footer {
    border-top-color: rgba(30, 64, 175, 0.7);
}

body.theme-dark .navbar-toggle {
    border-color: rgba(148, 163, 184, 0.75);
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

body.theme-dark .navbar-toggle-bar {
    background-color: #e5e7eb;
}

body.theme-dark .navbar-mobile-menu {
    border-top-color: rgba(30, 64, 175, 0.7);
    background-color: rgba(2, 6, 23, 0.98);
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.28), transparent 55%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
}

body.theme-dark .navbar-mobile-user {
    border-top-color: rgba(30, 64, 175, 0.7);
}

body.theme-dark .navbar-mobile-menu .nav-link {
    background-color: rgba(15, 23, 42, 0.96);
    border-color: rgba(30, 64, 175, 0.7);
}

body.theme-dark .nav-mobile-avatar {
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), rgba(37, 99, 235, 0.95));
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
    color: #0f172a;
}

body.theme-dark .nav-mobile-power {
    background-color: #ef4444;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
    border-color: rgba(248, 113, 113, 0.9);
    color: #fef2f2;
}

body.theme-dark .nav-mobile-power:hover {
    background-color: #dc2626;
    border-color: #fecaca;
}

body.theme-dark .navbar-toggle-checkbox:checked + .navbar-row .navbar-toggle {
    border-color: rgba(129, 140, 248, 1);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.95);
}

@media (max-width: 640px) {
    body.theme-dark .navbar {
        background-color: #020617;
        background-image: none;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    }
}

/* LIGHT */

body.theme-light .navbar {
    border-color: rgba(148, 163, 184, 0.55);
    background-image: radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.12), transparent);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

body.theme-light .navbar-brand {
    background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

body.theme-light .logo-text {
    color: #0f172a;
}

body.theme-light .nav-link {
    border-color: transparent;
    color: #334155;
    background-color: rgba(248, 250, 252, 0.96);
}

body.theme-light .nav-link:hover {
    background-color: #eff6ff;
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

body.theme-light .nav-link-active {
    background-image: radial-gradient(circle at 0 0, rgba(191, 219, 254, 0.9), rgba(96, 165, 250, 0.95));
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.16);
    color: #0f172a;
}

body.theme-light .nav-link-primary {
    background-image: radial-gradient(circle at 0 0, rgba(125, 211, 252, 0.9), rgba(59, 130, 246, 0.95));
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 12px 26px rgba(56, 189, 248, 0.18);
    color: #0f172a;
}

body.theme-light .nav-link-outline {
    border-color: rgba(203, 213, 225, 0.95);
    background-color: rgba(255, 255, 255, 0.96);
}

body.theme-light .nav-bell {
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.theme-light .nav-bell:hover {
    background-color: #eff6ff;
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.14);
}

body.theme-light .badge {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.96);
}

body.theme-light .notification-dropdown {
    border-color: rgba(203, 213, 225, 0.95);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

body.theme-light .notification-dropdown-link {
    border-color: rgba(203, 213, 225, 0.95);
    background-color: rgba(248, 250, 252, 0.96);
}

body.theme-light .notification-dropdown-link:hover {
    border-color: rgba(96, 165, 250, 0.75);
    background-color: #eff6ff;
}

body.theme-light .notification-list::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.65);
}

body.theme-light .notification-item:hover {
    background-color: rgba(241, 245, 249, 0.95);
}

body.theme-light .notification-item-unread {
    background-color: rgba(219, 234, 254, 0.8);
}

body.theme-light .notification-footer {
    border-top-color: rgba(226, 232, 240, 1);
}

body.theme-light .navbar-toggle {
    border-color: rgba(203, 213, 225, 0.95);
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.theme-light .navbar-toggle-bar {
    background-color: #334155;
}

body.theme-light .navbar-mobile-menu {
    border-top-color: rgba(226, 232, 240, 1);
    background-color: rgba(255, 255, 255, 0.98);
    background-image: radial-gradient(circle at 0 0, rgba(191, 219, 254, 0.4), transparent 55%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(20px);
}

body.theme-light .navbar-mobile-user {
    border-top-color: rgba(226, 232, 240, 1);
}

body.theme-light .navbar-mobile-menu .nav-link {
    background-color: rgba(248, 250, 252, 0.98);
    border-color: rgba(226, 232, 240, 1);
}

body.theme-light .nav-mobile-avatar {
    background-image: radial-gradient(circle at 0 0, rgba(125, 211, 252, 0.85), rgba(96, 165, 250, 0.9));
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
    color: #0f172a;
}

body.theme-light .nav-mobile-power {
    background-color: #ef4444;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    border-color: rgba(248, 113, 113, 0.8);
    color: #fef2f2;
}

body.theme-light .nav-mobile-power:hover {
    background-color: #dc2626;
    border-color: #fecaca;
}

body.theme-light .navbar-toggle-checkbox:checked + .navbar-row .navbar-toggle {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.14);
}

@media (max-width: 640px) {
    body.theme-light .navbar {
        background-color: rgba(255, 255, 255, 0.96);
        background-image: none;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    }
}