/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a2e5a;
    --primary-dark: #0f1e3d;
    --primary-light: #2a4080;
    --secondary-color: #2a4080;
    --bg-color: #f0f3f8;
    --card-bg: #ffffff;
    --text-color: #1a2e5a;
    --text-muted: #5a6a8a;
    --success-color: #1a2e5a;
    --warning-color: #1a2e5a;
    --danger-color: #c0392b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(26, 46, 90, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #1a2e5a 0%, #2a4080 100%);
}

.auth-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(26, 46, 90, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8d4e8;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8faff;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 46, 90, 0.1);
}

.btn {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* Mobile Layout Structure */
.dashboard-container {
    display: block;
    padding-bottom: 90px;
    max-width: 600px;
    margin: 0 auto;
}

.sidebar {
    display: none !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--primary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(26, 46, 90, 0.2);
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: #ffffff;
}

.bottom-nav-item:not(.active):hover {
    color: rgba(255, 255, 255, 0.85);
}

.bottom-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    line-height: 1;
}

/* Header */
.mobile-header {
    background: var(--primary-color);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(26, 46, 90, 0.2);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-branding {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.user-info-mini {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
    padding: 0 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cards & Stats */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card.full-width {
    grid-column: span 2;
}

.stat-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Data Lists (Mobile Tables) */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-card {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #e8edf5;
    padding-bottom: 8px;
}

.data-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.data-label {
    color: var(--text-muted);
}

.data-value {
    font-weight: 500;
    color: var(--primary-color);
}

.text-success {
    color: var(--primary-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-primary {
    color: var(--primary-color);
}

/* Responsive table for mobile */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Print override */
@media print {
    .bottom-nav {
        display: none;
    }

    .dashboard-container {
        padding-bottom: 0;
    }

    table {
        display: table;
        width: 100%;
    }

    .data-list {
        display: none;
    }
}