/* ============================================
   TEMA BIRU MUDA GEKRAF - GLOBAL STYLES
   ============================================ */

/* Root Variables - Tema Biru */
:root {
    --primary: #2196F3;
    --primary-light: #64B5F6;
    --primary-lighter: #BBDEFB;
    --primary-dark: #1976D2;
    --primary-darker: #0D47A1;
    --primary-bg: #E3F2FD;
    --primary-gradient: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    --primary-gradient-dark: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    --text-primary: #0D47A1;
    --text-secondary: #1565C0;
    --text-light: #64B5F6;
    --white: #ffffff;
    --shadow-blue: 0 5px 20px rgba(33, 150, 243, 0.15);
    --shadow-blue-dark: 0 8px 30px rgba(33, 150, 243, 0.25);
}

/* ============================================
   HEADER STYLES - BIRU
   ============================================ */
header {
    background: var(--primary-gradient);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
}

.header-title h1 {
    color: var(--text-primary);
    font-weight: 700;
}

.header-title .subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

.logo-img {
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 4px;
    background: white;
}

/* ============================================
   DESKTOP NAV - BIRU
   ============================================ */
.desktop-nav {
    background: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.desktop-nav .nav-links a {
    color: rgba(255,255,255,0.9);
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
}

.desktop-nav .nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.desktop-nav .nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.2);
}

/* Profile Dropdown */
.profile-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.profile-btn:hover {
    background: rgba(255,255,255,0.25);
}

.login-link {
    background: white;
    color: var(--primary-dark) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.login-link:hover {
    background: var(--primary-lighter);
    transform: scale(1.02);
}

/* Dropdown Menu */
.dropdown-menu {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-blue-dark);
    border: 1px solid var(--primary-lighter);
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-menu a {
    color: var(--text-secondary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.dropdown-menu .logout-item {
    color: #d32f2f;
}

.dropdown-menu .logout-item:hover {
    background: #ffebee;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 5px 0;
}

/* ============================================
   MOBILE MENU - BIRU
   ============================================ */
.mobile-menu {
    background: white;
    box-shadow: var(--shadow-blue-dark);
}

.mobile-menu-header {
    background: var(--primary-gradient);
    border-bottom: 2px solid var(--primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 18px;
}

.mobile-menu-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-menu-links a {
    color: var(--text-secondary);
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
    font-weight: 500;
}

.mobile-menu-links a:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.mobile-menu-auth a {
    color: var(--text-secondary);
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.mobile-menu-auth a:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.mobile-logout {
    color: #d32f2f !important;
}

.mobile-logout:hover {
    background: #ffebee !important;
}

.mobile-login-link {
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    margin: 10px 20px;
    text-align: center;
    font-weight: 600;
}

.mobile-login-link:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

.menu-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--primary-dark);
}

/* ============================================
   BOTTOM NAV - BIRU
   ============================================ */
.bottom-nav {
    background: var(--primary-dark);
    border-top: 2px solid var(--primary-light);
    box-shadow: 0 -2px 10px rgba(33, 150, 243, 0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}

.bottom-nav-item {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 11px;
}

.bottom-nav-item .nav-icon {
    font-size: 22px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.bottom-nav-item .nav-label {
    font-size: 10px;
    margin-top: 2px;
}

.bottom-nav-item.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.bottom-nav-item.active .nav-icon {
    color: white;
}

.bottom-nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.bottom-nav-profile {
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-size: 11px;
}

.bottom-nav-profile .nav-icon {
    font-size: 22px;
    color: rgba(255,255,255,0.8);
}

.bottom-nav-profile .nav-label {
    font-size: 10px;
    margin-top: 2px;
}

.bottom-nav-profile.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.bottom-nav-profile.active .nav-icon {
    color: white;
}

/* Bottom Dropdown */
.bottom-dropdown {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-blue-dark);
    border: 1px solid var(--primary-lighter);
    padding: 8px 0;
    min-width: 180px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    display: none;
}

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

.bottom-dropdown a {
    color: var(--text-secondary);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
}

.bottom-dropdown a:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

.bottom-dropdown .logout-item {
    color: #d32f2f;
}

.bottom-dropdown .logout-item:hover {
    background: #ffebee;
}

.bottom-dropdown hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 5px 0;
}

/* ============================================
   FOOTER - BIRU
   ============================================ */
footer {
    background: var(--primary-gradient-dark);
    color: rgba(255,255,255,0.9);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer p:last-child {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ============================================
   FLOATING BUTTON & MENU - BIRU
   ============================================ */
.floating-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.floating-menu {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-blue-dark);
    border: 1px solid var(--primary-lighter);
    padding: 8px 0;
    min-width: 200px;
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 1000;
    display: none;
}

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

.floating-menu a {
    color: var(--text-secondary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.floating-menu a:hover {
    background: var(--primary-bg);
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 999;
    }
    
    .bottom-nav {
        padding: 6px 0;
    }
    
    .bottom-nav-item {
        padding: 2px 8px;
    }
    
    .bottom-nav-item .nav-icon {
        font-size: 18px;
    }
    
    .bottom-nav-item .nav-label {
        font-size: 9px;
    }
    
    .bottom-nav-profile .nav-icon {
        font-size: 18px;
    }
    
    .bottom-nav-profile .nav-label {
        font-size: 9px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 70px;
        right: 15px;
    }
    
    .floating-menu {
        bottom: 130px;
        right: 15px;
        min-width: 160px;
    }
    
    .floating-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-title .subtitle {
        font-size: 11px;
    }
    
    .bottom-nav-item .nav-label {
        font-size: 8px;
    }
    
    .bottom-nav-profile .nav-label {
        font-size: 8px;
    }
    
    .bottom-dropdown {
        min-width: 150px;
    }
    
    .bottom-dropdown a {
        font-size: 12px;
        padding: 8px 14px;
    }
}