/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-navy: #00205B;
    --secondary-teal: #0098B0;
    --accent-orange: #ED8B00;
    --bg-light: #F4F7F6;
    --text-dark: #333333;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === UTILITY CLASSES === */
.container {
    width: 100%;
    max-width: 400px; /* Lebar maksimal untuk mobile-feel di desktop */
    margin: 0 auto;
    padding: 20px;
}

/* === LOGIN PAGE STYLING === */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-teal) 100%);
}

.login-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    color: var(--primary-navy);
    font-size: 24px;
    margin-bottom: 10px;
}

.login-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-teal);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 152, 176, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #d17a00;
}

.alert {
    padding: 10px;
    background-color: #ffcccc;
    color: #cc0000;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* === UTILITY TEKS === */
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

/* === MOBILE APP LAYOUT (KARYAWAN) === */
.app-container {
    width: 100%;
    max-width: 480px; /* Standar maksimal lebar smartphone */
    margin: 0 auto;
    background-color: var(--bg-light);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding-bottom: 70px; /* Ruang untuk bottom nav */
}

/* Header Aplikasi yang Konsisten */
.app-header {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 32, 91, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 95px; /* Mengunci tinggi agar konsisten di semua halaman */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    flex: 1;
    padding-right: 15px; /* Memberi jarak antara teks dan ikon */
}

.header-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.2;
}

.header-content p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.3;
}

/* Tombol Ikon di Header (Leaderboard) */
.header-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700; /* Warna Emas Trofi */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.header-action-btn:active {
    transform: scale(0.9);
    background: rgba(255, 215, 0, 0.2);
}

/* Konten Utama */
.app-content {
    padding: 20px;
}

/* Kartu Ringkasan (Widget) */
.widget-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--secondary-teal);
}

.widget-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-data-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.data-box {
    flex: 1;
}

.data-box h3 {
    color: var(--primary-navy);
    font-size: 24px;
    margin-bottom: 5px;
}

.data-box span {
    font-size: 12px;
    color: #666;
}

.divider {
    width: 1px;
    background-color: #eee;
    margin: 0 15px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px; /* Menyesuaikan app-container */
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0aec0;
    font-size: 11px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--accent-orange);
}

.nav-item.active i {
    color: var(--accent-orange);
}

.nav-item:hover {
    color: var(--secondary-teal);
}