:root {
    --bg-dark: #1f2937;
    --nav-bg: #111827;
    --text-gray: #9ca3af;
    --text-white: #ffffff;
    --active-bg: #111827;
    --hover-bg: #374151;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: white;
}

.navbar {
    background-color: var(--nav-bg);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #374151;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo img {
    height: 32px;
}

/* Definisi Animasi Lonceng Bergetar */
@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    70% { transform: rotate(8deg); }
    80% { transform: rotate(-8deg); }
    90% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
}

.bell-ringing {
    display: inline-block; /* Penting agar rotasi bekerja dengan baik */
    animation: ring 0.5s ease-in-out;
}

#bell-icon {
    transform-origin: top center;
}

/* Desktop Links */
.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links-desktop a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: 0.2s;
}

.nav-links-desktop a.active, .nav-links-desktop a:hover {
    background-color: #030712;
    color: white;
}

.more-dropdown {
    position: relative;
}

#more-menu {
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
}

#more-btn i {
    transition: transform 0.2s;
}

.more-dropdown.active #more-btn i {
    transform: rotate(180deg);
}

/* Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.25rem;
    cursor: pointer;
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-dropdown img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
}

/* Styling Ikon Hamburger Custom */
.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out; /* Animasi smooth */
    transform-origin: left center;
}

/* Animasi Menjadi "X" */
#mobile-toggle.active-icon span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: -2px;
}

#mobile-toggle.active-icon span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#mobile-toggle.active-icon span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: 2px;
}

/* Dropdown Menu Style */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: #1f2937;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    border-radius: 0.375rem;
    overflow: hidden;
    z-index: 100;
    border: 1px solid #374151;
}

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

.dropdown-menu a {
    color: #d1d5db;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background-color: #374151;
    color: white;
}

/* Mobile Section */
.mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-menu a {
    color: var(--text-gray);
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.mobile-menu a.active {
    background-color: #030712;
    color: white;
}

/* Content Placeholder */
.content-placeholder {
    text-align: center;
    margin-top: 5rem;
}

.underline {
    width: 100px;
    height: 4px;
    background-color: #d97706;
    margin: 0 auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    
    .nav-links-desktop {
        display: none;
    }
    
    .more-dropdown {
        display: none;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 64px;
    }

    .nav-left {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .mobile-menu-button {
        display: block;
        cursor: pointer;
        z-index: 20;
    }

    .nav-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: var(--nav-bg);
        border-top: 1px solid #374151;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        z-index: 99;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #1f2937;
        font-size: 0.9rem;
    }
}


