/* MOBILE-FIRST DESIGN SYSTEM - Danone Aqua Sales App */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #00A3E0;
    --primary-dark: #0077C8;
    --bg-light: #F1F5F9;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    /* Padding bawah agar konten tidak tertutup bottom nav */
    padding-bottom: 80px; 
}

/* --- TOP APP BAR --- */
.top-app-bar {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 100;
}

.top-app-bar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-dark);
}

.top-app-bar .brand img { height: 32px; }
.top-app-bar .brand i { font-size: 1.4em; color: var(--primary); }

.user-menu-btn {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.1em;
    cursor: pointer;
}

/* --- MAIN CONTENT --- */
.content { padding: 20px; }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5em; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.page-header p { color: var(--text-gray); font-size: 0.95em; }

/* --- CARDS (Touch Friendly) --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.module-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    border-left: 4px solid var(--primary);
}

.module-card:active { transform: scale(0.98); background: #f8fafc; }

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    flex-shrink: 0;
}

.module-icon.blue { background: linear-gradient(135deg, #00A3E0, #0077C8); }
.module-icon.green { background: linear-gradient(135deg, #10B981, #059669); }
.module-icon.orange { background: linear-gradient(135deg, #F59E0B, #D97706); }

.module-info h3 { font-size: 1.1em; font-weight: 600; margin-bottom: 4px; }
.module-info p { font-size: 0.85em; color: var(--text-gray); line-height: 1.4; }

/* --- BOTTOM NAVIGATION (Mobile First) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom)); /* Support iPhone notch */
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75em;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-item i { font-size: 1.4em; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); font-weight: 600; }

/* --- LOGIN PAGE --- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #00A3E0 0%, #0077C8 100%);
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.login-header { text-align: center; margin-bottom: 28px; }
.login-logo { max-width: 100px; margin: 0 auto 16px; display: block; }
.login-header h1 { font-size: 1.5em; color: var(--primary-dark); font-weight: 700; }
.login-header p { color: var(--text-gray); font-size: 0.9em; margin-top: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 8px; color: var(--text-dark); }
.form-control {
    width: 100%;
    padding: 14px 16px; /* Besar untuk touch */
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1em;
    background: #F8FAFC;
    transition: all 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); }

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; width: auto; padding: 8px 16px; font-size: 0.9em; }

.alert { padding: 14px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9em; display: flex; align-items: center; gap: 10px; }
.alert-error { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }

/* --- DESKTOP ENHANCEMENT (Optional) --- */
@media (min-width: 768px) {
    .content { max-width: 800px; margin: 0 auto; padding: 32px 20px; }
    .bottom-nav { max-width: 800px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; border: 1px solid #E2E8F0; border-bottom: none; }
    .module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .module-card { margin-bottom: 0; flex-direction: column; text-align: center; }
    .module-icon { margin: 0 auto 12px; }
}