/* ==========================================================================
   1. GLOBAL SYSTEM SETUP & FONTS
   ========================================================================== */
@font-face {
    font-family: 'Blue';
    src: url('fonts/Blue-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f0f4f8;
    font-family: 'Blue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. RESPONSIVE NAVIGATION HEADER (STICKY FIXED FLUID TRACK)
   ========================================================================== */
.navbar {
    background-color: rgb(3, 0, 137);
    border-bottom: 1px solid #002d69;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.navbar-container {
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: 52px; 
    position: relative;
}

.logo-svg {
    height: 26px;
    width: auto;
}

/* --- Responsive Hamburger Trigger --- */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    position: relative; 
    z-index: 1005; 
}

.hamburger-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    margin: 0 auto;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Dropdown Menu Panel Overlay --- */
.mobile-menu {
    display: block;
    position: absolute;
    top: 51px; 
    left: 0;
    right: 0;
    background: rgb(3, 0, 137);
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 12, 58, 0.4), 0 12px 24px -8px rgba(0, 12, 58, 0.2);
    border-bottom: 1px solid #002d69;
    
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease-out,
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s;
    overflow: hidden;
    z-index: 999;
}

.mobile-menu.open {
    max-height: 440px; 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 1.25rem;
}

/* --- Dropdown User Profile Card --- */
.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08); 
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
}

.user-details { display: flex; flex-direction: column; }
.user-email { font-size: 0.85rem; font-weight: 600; color: #ffffff; }
.user-label { font-size: 0.68rem; color: #93c5fd; font-weight: 700; letter-spacing: 0.02em; }

/* --- Menu Nav Links Track --- */
.menu-nav-links { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: #cbd5e1; 
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-menu-item:hover { 
    background-color: rgba(255, 255, 255, 0.06); 
    color: #ffffff; 
}

.mobile-menu-item.active { 
    background-color: rgba(255, 255, 255, 0.12); 
    color: #ffffff; 
    font-weight: 600; 
}

.active-indicator { 
    width: 6px; 
    height: 6px; 
    background-color: #0065ed; 
    border-radius: 50%; 
}

/* --- Sign Out Button Group --- */
.logout-form-wrapper {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.mobile-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem; 
    width: 100%;
    background-color: rgba(239, 68, 68, 0.1); 
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5; 
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.15s ease, transform 0.1s ease;
}

.logout-icon {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mobile-menu-logout:hover {
    background-color: #ef4444; 
    border-color: #ef4444;
    color: #ffffff; 
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.mobile-menu-logout:hover .logout-icon { transform: translateX(2px); }
.mobile-menu-logout:active { transform: scale(0.98); }

/* ==========================================================================
   3. LOGIN & DASHBOARD UTILITIES (WHITE & PRESET PREMIUM BLUE #064497)
   ========================================================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 52px); /* Offsets navigation cleanly */
    width: 100%;
    max-width: 480px;
    /* background: linear-gradient(135deg, #064497 0%, #022352 100%); */
    padding: 20px;
}

.login-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(6, 68, 151, 0.12);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    margin: 0 0 0.5rem 0;
    color: #064497;
    font-weight: 700;
}

.login-form p {
    margin: 5 0 1.5rem 0;
    color: #5c6775;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c343f;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cedbe0;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
    color: #2c343f;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23064497%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #064497;
    box-shadow: 0 0 0 3px rgba(6, 68, 151, 0.15);
}

.form-group select:hover {
    border-color: #a0aec0;
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background: #064497;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: #043272;
}

.dashboard {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(6, 68, 151, 0.08);
}

.dashboard h1 {
    margin: 0 0 0.5rem 0;
    color: #064497;
}

.dashboard p {
    margin: 0 0 2rem 0;
    color: #5c6775;
}

.dashboard button {
    padding: 0.75rem 1.5rem;
    background: #064497;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}

.dashboard button:hover {
    background: #043272;
}