/* Google Fonts & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #4F46E5; /* Tech Blue */
    --secondary: #10B981; /* Success Green */
    --danger: #EF4444; /* Red */
    --dark: #1F2937;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Poppins', sans-serif; background: var(--light); color: var(--dark); padding-bottom: 80px; /* Space for bottom nav */ }

/* --- Mobile App Components --- */

/* Header */
.app-header {
    background: var(--primary); color: var(--white); padding: 15px 20px;
    position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
    display: flex; justify-content: space-between; align-items: center;
}
.app-header h2 { font-size: 1.2rem; font-weight: 600; }

/* Cards */
.card {
    background: var(--white); border-radius: 12px; padding: 20px;
    margin: 15px; box-shadow: var(--shadow); border: none;
}
.card h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--dark); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 15px; }
.stat-box { background: var(--white); padding: 15px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.stat-box h1 { font-size: 1.5rem; color: var(--primary); margin: 5px 0; }
.stat-box span { font-size: 0.8rem; color: #6B7280; }

/* Buttons */
.btn {
    display: inline-block; width: 100%; padding: 12px; border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
    transition: 0.2s; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn:active { transform: scale(0.98); }

/* Forms */
input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px;
    margin-bottom: 15px; font-family: inherit; font-size: 0.95rem; background: #F9FAFB;
}
input:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* List Items (Tasks/Leaves) */
.list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border-bottom: 1px solid #eee;
}
.list-item:last-child { border-bottom: none; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-Pending { background: #FEF3C7; color: #D97706; }
.badge-Approved, .badge-Completed { background: #D1FAE5; color: #059669; }
.badge-Rejected { background: #FEE2E2; color: #DC2626; }

/* Bottom Navigation (Salesman) */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white);
    display: flex; justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 1000;
}
.nav-item {
    text-decoration: none; color: #9CA3AF; text-align: center; font-size: 0.7rem;
    display: flex; flex-direction: column; align-items: center;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); font-weight: 600; }

/* Helper classes */
.hidden { display: none; }
.text-muted { color: #6B7280; font-size: 0.85rem; }