/* fleetGUARDIAN Legacy Styles */
/* Extracted from index.html inline styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container { display: flex; height: 100vh; }

/* Sidebar */
.sidebar { width: 288px; background: white; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); display: flex; flex-direction: column; border-right: 1px solid #e2e8f0; }
.sidebar-header { padding: 24px; border-bottom: 1px solid #f1f5f9; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { padding: 8px; background: #2563eb; border-radius: 8px; color: white; font-size: 18px; }
.logo-text h1 { font-size: 20px; font-weight: bold; color: #fff; }
.logo-text p { font-size: 14px; color: #fff; }
.sidebar-nav { flex: 1; padding: 16px; }
.nav-item { display: flex; align-items: center; width: 100%; padding: 12px 16px; margin-bottom: 8px; border: none; background: none; border-radius: 12px; font-size: 18px; color: #fff; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: left; }
.nav-item:hover { color: #fff; border: 1px solid #2563eb; }
.nav-item.active { color: #fff; border: 1px solid #fff; }
.nav-item i { margin-right: 12px; font-size: 20px; }
.nav-item.active i { color: #fff; font-size: 20px; }
.sidebar-footer { padding: 16px; border-top: 1px solid #f1f5f9; }
.logout-btn { display: flex; align-items: center; width: 100%; padding: 12px 16px; border: none; background: none; border-radius: 12px; color: #fff; font-weight: 500; cursor: pointer; font-size: 18px; transition: all 0.2s; }
.logout-btn:hover { border: 1px solid #fff; }
.logout-btn i { margin-right: 12px; }

/* Main Content */
.main-content { flex: 1; padding: 0px; display: flex; gap: 32px; }
.left-panel { width: 20%; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.panel-title h2 { font-size: 28px; font-weight: bold; color: #1e293b; }
.panel-title p { color: #64748b; margin-top: 4px; }
.vehicle-count { background: white; padding: 8px 16px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.vehicle-count span { font-size: 14px; font-weight: 500; color: #64748b; }

/* Search */
.search-container { position: relative; margin-bottom: 24px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.search-input { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: white; color: #1e293b; transition: all 0.2s; }
.search-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.search-input::placeholder { color: #94a3b8; }

/* No results */
.no-results { text-align: center; padding: 48px 16px; }
.no-results-icon { display: inline-block; padding: 16px; background: #f1f5f9; border-radius: 50%; margin-bottom: 16px; font-size: 32px; color: #94a3b8; }
.no-results h3 { font-size: 18px; font-weight: 500; color: #64748b; margin-bottom: 8px; }
.no-results p { color: #64748b; }

/* Vehicle Cards */
.vehicle-list { display: flex; flex-direction: column; gap: 16px; }
.vehicle-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 2px solid #e2e8f0; cursor: pointer; transition: all 0.2s; }
.vehicle-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border-color: #cbd5e1; }
.vehicle-card.selected { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.vehicle-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.vehicle-info { display: flex; align-items: center; gap: 12px; }
.vehicle-icon { padding: 8px; border-radius: 8px; font-size: 18px; }
.vehicle-icon.step-1 { background: rgba(59,130,246,0.1); color: #3b82f6; }
.vehicle-icon.step-2 { background: rgba(234,179,8,0.1); color: #eab308; }
.vehicle-icon.step-3 { background: rgba(249,115,22,0.1); color: #f97316; }
.vehicle-icon.step-4 { background: rgba(34,197,94,0.1); color: #22c55e; }
.vehicle-details h3 { font-weight: 600; color: #1e293b; }
.vehicle-details p { font-size: 14px; color: #64748b; }

/* Status badges */
.status-badge { padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500; color: white; }
.status-badge.step-1 { background: #3b82f6; }
.status-badge.step-2 { background: #eab308; }
.status-badge.step-3 { background: #f97316; }
.status-badge.step-4 { background: #22c55e; }

/* Progress Bar */
.progress-container { margin-bottom: 16px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-header span { font-size: 12px; color: #64748b; }
.progress-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; transition: width 0.3s ease; }
.progress-fill.step-1 { background: #3b82f6; width: 25%; }
.progress-fill.step-2 { background: #eab308; width: 50%; }
.progress-fill.step-3 { background: #f97316; width: 75%; }
.progress-fill.step-4 { background: #22c55e; width: 100%; }

/* Step Indicators */
.step-indicators { display: flex; justify-content: space-between; }
.step-indicator { display: flex; flex-direction: column; align-items: center; flex: 1; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; transition: all 0.2s; }
.step-circle.completed { background: #22c55e; color: white; }
.step-circle.current { color: white; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.step-circle.current.step-1 { background: #3b82f6; }
.step-circle.current.step-2 { background: #eab308; }
.step-circle.current.step-3 { background: #f97316; }
.step-circle.current.step-4 { background: #22c55e; }
.step-circle.pending { background: #e2e8f0; color: #64748b; }
.step-label { margin-top: 8px; font-size: 12px; text-align: center; font-weight: 500; }
.step-label.current { color: #1e293b; }
.step-label.current.step-1 { color: #3b82f6; }
.step-label.completed { color: #22c55e; }
.step-label.pending { color: #94a3b8; }

/* Right Panel */
.right-panel { flex: 1; background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #94a3b8; }
.empty-icon { padding: 16px; background: #f1f5f9; border-radius: 50%; margin-bottom: 16px; font-size: 48px; }
.empty-state h3 { font-size: 20px; font-weight: 500; color: #64748b; margin-bottom: 8px; }
.empty-state p { text-align: center; color: #64748b; }

/* Vehicle Details */
.vehicle-details-panel { padding: 24px; height: 100%; }
.details-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 24px; margin-bottom: 24px; }
.details-title { display: flex; align-items: center; gap: 16px; }
.details-icon { padding: 12px; border-radius: 12px; font-size: 32px; }
.details-icon.step-1 { background: rgba(59,130,246,0.1); color: #3b82f6; }
.details-icon.step-2 { background: rgba(234,179,8,0.1); color: #eab308; }
.details-icon.step-3 { background: rgba(249,115,22,0.1); color: #f97316; }
.details-icon.step-4 { background: rgba(34,197,94,0.1); color: #22c55e; }
.title-text h3 { font-size: 28px; font-weight: bold; color: #1e293b; }
.title-text p { color: #64748b; }
.details-badge { margin-left: auto; padding: 8px 16px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: white; }
.details-badge.step-1 { background: #3b82f6; }
.details-badge.step-2 { background: #eab308; }
.details-badge.step-3 { background: #f97316; }
.details-badge.step-4 { background: #22c55e; }
.details-section { margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 16px; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { align-items: center; gap: 12px; padding: 16px; background: #f8fafc; border-radius: 8px; }
.info-card i { color: #94a3b8; }
.info-content p:first-child { font-size: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.info-content p:last-child { font-weight: 500; color: #1e293b; }
.info-content input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-weight: normal; transition: all 0.3s; }
.info-content select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-weight: normal; transition: all 0.3s; }
.info-content input:focus, .info-content select:focus { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,0.2); outline: none; }

/* Maintenance */
.maintenance-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; }
.section { gap: 12px; padding: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; }
.maintenance-card i { color: #2563eb; }
.maintenance-card .info-content p:first-child { color: #2563eb; }
.maintenance-card .info-content p:last-child { color: #1e40af; }

/* Workflow */
.workflow-list { display: flex; flex-direction: column; gap: 12px; }
.workflow-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; }
.workflow-item.current { background: #eff6ff; border: 1px solid #bfdbfe; }
.workflow-item.completed { background: #f0fdf4; border: 1px solid #bbf7d0; }
.workflow-item.pending { background: #f8fafc; border: 1px solid #e2e8f0; }
.workflow-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }
.workflow-circle.current { background: #2563eb; color: white; }
.workflow-circle.completed { background: #16a34a; color: white; }
.workflow-circle.pending { background: #cbd5e1; color: #64748b; }
.workflow-text h4 { font-weight: 500; margin-bottom: 2px; }
.workflow-text p { font-size: 12px; }
.workflow-item.current .workflow-text h4 { color: #1e40af; }
.workflow-item.current .workflow-text p { color: #2563eb; }
.workflow-item.completed .workflow-text h4 { color: #166534; }
.workflow-item.completed .workflow-text p { color: #16a34a; }
.workflow-item.pending .workflow-text h4 { color: #64748b; }
.workflow-item.pending .workflow-text p { color: #94a3b8; }

/* Buttons */
.btn { padding: 10px 20px; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; font-size: 14px; }
.btn-primary { background: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
.btn-primary:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-success { background: #27ae60; color: white; }
.btn-warning { background: #f39c12; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-info { background: #16a085; color: white; }
.btn-outline { background: transparent; border: 1px solid #ddd; padding: 8px 15px; border-radius: 4px; cursor: pointer; }
.btn-icon { background: transparent; border: none; color: #666; font-size: 16px; padding: 8px; cursor: pointer; }
.btn-icon:hover { color: #4a6bff; }
.approve-btn { background: #4CAF50; color: white; }
.approve-btn:hover { background: #3e8e41; box-shadow: 0 2px 8px rgba(76,175,80,0.3); }
.reject-btn { background: #f44336; color: white; }
.reject-btn:hover { background: #d32f2f; box-shadow: 0 2px 8px rgba(244,67,54,0.3); }
.fas { font-size: 14px; }

/* Settings */
.setting-card { padding: 15px; border-radius: 8px; background: #f8f9fa; margin-bottom: 10px; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:checked + .slider { background-color: #4a6bff; }
input:checked + .slider:before { transform: translateX(26px); }
.setting-select { padding: 5px; border-radius: 4px; border: 1px solid #ddd; }
.color-picker { width: 30px; height: 30px; border: none; background: none; cursor: pointer; }
.footer-actions { display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid #eee; }

/* Reports */
.report-filters { padding: 15px; background: #f8f9fa; border-radius: 8px; margin-bottom: 20px; }
.filter-group { display: flex; gap: 10px; }
.filter-select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; min-width: 120px; }
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-item { display: flex; width: 28%; align-items: center; padding: 15px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s; }
.report-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.report-icon { font-size: 24px; color: #4a6bff; margin-right: 15px; width: 40px; text-align: center; }
.report-content { flex: 1; }
.report-content h4 { margin: 0 0 5px 0; color: #333; }
.report-meta { display: flex; gap: 15px; font-size: 13px; color: #666; }
.report-meta span { display: flex; align-items: center; gap: 5px; }
.report-actions { display: flex; gap: 5px; }
.report-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: center; }
.pagination { display: flex; align-items: center; gap: 15px; }
.action-buttons { display: flex; gap: 12px; margin: 20px 0; }

/* Login */
.login-container { width: 100%; max-width: 500px; margin: auto; background: white; border-radius: 0px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; }
.login-header { background: #2c3e50; color: white; padding: 25px; text-align: center; position: relative; }
.login-header h1 { font-size: 24px; margin-bottom: 5px; }
.login-header p { font-size: 14px; opacity: 0.9; }
.login-header::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #3498db, #2ecc71); }
.login-form { padding: 30px; }
.txt { width: 100%; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: all 0.3s; }
.txt:focus { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,0.2); outline: none; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #34495e; }
.form-group input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: all 0.3s; }
.form-group input:focus { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,0.2); outline: none; }
.form-group i { position: absolute; left: 15px; top: 38px; color: #7f8c8d; }
.remember-forgot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; }
.remember-me { display: flex; align-items: center; }
.remember-me input { margin-right: 5px; }
.forgot-password a { color: #3498db; text-decoration: none; }
.login-btn { width: 100%; padding: 12px; background: linear-gradient(90deg, #3498db, #2ecc71); border: none; border-radius: 5px; color: white; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(46,204,113,0.3); }
.divider { margin: 20px 0; text-align: center; position: relative; color: #95a5a6; font-size: 13px; }
.divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 45%; height: 1px; background: #ddd; }
.divider::after { content: ""; position: absolute; top: 50%; right: 0; width: 45%; height: 1px; background: #ddd; }
.social-login { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.facebook { background: #3b5998; }
.google { background: #db4437; }
.linkedin { background: #0077b5; }
.social-btn:hover { transform: translateY(-3px); }
.register-link { text-align: center; font-size: 14px; color: #7f8c8d; }
.register-link a { color: #3498db; text-decoration: none; font-weight: 500; }

/* Tables */
.table { width: 100%; margin-bottom: 1rem; background-color: transparent; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; background-color: #f8f9fa; font-weight: 600; color: #495057; }
.table-bordered { border: 1px solid #dee2e6; }
.table-bordered th, .table-bordered td { border: 1px solid #dee2e6; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,0.05); }
.table-hover tbody tr:hover { background-color: rgba(0,0,0,0.075); cursor: pointer; }
.table-sm th, .table-sm td { padding: 0.3rem; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table th.sortable { cursor: pointer; user-select: none; position: relative; }
.table th.sortable:hover { background-color: #e9ecef; }
.table th.sortable::after { content: '\2195'; position: absolute; right: 8px; opacity: 0.5; }
.table th.sort-asc::after { content: '\2191'; opacity: 1; }
.table th.sort-desc::after { content: '\2193'; opacity: 1; }

/* Dashboard */
.dashboard-component { padding: 20px; }
.dashboard-header { margin-bottom: 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.dashboard-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.dashboard-card h3 { margin-bottom: 10px; color: #374151; }

/* RT Mandates */
.rtmandates-container { display: flex; height: 100vh; background-color: #f5f5f5; }
.rtmandates-sidebar { width: 250px; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; transition: width 0.3s ease; box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
.rtmandates-sidebar.collapsed { width: 60px; }
.rtmandates-content { flex: 1; overflow-y: auto; padding: 20px; }
.toggle-btn { background: transparent; border: none; color: white; cursor: pointer; font-size: 1.2rem; }
.nav-icon { font-size: 1.2rem; margin-right: 15px; }
.nav-label { font-size: 0.95rem; }

/* Notifications */
.notification-bar { margin-bottom: 20px; }
.notification { padding: 12px 20px; margin-bottom: 10px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
.notification.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.notification.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.notification.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Loading/Error */
.loading-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 400px; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-container { text-align: center; padding: 40px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; border-radius: 8px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-header { padding: 20px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; color: #2c3e50; }
.close-btn { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: #7f8c8d; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-actions { padding: 20px; border-top: 1px solid #e0e0e0; display: flex; justify-content: flex-end; gap: 10px; }

/* Entity Tables */
.entities-table { width: 100%; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.entities-table thead { background: #34495e; color: white; }
.entities-table th { padding: 12px; text-align: left; font-weight: 500; }
.entities-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.entities-table tbody tr:hover { background: #f8f9fa; }
.btn-edit, .btn-delete { background: transparent; border: none; cursor: pointer; font-size: 1.1rem; padding: 5px; border-radius: 4px; transition: background 0.3s; }
.btn-edit:hover { background: #e3f2fd; }
.btn-delete:hover { background: #ffebee; }
.entities-filters, .requests-filters { display: flex; gap: 15px; margin-bottom: 20px; padding: 15px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Dashboard Stats */
.rtmandates-dashboard { padding: 0; }
.dashboard-actions { display: flex; align-items: center; gap: 15px; }
.btn-refresh { background: #3498db; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.last-updated { color: #7f8c8d; font-size: 0.9rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.stat-card.blue { border-left: 4px solid #3498db; }
.stat-card.green { border-left: 4px solid #27ae60; }
.stat-card.orange { border-left: 4px solid #f39c12; }
.stat-card.purple { border-left: 4px solid #9b59b6; }
.stat-card.red { border-left: 4px solid #e74c3c; }
.stat-card.teal { border-left: 4px solid #16a085; }
.stat-icon { font-size: 2rem; }
.stat-content h3 { margin: 0; font-size: 1.8rem; color: #2c3e50; }
.stat-content p { margin: 5px 0 0; color: #7f8c8d; font-size: 0.9rem; }
.dashboard-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 20px; }
.dashboard-section { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.dashboard-section h2 { margin: 0 0 20px; color: #2c3e50; font-size: 1.2rem; }

/* Alerts & Activities */
.alert-item { display: flex; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: 4px; background: #f8f9fa; }
.alert-item.high { background: #fee; }
.alert-item.medium { background: #fff3cd; }
.alert-item.low { background: #e3f2fd; }
.alert-icon { margin-right: 12px; font-size: 1.2rem; }
.alert-content p { margin: 0; color: #2c3e50; }
.alert-category { font-size: 0.8rem; color: #7f8c8d; text-transform: uppercase; }
.activity-item { display: flex; align-items: center; padding: 10px; margin-bottom: 8px; border-left: 3px solid #3498db; background: #f8f9fa; }
.activity-icon { margin-right: 12px; font-size: 1.2rem; }
.activity-content p { margin: 0; color: #2c3e50; }
.activity-time { font-size: 0.8rem; color: #7f8c8d; }
.action-btn { padding: 12px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; transition: all 0.3s; text-align: center; }
.action-btn:hover { background: #3498db; color: white; border-color: #3498db; }

/* Service Requests */
.requests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.request-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.3s; }
.request-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.request-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; }
.request-header h3 { margin: 0; color: #2c3e50; }
.request-badges { display: flex; gap: 8px; }
.status-badge, .urgency-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; }
.status-pending { background: #fff3cd; color: #856404; }
.status-progress { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-authorization { background: #e2e3e5; color: #383d41; }
.urgency-high { background: #f8d7da; color: #721c24; }
.urgency-medium { background: #fff3cd; color: #856404; }
.urgency-normal { background: #d1ecf1; color: #0c5460; }
.request-details { margin-bottom: 15px; }
.detail-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.9rem; }
.detail-label { color: #7f8c8d; font-weight: 500; }
.detail-value { color: #2c3e50; }
.request-actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #e0e0e0; }
.btn-action { flex: 1; padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85rem; background: #3498db; color: white; transition: background 0.3s; }
.btn-action:hover { background: #2980b9; }
.entity-type-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.85rem; background: #e3f2fd; color: #1565c0; }

/* Metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.metric-item { display: flex; flex-direction: column; padding: 10px; background: #f8f9fa; border-radius: 4px; }
.metric-label { font-size: 0.8rem; color: #7f8c8d; margin-bottom: 5px; }
.metric-value { font-size: 1.2rem; font-weight: bold; color: #2c3e50; }
.no-data { text-align: center; padding: 20px; color: #7f8c8d; font-style: italic; }

/* Mandate Details */
.mandate-details { margin-bottom: 24px; }
.mandate-info { background: #f8f9fa; border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e9ecef; }

/* Responsive */
@media (max-width: 1200px) {
  .main-content { flex-direction: column; }
  .left-panel { width: 100%; }
  .sidebar { width: 240px; }
}
@media (max-width: 768px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; height: auto; }
  .main-content { padding: 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .rtmandates-sidebar { position: absolute; z-index: 100; }
  .rtmandates-sidebar.collapsed { width: 0; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-row { grid-template-columns: 1fr; }
  .requests-grid { grid-template-columns: 1fr; }
}
