/* --- GLOBAL APP THEME --- */
:root {
    --primary: #2563eb; /* Professional Blue */
    --success: #10b981; /* Green */
    --danger: #ef4444;  /* Red */
    --dark: #1e293b;
    --light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light);
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Jagah chodi hai niche menu ke liye */
    color: var(--dark);
}

/* --- HEADER --- */
.app-header {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand-title { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.user-badge { font-size: 12px; background: #e0f2fe; color: #0369a1; padding: 5px 10px; border-radius: 20px; font-weight: 600; }

/* --- CARDS & CONTAINERS --- */
.container { max-width: 800px; margin: 0 auto; padding: 20px; }

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

/* --- BOTTOM NAVIGATION BAR (Mobile App Style) --- */
.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: 10px 0;
    box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-item span { font-size: 24px; margin-bottom: 2px; }
.nav-item.active { color: var(--primary); font-weight: 700; }

/* --- BUTTONS & INPUTS --- */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    margin-top: 10px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn:active { transform: scale(0.98); }

input, select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    box-sizing: border-box; /* Fix width issue */
}
input:focus, select:focus { border-color: var(--primary); outline: none; background: white; }

/* --- ALERTS --- */
.alert { padding: 15px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; text-align: center; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Desktop Tweaks */
@media (min-width: 768px) {
    .bottom-nav { display: none; } /* Hide mobile menu on PC */
    .desktop-nav { display: block; }
    body { padding-bottom: 20px; }
}