:root {
    --primary: #3498db;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
}
h1, h2, h3 {
    color: var(--dark);
    margin-bottom: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: white; }

form { margin: 15px 0; }
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
.alert {
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
}
.alert-error { background: #ffeaea; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-success { background: #e8f7f0; color: var(--success); border-left: 4px solid var(--success); }

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f1f8ff; color: var(--dark); }
tr:hover { background: #fafcff; }
.status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.status-approved { background: #e8f7f0; color: var(--success); }
.status-pending { background: #fff9e6; color: var(--warning); }
.status-rejected { background: #ffeaea; color: var(--danger); }

/* Dashboard stats */
.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.stat-card {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-card h3 { font-size: 28px; margin: 10px 0; color: var(--primary); }
.stat-card p { color: #666; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .stats { flex-direction: column; }
    table, thead, tbody, th, td, tr { display: block; }
    td { position: relative; padding-left: 50% !important; }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 12px;
        font-weight: bold;
        width: 45%;
    }
}
/* ===== ADMIN SIDEBAR ===== */
.layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
}

.sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.sidebar h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    padding: 0 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 0 15px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border-radius: 6px;
    margin: 5px 0;
    transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: #3498db;
    color: white;
}

.sidebar ul li a i {
    margin-right: 12px;
    font-size: 18px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* Mobile: hide sidebar by default */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        background: #3498db;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 5px;
        font-size: 20px;
        z-index: 200;
    }
}
/* User Sidebar (for employees) */
.sidebar.user-mode {
    background: #34495e;
}

.sidebar.user-mode a:hover,
.sidebar.user-mode a.active {
    background: #1abc9c;
}

/* Optional: Different icon colors */
.sidebar a i {
    color: #bdc3c7;
}
.sidebar a.active i,
.sidebar a:hover i {
    color: white;
}
/* Map marker custom styling */
.map-marker {
    background: none !important;
    border: none !important;
    width: 24px !important;
    height: 24px !important;
}