body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dashboard-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
}

.dashboard-content {
    flex: 1;
    display: flex;
}

.dashboard-sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 15px;
}

.dashboard-sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.dashboard-sidebar a:hover {
    background-color: #575757;
}

.dashboard-main {
    flex: 1;
    padding: 20px;
}

/* Dashboard-specific styles */

/* Main Layout */
.content {
    padding-top: 64px; /* Account for fixed header */
    min-height: calc(100vh - 64px);
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--gray-600);
    font-weight: 500;
}

.page-subtitle {
    margin: 8px 0 0 0;
    color: var(--gray-600);
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-top: 12px;
}

/* ============================================
   MINISTERIAL DASHBOARD - PROFESSIONAL DESIGN
   ============================================ */

/* Hero Section - Enhanced */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 48px 64px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-section h1 i {
    font-size: 48px;
    opacity: 0.9;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0 0 24px 0;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.meta-item i {
    font-size: 16px;
}

/* Main Dashboard Grid - Balanced Layout */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    margin-bottom: 32px;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Cards - Premium Design */
.section-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    font-size: 22px;
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-critical {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
}

.badge-pulse {
    background: #dc2626;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Metrics Grid V2 */
.metrics-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card-v2 {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.metric-card-v2:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.metric-icon.vehicles {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.metric-icon.trips {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.metric-icon.uptime {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.metric-icon.violations {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.metric-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-change.neutral {
    color: #64748b;
}

/* Assessment Cards - Professional Hierarchy */
.assessment-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border-left: 6px solid #3b82f6;
}

.assessment-card.institutional {
    border-left-color: #f59e0b;
}

.assessment-intro {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border-left: 4px solid #3b82f6;
}

.assessment-intro p {
    margin: 0;
    color: #1e40af;
    font-weight: 500;
    font-size: 15px;
}

.institutional .assessment-intro {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left-color: #f59e0b;
}

.institutional .assessment-intro p {
    color: #92400e;
}

/* Violation Categories */
.violation-category {
    margin-bottom: 28px;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
}

.violation-category.severe {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.violation-category.medium {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.violation-category.simple {
    border-color: #eab308;
    background: linear-gradient(135deg, #fefce8, #ffffff);
}

.violation-category.serious {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.violation-category.medium-inst {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.violation-category.simple-inst {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fefce8, #ffffff);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.severe .category-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.medium .category-icon,
.medium-inst .category-icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.simple .category-icon,
.simple-inst .category-icon {
    background: linear-gradient(135deg, #eab308, #fbbf24);
}

.serious .category-icon {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.category-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.category-weight {
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.count-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    background: #f3f4f6;
}

/* Violation Items */
.violation-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.violation-item {
    background: white;
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.violation-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.item-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-description {
    margin: 0 0 10px 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.item-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.item-priority {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.item-status {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

/* Charts Section */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-card {
    padding: 28px;
}

.chart-container {
    height: 300px;
    position: relative;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.severe {
    background: #dc2626;
}

.legend-color.medium {
    background: #f97316;
}

.legend-color.simple {
    background: #eab308;
}

.legend-label {
    color: #64748b;
    font-weight: 500;
}

.legend-value {
    color: #1e293b;
    font-weight: 700;
}

.chart-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

/* Primary Action Cards - Right Column */
.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.primary-action-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.primary-action-card:hover::before {
    transform: scaleY(1);
}

.primary-action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.violations-action::before {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.violations-action:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
}

.performance-action::before {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.performance-action:hover {
    border-color: #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.action-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.violations-action .action-card-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.performance-action .action-card-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.primary-action-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.primary-action-card p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.action-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.action-stat {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.stat-lbl {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

/* Compact Chart Cards */
.chart-card-small {
    padding: 24px;
}

.chart-container-small {
    height: 200px;
    position: relative;
    margin-top: 16px;
}

.sector-stats-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sector-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sector-stat-item.taxi i {
    color: #3b82f6;
    font-size: 16px;
}

.sector-stat-item.bus i {
    color: #10b981;
    font-size: 16px;
}

.sector-stat-item.marine i {
    color: #06b6d4;
    font-size: 16px;
}

/* Compact Alerts */
.alerts-compact {
    padding: 24px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.alert-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    display: flex;
    gap: 14px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.alert-item.critical {
    border-left-color: #dc2626;
    background: linear-gradient(90deg, #fef2f2, #f8fafc);
}

.alert-item.warning {
    border-left-color: #f97316;
    background: linear-gradient(90deg, #fff7ed, #f8fafc);
}

.alert-item.info {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #eff6ff, #f8fafc);
}

.alert-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    margin-top: 6px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.alert-item.critical .alert-indicator {
    background: #dc2626;
}

.alert-item.warning .alert-indicator {
    background: #f97316;
}

.alert-details {
    flex: 1;
}

.alert-details h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.alert-details p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.alert-timestamp {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn {
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr 380px;
    }
    
    .metrics-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right {
        grid-column: 1;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 32px 24px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .metrics-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

/* Legacy Dashboard Styles (keeping for other pages) */
.dashboard-home-old {
    max-width: 1200px;
    margin: 0 auto;
}

/* Overview Cards */
.dashboard-overview {
    margin-bottom: 48px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.overview-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.overview-card.violations-card {
    border-color: var(--danger);
}

.overview-card.violations-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--danger), #ff6b6b);
}

.overview-card.performance-card {
    border-color: var(--success);
}

.overview-card.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #51cf66);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
}

.violations-card .card-icon {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
}

.performance-card .card-icon {
    background: linear-gradient(135deg, var(--success), #51cf66);
}

.card-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.card-content p {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item strong {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.card-arrow {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.overview-card:hover .card-arrow {
    transform: translateY(-50%) translateX(4px);
}

/* Quick Stats */
.quick-stats {
    margin-bottom: 48px;
}

.quick-stats h2 {
    margin-bottom: 24px;
    color: var(--gray-800);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-blue);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-800);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* KPI Section */
.kpi-section {
    margin-bottom: 32px;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-300);
    transition: transform 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-card.primary {
    border-left-color: var(--primary-blue);
}

.kpi-card.success {
    border-left-color: var(--success);
}

.kpi-card.warning {
    border-left-color: var(--warning);
}

.kpi-card.info {
    border-left-color: var(--info);
}

.kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.kpi-card.primary .kpi-icon {
    background: var(--primary-blue);
}

.kpi-card.success .kpi-icon {
    background: var(--success);
}

.kpi-card.warning .kpi-icon {
    background: var(--warning);
}

.kpi-card.info .kpi-icon {
    background: var(--info);
}

.kpi-content {
    flex: 1;
}

.kpi-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
}

.kpi-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

.kpi-change.neutral {
    color: var(--gray-600);
}

/* Sector Cards */
.sector-section {
    margin-bottom: 32px;
}

.sector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.sector-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sector-card.taxi-sector:hover {
    border-color: var(--primary-blue);
}

.sector-card.bus-sector:hover {
    border-color: var(--success);
}

.sector-card.marine-sector:hover {
    border-color: var(--info);
}

.sector-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sector-header i {
    font-size: 24px;
}

.taxi-sector .sector-header i {
    color: var(--primary-blue);
}

.bus-sector .sector-header i {
    color: var(--success);
}

.marine-sector .sector-header i {
    color: var(--info);
}

.sector-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.sector-stats {
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.sector-trend {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.trend-chart {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.trend-chart[data-trend="down"] {
    color: var(--success);
}

.trend-chart[data-trend="up"] {
    color: var(--danger);
}

/* Actions Section */
.actions-section {
    margin-bottom: 32px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.action-btn {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary:hover {
    border-color: var(--primary-blue);
}

.action-btn.secondary:hover {
    border-color: var(--gray-400);
}

.action-btn.warning:hover {
    border-color: var(--warning);
}

.action-btn.info:hover {
    border-color: var(--info);
}

.action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.action-btn.primary i {
    color: var(--primary-blue);
}

.action-btn.secondary i {
    color: var(--gray-600);
}

.action-btn.warning i {
    color: var(--warning);
}

.action-btn.info i {
    color: var(--info);
}

.action-btn span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.action-btn small {
    font-size: 14px;
    color: var(--gray-600);
}

/* Recent Activity */
.recent-activity {
    margin-bottom: 32px;
}

.activity-table {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.activity-table table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    background: var(--gray-50);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.activity-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.activity-table tbody tr:hover {
    background: var(--gray-50);
}

/* Badges */
.sector-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: #f3f4f6;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: #f3f4f6;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.chart-wrapper {
    position: relative;
    height: 250px;
}

.chart-wrapper.large {
    height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .kpi-cards {
        grid-template-columns: 1fr;
    }
    
    .sector-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content {
        margin-left: 0;
        padding: 16px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

/* Real-time Alerts Section */
.alerts-section {
    margin-bottom: 32px;
}

.alerts-section h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
}

.alert-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-300);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.alert-card.critical {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.alert-card.warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
}

.alert-card.info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.alert-card.critical .alert-icon {
    background: var(--danger);
}

.alert-card.warning .alert-icon {
    background: var(--warning);
}

.alert-card.info .alert-icon {
    background: var(--info);
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.alert-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.4;
}

.alert-time {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

.alert-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.alert-btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.alert-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.alert-btn.primary:hover {
    background: var(--primary-dark);
}

.alert-btn.secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.alert-btn.secondary:hover {
    background: var(--gray-300);
}

/* Performance Metrics Section */
.performance-metrics {
    margin-bottom: 32px;
}

.performance-metrics h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.metric-trend {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-trend.positive {
    background: #d4edda;
    color: var(--success);
}

.metric-trend.negative {
    background: #f8d7da;
    color: var(--danger);
}

.metric-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.metric-description {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.metric-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--info));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Sector Comparison Section */
.sector-comparison {
    margin-bottom: 32px;
}

.sector-comparison h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-table {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--gray-50);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.sector-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sector-cell i {
    font-size: 16px;
}

.sector-taxi .sector-cell i {
    color: var(--primary-blue);
}

.sector-bus .sector-cell i {
    color: var(--success);
}

.sector-marine .sector-cell i {
    color: var(--info);
}

.progress-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-progress {
    width: 60px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
}

.violation-count {
    color: var(--danger);
    font-weight: 600;
}

.score {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 40px;
    display: inline-block;
}

.score.excellent {
    background: #d4edda;
    color: var(--success);
}

.score.good {
    background: #cce7ff;
    color: var(--primary-blue);
}

.score.average {
    background: #fff3cd;
    color: #856404;
}

/* Quick Actions Section */
.quick-actions {
    margin-bottom: 32px;
}

.quick-actions h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.action-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.action-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.action-item:hover::before {
    background: var(--primary-blue);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.action-icon.violations {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
}

.action-icon.performance {
    background: linear-gradient(135deg, var(--success), #51cf66);
}

.action-icon.reports {
    background: linear-gradient(135deg, var(--info), #74c0fc);
}

.action-icon.settings {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-500));
}

.action-content {
    flex: 1;
}

.action-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.action-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

.action-badge {
    background: var(--primary-light);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

/* Performance Overview Page Specific Styles */
.revenue-section {
    margin-bottom: 32px;
}

.revenue-section h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.revenue-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.revenue-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.revenue-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.trip-stat:last-child {
    border-bottom: none;
}

.trip-stat .stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

.trip-stat .stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.trip-stat .stat-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 8px;
}

.trip-stat .stat-change.positive {
    background: #d4edda;
    color: var(--success);
}

.trip-stat .stat-change.negative {
    background: #f8d7da;
    color: var(--danger);
}

.revenue-chart {
    height: 200px;
    position: relative;
}

/* Sector Performance Grid */
.sector-performance {
    margin-bottom: 32px;
}

.sector-performance h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.sector-performance-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sector-performance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sector-performance-card.taxi:hover {
    border-color: var(--primary-blue);
}

.sector-performance-card.bus:hover {
    border-color: var(--success);
}

.sector-performance-card.marine:hover {
    border-color: var(--info);
}

.sector-performance-card .sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sector-performance-card .sector-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.sector-performance-card.taxi .sector-icon {
    background: var(--primary-blue);
}

.sector-performance-card.bus .sector-icon {
    background: var(--success);
}

.sector-performance-card.marine .sector-icon {
    background: var(--info);
}

.sector-performance-card .sector-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.sector-performance-card .vehicle-count {
    font-size: 14px;
    color: var(--gray-600);
}

.performance-score {
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.performance-score.excellent {
    background: linear-gradient(135deg, var(--success), #51cf66);
    color: white;
}

.performance-score.good {
    background: linear-gradient(135deg, var(--primary-blue), #74c0fc);
    color: white;
}

.performance-score.average {
    background: linear-gradient(135deg, var(--warning), #ffd43b);
    color: var(--gray-800);
}

.performance-score .score {
    font-size: 24px;
    font-weight: 600;
    display: block;
}

.performance-score .score-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.sector-metrics {
    margin-top: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-row:last-child {
    margin-bottom: 0;
}

.metric-row .metric-label {
    font-size: 14px;
    color: var(--gray-600);
}

.metric-row .metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.metric-row .metric-bar {
    width: 60px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 8px;
}

.metric-row .metric-bar.warning .metric-fill {
    background: var(--warning);
}

.metric-row .metric-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Trends Section */
.trends-section {
    margin-bottom: 32px;
}

.trends-section h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.trends-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.trend-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.trend-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card .action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    background: var(--primary-blue);
}

.action-card .action-content {
    flex: 1;
}

.action-card .action-content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.action-card .action-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.action-card .action-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.action-card .action-arrow {
    font-size: 16px;
    color: var(--gray-400);
}

/* Performers Section */
.performers-section {
    margin-bottom: 32px;
}

.performers-section h2 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.performers-list {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s;
}

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

.performer-item:hover {
    background: var(--gray-50);
}

.performer-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.performer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.performer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.performer-id {
    font-size: 12px;
    color: var(--gray-500);
}

.performer-stats {
    display: flex;
    gap: 16px;
}

.performer-stats .stat-item {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.performer-stats .stat-item i {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .revenue-cards {
        grid-template-columns: 1fr;
    }
    
    .trends-cards {
        grid-template-columns: 1fr;
    }
    
    .sector-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-content {
    font-size: 1em;
}

.button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
}