.app-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
}

.app-navbar__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.app-navbar__left,
.app-navbar__links,
.app-navbar__actions {
    display: flex;
    align-items: center;
}

.app-navbar__left {
    gap: 2rem;
    min-width: 0;
}

.app-navbar__links,
.app-navbar__actions {
    gap: 1rem;
}

.app-navbar__brand {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-navbar__link {
    white-space: nowrap;
    transition: color 0.15s ease-in-out;
}

.app-navbar__link:hover,
.app-navbar__dropdown:hover > .app-navbar__dropdown-button {
    color: #1f6fd1 !important;
}

.app-navbar__user {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.app-navbar__user-name {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.app-navbar__dropdown {
    position: relative;
}

.app-navbar__dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-navbar__dropdown-button i {
    font-size: 0.72rem;
}

.app-navbar__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    display: none;
    min-width: 10rem;
    border: 1px solid #e7edf5;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(31, 111, 209, 0.12);
    padding: 0.45rem;
}

.app-navbar__dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #ffe934 0%, #ff9f1c 20%, #d23d97 45%, #4f42c9 70%, #1f6fd1 90%, #ffe934 100%);
    background-size: 300% 300%;
    animation: smoothNavHeaderGradient 8s ease infinite;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(31, 111, 209, 0.18);
    margin-bottom: 0.4rem;
}

@keyframes smoothNavHeaderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.app-navbar__dropdown:hover .app-navbar__dropdown-menu,
.app-navbar__dropdown:focus-within .app-navbar__dropdown-menu {
    display: grid;
}

.app-navbar__dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0.75rem;
    color: #374151;
    font-weight: 750;
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
}

.app-navbar__dropdown-menu a i {
    width: 1rem;
    color: #1f6fd1;
    text-align: center;
}

.app-navbar__dropdown-menu a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.app-navbar__dropdown-menu a.app-navbar__dropdown-logout,
.app-navbar__dropdown-menu a.app-navbar__dropdown-logout i {
    color: #ef4444;
}

.app-navbar__dropdown-menu a.app-navbar__dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.app-navbar__dropdown-menu a.app-navbar__dropdown-logout:hover i {
    color: #dc2626;
}

.app-navbar__logout,
.app-navbar__register {
    white-space: nowrap;
}

.app-navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    color: #1f2937;
    background: #ffffff;
}

.app-navbar__toggle:hover {
    background: #f8fafc;
    color: #2563eb;
}

.app-navbar__mobile {
    border-top: 1px solid #eef2f7;
    padding: 0.75rem 0 1rem;
}

.app-navbar__mobile-links,
.app-navbar__mobile-actions {
    display: grid;
    gap: 0.45rem;
}

.app-navbar__mobile-links a,
.app-navbar__mobile-actions a,
.app-navbar__mobile-actions button,
.app-navbar__mobile-actions span {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    padding: 0 0.9rem;
    color: #374151;
    font-weight: 700;
    text-align: left;
}

.app-navbar__mobile-links a:hover,
.app-navbar__mobile-actions a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.app-navbar__mobile-actions {
    border-top: 1px solid #eef2f7;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.app-navbar__mobile-actions a:last-child,
.app-navbar__mobile-actions button {
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
}

.app-navbar__mobile-actions button {
    width: 100%;
    background: #ef4444;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logout-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.logout-modal-box {
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(31, 111, 209, 0.15);
    animation: scaleIn 0.2s ease;
}

.logout-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 1.5rem;
}

.logout-modal-box h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.logout-modal-box p {
    font-size: 0.9rem;
    color: #667085;
}

.logout-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.logout-actions button {
    flex: 1;
    padding: 0.7rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel {
    background: #f1f5f9;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-logout {
    background: #ef4444;
    color: white;
}

.btn-logout:hover {
    background: #dc2626;
}

/* ANIMASI */
@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .app-navbar__left {
        gap: 1.25rem;
    }
    .app-navbar__links,
    .app-navbar__actions {
        gap: 0.75rem;
    }
    .app-navbar__user-name {
        max-width: 110px;
    }
}

@media (max-width: 992px) {
    .app-navbar__left {
        gap: 0.75rem;
    }
    .app-navbar__links {
        gap: 0.5rem;
    }
    .app-navbar__user-name {
        max-width: 90px;
    }
}

@media (max-width: 768px) {
    .app-navbar__links,
    .app-navbar__actions {
        display: none;
    }

    .app-navbar__toggle {
        display: inline-flex;
    }

    .app-navbar__left {
        min-width: 0;
    }

    .app-navbar__brand {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* User Avatar & Logout Button styles in Navbar */
.app-navbar__avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(31, 111, 209, 0.12);
    flex-shrink: 0;
}

.app-navbar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-navbar__avatar-fallback {
    font-size: 0.95rem;
    font-weight: 900;
    color: #1f6fd1;
}

.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.btn-nav-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-nav-logout i {
    font-size: 0.85rem;
}

/* Footer Custom dengan Full Multi-Colored Gradient Background */
.app-footer {
    margin-top: 4rem;
    background: linear-gradient(135deg, #1746a2 0%, #1f6fd1 20%, #4f42c9 42%, #d23d97 68%, #ff9f1c 88%, #ffe934 100%);
    color: #ffffff;
    position: relative;
    box-shadow: 0 -10px 30px rgba(31, 111, 209, 0.15);
}

.app-footer__accent-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.35);
}

.app-footer__body {
    padding: 3.5rem 1rem 2.5rem;
}

.app-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.app-footer__brand-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-bottom: 0.85rem;
}

.app-footer__brand-title img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.app-footer__brand-title span {
    font-size: 1.5rem;
    font-weight: 950;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-footer__desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.app-footer__title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.app-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.app-footer__links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-footer__links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.app-footer__social {
    display: flex;
    gap: 0.75rem;
}

.app-footer__social-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.app-footer__social-icon:hover {
    background: #ffffff;
    color: #1f6fd1;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.app-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.15);
    padding: 1.25rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .app-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

