:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

/* User display in header - on same line as Admin Panel */
.user-display {
    margin-left: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.user-display::before {
    content: "-";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.user-display i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Layout */
.main-content {
    padding: 2rem 0;
}

.admin-panel {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary);
    color: white;
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: var(--secondary);
}

/* Footer (site-wide) */
footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .admin-panel {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0.5rem;
    }
    
    .logo-area {
        flex-direction: column;
    }
    
    .user-display {
        margin: 10px 0 0 0;
        font-size: 1.2rem;
    }
    
    .user-display::before {
        content: "";
        margin-right: 0;
    }
}

/* Error message styling */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin: 20px;
    border-left: 4px solid #c62828;
}

/* Driver profile styles */
.driver-profile {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-image {
    font-size: 64px;
    color: #007bff;
    margin-right: 20px;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.role {
    color: #666;
    margin: 0 0 10px 0;
}

.availability {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.availability.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.availability.inactive {
    background-color: #ffebee;
    color: #c62828;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-item span {
    color: #333;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.activity-list li:last-child {
    border-bottom: none;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .driver-profile {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
