/* Next-Generation UI for Bus Tracking System */
:root {
    --primary: #6366f1;       /* Indigo Modern */
    --secondary: #4f46e5;
    --success: #10b981;       /* Emerald */
    --danger: #ef4444;        /* Rose */
    --warning: #f59e0b;       /* Amber */
    --bg-body: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-border: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-body);
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-weight: 400;
}

/* Modern Card Styling */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Input & Form Elements */
input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.bg-running { background: #d1fae5; color: #065f46; }
.bg-cancelled { background: #fee2e2; color: #991b1b; }

/* Table Design */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

th {
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-align: left;
}

td {
    background: #fff;
    padding: 15px;
}

tr td:first-child { border-radius: 15px 0 0 15px; }
tr td:last-child { border-radius: 0 15px 15px 0; }

/* Responsive Grid */
@media (max-width: 768px) {
    .admin-grid { grid-template-columns: 1fr !important; }
    .header h1 { font-size: 1.5rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeIn 0.5s ease forwards; }