:root {
    --primary: #2874f0;
    --primary-glow: rgba(40, 116, 240, 0.4);
    --accent: #ff9f00;
    --bg-dark: #f1f3f6;
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #212121;
    --text-muted: #878787;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --success: #388e3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 14.5px; /* Slightly decreased for a more balanced medium feel */
}

body {
    background: var(--bg-dark);
    background-attachment: fixed;
    color: var(--text-main);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.container {
    width: 100%;
    max-width: 600px; /* Mobile first / centered mobile-style app */
    margin: 0 auto;
    padding: 1.25rem;
    padding-bottom: 140px !important; /* Extra space for sticky nav/buttons */
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 10px;
    right: 10px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a.active {
    color: white;
    transform: scale(1.05);
}

nav a.active i {
    color: var(--primary);
    filter: none;
}

nav a.active {
    color: var(--primary);
}

nav i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cards */
.card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(40, 116, 240, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* List/Items */
.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.item:last-child {
    border-bottom: none;
}

.status- badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 750;
}

.status-pending { background: var(--warning); color: black; }
.status-confirmed { background: var(--primary); color: white; }
.status-completed { background: var(--success); color: white; }
.status-missed { background: var(--danger); color: white; }

/* Grid for Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-card .val {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;

/* Auth Screens */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}

@media (max-width: 500px) {
    .mobile-stack {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 900px;
        padding: 2rem;
        padding-bottom: 140px !important;
    }
}

