/* ELOQSPEECH MODERN DESIGN SYSTEM */
/* Primary Blue: #4d97ff, Warning Orange: #ffab19, Success Green: #10b981 */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafd;
    color: #2d3748;
    line-height: 1.6;
}

#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card Container Modern */
.card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(77, 151, 255, 0.08);
    text-align: center;
}

/* Branding */
.logo-large {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Input Fields Modern */
input {
    width: 100%;
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #4d97ff;
    box-shadow: 0 0 0 4px rgba(77, 151, 255, 0.1);
}

/* Button Modern (Pill Shaped) */
.btn-login {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: transform 0.1s active;
}

.btn-login:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Header Dashboard */
.header {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.header-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    color: #4d97ff;
}

.logo-small {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

/* Messaging */
.error-msg {
    background-color: rgba(255, 171, 25, 0.1);
    color: #ffab19;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
    display: none; /* Muncul via JS */
}

.error-msg:not(:empty) {
    display: block;
}

/* Utility */
.text-muted {
    color: #718096;
    font-size: 14px;
}


/* --- DASHBOARD SPECIFIC STYLES --- */
/* --- DASHBOARD LAYOUT FIX --- */

/* Penampung Utama Dashboard */
.dashboard-container {
    width: 100%;
    max-width: 500px; /* Batasi lebar agar rapi di tablet */
    margin: 0 auto;   /* Posisi tengah */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #4d97ff;
    font-size: 16px;
}

/* Kartu Profil */
.profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.profile-greeting { color: #718096; font-size: 12px; margin: 0; font-weight: 600; text-transform: uppercase; }
.profile-name { color: #2d3748; font-size: 24px; margin: 5px 0 15px 0; font-weight: 800; }

.badge-container { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 5px 12px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge-admin { background: #4d97ff; color: white; }
.badge-contributor { background: #10b981; color: white; }
.badge-active { background: #ebf8ff; color: #3182ce; border: 1px solid #bee3f8; }

/* PERBAIKAN GRID: Gunakan CSS Grid murni (bukan flex) */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Paksa 2 kolom sama rata */
    gap: 15px;
    width: 100%;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.menu-item:active { transform: scale(0.95); background-color: #f7fafc; }
.menu-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.menu-title { font-weight: 700; font-size: 14px; color: #2d3748; }
.menu-desc { font-size: 11px; color: #a0aec0; margin-top: 2px; }

/* Tombol Keluar Kecil */
.btn-logout-compact {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}