 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
 }

 body {
     background-color: #f5f7fb;
 }

 .dashboard-container {
     display: flex;
     min-height: 100vh;
 }

 /* Sidebar Styles */
 .sidebar {
     width: 280px;
     background: linear-gradient(180deg, #0a1e2e 0%, #0d2a3e 100%);
     color: white;
     display: flex;
     flex-direction: column;
     position: fixed;
     left: -280px;
     top: 0;
     height: 100vh;
     overflow-y: auto;
     z-index: 100;
     transition: left 0.3s ease;
 }

 .sidebar.mobile-open {
     left: 0;
 }

 .mobile-menu-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: none;
     border: none;
     font-size: 1.5rem;
     color: var(--dark);
     cursor: pointer;
     padding: 0.5rem;
     margin-right: 0.5rem;
 }

.logo {
     padding: 24px;
     display: flex;
     align-items: center;
     gap: 12px;
     border-bottom: 1px solid rgba(243, 238, 238, 0.952);
 }

.admin-brand-mark {
    width: 144px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo i {
     font-size: 28px;
     color: #0D8F72;
 }

 .logo span {
     font-size: 18px;
     font-weight: 600;
     color: #ffffff;
     text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
 }

 .swachh-sidebar-brand {
     padding: 0.5rem 1.5rem 0.25rem;
     border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 }

 .swachh-sidebar-brand img {
     width: 100%;
     max-width: 120px;
     height: auto;
     border-radius: 6px;
     border: 1px solid rgba(255, 255, 255, 0.15);
     background: #fff;
     padding: 3px;
 }

 .nav-menu {
     flex: 1;
     padding: 24px 0;
 }

 .nav-item {
     display: flex;
     align-items: center;
     padding: 14px 24px;
     color: rgba(255, 255, 255, 0.7);
     text-decoration: none;
     transition: all 0.3s;
     gap: 12px;
     position: relative;
 }

 .nav-item i {
     width: 20px;
     font-size: 18px;
 }

 .nav-item:hover {
     background: rgba(255, 255, 255, 0.1);
     color: white;
 }

 .nav-item.active {
     background: #0D8F72;
     color: white;
 }

 .badge {
     background: #ff4444;
     color: white;
     padding: 2px 8px;
     border-radius: 12px;
     font-size: 11px;
     margin-left: auto;
 }

 .sidebar-footer {
     padding: 24px;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .user-info {
     display: flex;
     align-items: center;
     gap: 12px;
 }

 .user-info img {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     object-fit: cover;
 }

 .user-name {
     font-weight: 600;
     font-size: 14px;
 }

 .user-role {
     font-size: 12px;
     color: rgba(255, 255, 255, 0.6);
 }

 .logout-btn {
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.1);
     border: none;
     color: white;
     border-radius: 0;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s;
 }

 .logout-btn i {
     font-size: 1.2rem;
 }

 .logout-btn:hover {
     background: rgba(255, 255, 255, 0.2);
 }

 /* Main Content */
 .main-content {
     flex: 1;
     margin-left: 0;
     background: #f5f7fb;
     min-height: 100vh;
     min-width: 0;
 }

 .top-bar {
     background: white;
     padding: 20px 30px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

 .page-title h1 {
     font-size: 24px;
     color: #333;
     margin-bottom: 5px;
 }

 .page-title p {
     color: #666;
     font-size: 14px;
 }

 .top-bar-actions {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .search-box {
     display: flex;
     align-items: center;
     background: #f5f7fb;
     padding: 10px 15px;
     border-radius: 8px;
     width: 300px;
 }

 .search-box i {
     color: #999;
     margin-right: 10px;
 }

 .search-box input {
     border: none;
     background: none;
     outline: none;
     width: 100%;
     font-size: 14px;
 }

 .notification-btn {
     position: relative;
     background: none;
     border: none;
     font-size: 20px;
     color: #666;
     cursor: pointer;
 }

 .notification-badge {
     position: absolute;
     top: -5px;
     right: -5px;
     background: #ff4444;
     color: white;
     font-size: 10px;
     padding: 2px 5px;
     border-radius: 10px;
 }

 /* Content Area */
 .content-area {
     padding: 30px;
     overflow-x: hidden;
 }

 .content-section {
     display: none;
 }

 .content-section.active {
     display: block;
 }

 /* Stats Grid */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 25px;
     margin-bottom: 30px;
 }

 .stat-card {
     background: white;
     border-radius: 12px;
     padding: 25px;
     display: flex;
     align-items: center;
     gap: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
     transition: transform 0.3s;
 }

 .stat-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
 }

 .stat-icon {
     width: 60px;
     height: 60px;
     background: rgba(13, 143, 114, 0.1);
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 24px;
     color: #0D8F72;
 }

 .stat-details h3 {
     font-size: 14px;
     color: #666;
     margin-bottom: 8px;
     font-weight: 500;
 }

 .stat-value {
     font-size: 28px;
     font-weight: 700;
     color: #333;
 }

 /* Charts Grid */
 .charts-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 25px;
     margin-bottom: 30px;
 }

 .chart-card {
     background: white;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

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

 .chart-header h3 {
     font-size: 16px;
     color: #333;
 }

 .chart-controls {
     display: flex;
     gap: 10px;
 }

 .chart-filter {
     padding: 8px 12px;
     border: 1px solid #e0e0e0;
     border-radius: 6px;
     font-size: 13px;
     outline: none;
 }

 .btn-filter {
     padding: 8px 15px;
     background: #0D8F72;
     color: white;
     border: none;
     border-radius: 6px;
     font-size: 13px;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 5px;
 }

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

 .chart-legend {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     margin-top: 20px;
     padding-top: 15px;
     border-top: 1px solid #e0e0e0;
 }

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

 .legend-color {
     width: 12px;
     height: 12px;
     border-radius: 3px;
 }

 /* Table Card */
 .table-card {
     background: white;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

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

 .table-header h3 {
     font-size: 18px;
     color: #333;
 }

 .view-all-btn {
     padding: 8px 16px;
     background: none;
     border: 1px solid #0D8F72;
     color: #0D8F72;
     border-radius: 6px;
     cursor: pointer;
     transition: all 0.3s;
 }

 .view-all-btn:hover {
     background: #0D8F72;
     color: white;
 }

 .table-responsive {
     overflow-x: auto;
 }

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

 .data-table th {
     text-align: left;
     padding: 15px;
     background: #f8f9fa;
     color: #666;
     font-weight: 600;
     font-size: 13px;
     border-bottom: 2px solid #e0e0e0;
 }

 .data-table td {
     padding: 15px;
     border-bottom: 1px solid #e0e0e0;
     color: #444;
     font-size: 14px;
 }

 .data-table tbody tr:hover {
     background: #f8f9fa;
 }

 /* Status Badges */
 .status-badge {
     padding: 5px 10px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: 500;
 }

 .status-pending {
     background: #fff3cd;
     color: #856404;
 }

 .status-critical {
     background: #f8d7da;
     color: #721c24;
 }

 .status-resolved {
     background: #d4edda;
     color: #155724;
 }

 .status-escalated {
     background: #cce5ff;
     color: #004085;
 }

 .priority-high {
     color: #dc3545;
     font-weight: 600;
 }

 .priority-medium {
     color: #fd7e14;
     font-weight: 600;
 }

 .priority-low {
     color: #28a745;
     font-weight: 600;
 }

 .action-btn {
     padding: 8px 12px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 13px;
     transition: all 0.3s;
 }

 .action-btn.assign {
     background: #0D8F72;
     color: white;
 }

.action-btn.assign:hover {
     background: #0a735c;
 }

/* Incident Filter + Bulk Controls */
.incident-control-card {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.incident-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.incident-control-header h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.incident-control-subtitle {
    font-size: 12px;
    color: #64748b;
}

.incident-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.incident-bulk-bar {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr auto auto;
    gap: 12px;
    align-items: end;
}

.incident-control-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.incident-control-field label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.incident-control-field select {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    padding: 8px 10px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.incident-control-field select:focus {
    outline: none;
    border-color: #0D8F72;
    box-shadow: 0 0 0 3px rgba(13, 143, 114, 0.12);
}

.incident-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.incident-control-actions .btn-primary,
.incident-control-actions .btn-secondary,
.incident-bulk-bar .btn-primary,
.incident-bulk-bar .btn-secondary {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

.selection-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 999px;
    white-space: nowrap;
}

 /* Contractor Grid */
.contractor-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 20px;
 }

 .contractor-card {
     background: white;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

 .contractor-header {
     display: flex;
     align-items: center;
     gap: 15px;
     margin-bottom: 15px;
 }

 .contractor-avatar {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     object-fit: cover;
 }

 .contractor-info h4 {
     font-size: 16px;
     color: #333;
     margin-bottom: 5px;
 }

 .contractor-info p {
     font-size: 13px;
     color: #666;
 }

 .contractor-stats {
     display: flex;
     justify-content: space-around;
     padding: 15px 0;
     border-top: 1px solid #e0e0e0;
     border-bottom: 1px solid #e0e0e0;
     margin-bottom: 15px;
 }

 .stat-item {
     text-align: center;
 }

 .stat-number {
     font-size: 20px;
     font-weight: 700;
     color: #333;
 }

 .stat-label {
     font-size: 12px;
     color: #666;
     margin-top: 5px;
 }

 .contractor-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .rating {
     color: #ffc107;
 }

 .rating span {
     color: #666;
     margin-left: 5px;
 }

 /* Modal Styles */
 .modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     z-index: 1000;
     justify-content: center;
     align-items: center;
 }

 .modal.active {
     display: flex;
 }

 .modal-content {
     background: white;
     border-radius: 12px;
     width: 90%;
     max-width: 600px;
     max-height: 90vh;
     overflow-y: auto;
     animation: modalSlideIn 0.3s;
 }

 @keyframes modalSlideIn {
     from {
         transform: translateY(-50px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 .modal-header {
     padding: 20px;
     border-bottom: 1px solid #e0e0e0;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .modal-header h3 {
     font-size: 18px;
     color: #333;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .modal-header h3 i {
     color: #0D8F72;
 }

 .close-btn {
     background: none;
     border: none;
     font-size: 24px;
     cursor: pointer;
     color: #999;
 }

 .close-btn:hover {
     color: #333;
 }

 .incident-form {
     padding: 20px;
 }

 .form-group {
     margin-bottom: 20px;
 }

 .form-group label {
     display: block;
     margin-bottom: 8px;
     font-size: 14px;
     color: #555;
     font-weight: 500;
 }

 .form-group label i {
     color: #0D8F72;
     margin-right: 8px;
 }

 .form-group input,
 .form-group select,
 .form-group textarea {
     width: 100%;
     padding: 12px;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     font-size: 14px;
     outline: none;
     transition: all 0.3s;
 }

 .form-group input:focus,
 .form-group select:focus,
 .form-group textarea:focus {
     border-color: #0D8F72;
     box-shadow: 0 0 0 3px rgba(13, 143, 114, 0.1);
 }

 .form-group select {
     padding: 12px 8px;
     min-width: 0;
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 15px;
 }

 .full-width {
     grid-column: 1 / -1;
 }

 .form-actions {
     display: flex;
     gap: 15px;
     margin-top: 30px;
 }

 .btn-primary {
     flex: 1;
     padding: 14px;
     background: #0D8F72;
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     transition: all 0.3s;
 }

 .btn-primary:hover {
     background: #0a735c;
 }

 .btn-secondary {
     flex: 1;
     padding: 14px;
     background: #f8f9fa;
     color: #666;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     transition: all 0.3s;
 }

 .btn-secondary:hover {
     background: #e9ecef;
 }

 .btn-add-incident {
     padding: 12px 24px;
     background: #0D8F72;
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 8px;
     transition: all 0.3s;
 }

 .btn-add-incident:hover {
     background: #0a735c;
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(13, 143, 114, 0.3);
 }

 /* Toast Notification */
 .toast {
     position: fixed;
     top: 20px;
     right: 20px;
     padding: 15px 25px;
     background: white;
     border-radius: 8px;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
     display: flex;
     align-items: center;
     gap: 10px;
     z-index: 2000;
     animation: slideIn 0.3s;
 }

 .toast.success {
     border-left: 4px solid #28a745;
 }

 .toast.error {
     border-left: 4px solid #dc3545;
 }

 .toast.info {
     border-left: 4px solid #17a2b8;
 }

 .toast i {
     font-size: 20px;
 }

 .toast.success i {
     color: #28a745;
 }

 .toast.error i {
     color: #dc3545;
 }

 .toast.info i {
     color: #17a2b8;
 }

 @keyframes slideIn {
     from {
         transform: translateX(100%);
         opacity: 0;
     }

     to {
         transform: translateX(0);
         opacity: 1;
     }
 }

 /* Verification Queue Styles */
 .verification-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
     gap: 25px;
     margin-top: 20px;
 }

 .verification-card {
     background: white;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
     border: 1px solid #e0e0e0;
     display: flex;
     flex-direction: column;
     gap: 15px;
     transition: transform 0.3s;
 }

 .verification-card:hover {
     transform: translateY(-5px);
 }

 .verification-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
 }

 .verification-info h4 {
     font-size: 16px;
     color: #333;
     margin-bottom: 4px;
 }

 .verification-info p {
     font-size: 13px;
     color: #666;
 }

 .verification-images {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
 }

 .image-container {
     position: relative;
     border-radius: 8px;
     overflow: hidden;
     height: 180px;
     background: #f8f9fa;
 }

 .image-container img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .image-label {
     position: absolute;
     top: 10px;
     left: 10px;
     background: rgba(0, 0, 0, 0.6);
     color: white;
     padding: 4px 10px;
     border-radius: 4px;
     font-size: 11px;
     font-weight: 600;
 }

 .verification-details {
     background: #f8f9fa;
     padding: 15px;
     border-radius: 8px;
     font-size: 13px;
 }

 .detail-row {
     display: flex;
     justify-content: space-between;
     margin-bottom: 8px;
 }

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

 .detail-label {
     color: #666;
 }

 .detail-value {
     color: #333;
     font-weight: 500;
 }

 .verification-actions {
     display: flex;
     gap: 12px;
     margin-top: 5px;
 }

 .approve-btn {
     flex: 2;
     background: #0D8F72;
     color: white;
     border: none;
     padding: 12px;
     border-radius: 8px;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     transition: all 0.3s;
 }

 .approve-btn:hover {
     background: #0a735c;
     box-shadow: 0 4px 12px rgba(13, 143, 114, 0.2);
 }

 .reject-btn {
     flex: 1;
     background: #fff;
     color: #dc3545;
     border: 1px solid #dc3545;
     padding: 12px;
     border-radius: 8px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s;
 }

 .reject-btn:hover {
     background: #fff5f5;
 }

 .badge.warning {
     background: #fd7e14;
 }

 /* Reports Section Styles */
 .analytics-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2rem;
 }

 .analytics-card {
     background: white;
     border-radius: 16px;
     padding: 2rem;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
     border: 1px solid #e2e8f0;
 }

 .analytics-card h3 {
     font-size: 1.1rem;
     color: #1e293b;
     margin-bottom: 1.5rem;
     display: flex;
     align-items: center;
     gap: 0.75rem;
 }

 .analytics-card h3 i {
     color: #0D8F72;
 }

 .stat-progress {
     margin-bottom: 1.25rem;
 }

 .stat-progress:last-child {
     margin-bottom: 0;
 }

 .stat-progress-header {
     display: flex;
     justify-content: space-between;
     font-size: 0.9rem;
     font-weight: 500;
     color: #64748b;
     margin-bottom: 0.5rem;
 }

 .progress-bar {
     height: 8px;
     background: #f1f5f9;
     border-radius: 4px;
     overflow: hidden;
 }

 .progress-fill {
     height: 100%;
     border-radius: 4px;
     transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .summary-stats {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 .summary-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-bottom: 1rem;
     border-bottom: 1px solid #f1f5f9;
 }

 .summary-item:last-child {
     border-bottom: none;
     padding-bottom: 0;
 }

 .summary-item .label {
     color: #64748b;
     font-size: 0.95rem;
 }

 .summary-item .value {
     font-size: 1.25rem;
     font-weight: 700;
     color: #0D8F72;
 }

 .badge.success {
     background: #dcfce7;
     color: #15803d;
 }

/* Main Live Map Section Styles */
.map-controls-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.map-search-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.map-search-bar .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}

.map-search-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.map-search-bar label i {
    color: #0D8F72;
    margin-right: 5px;
}

.map-search-bar input {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8fafc;
}

.map-search-bar input:focus {
    border-color: #0D8F72;
    box-shadow: 0 0 0 3px rgba(13, 143, 114, 0.1);
    outline: none;
    background: white;
}

.detection-bar {
    flex-wrap: wrap;
    gap: 12px;
}

.detection-classes {
    min-width: 260px;
}

.class-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0;
    max-width: 520px;
}

.class-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 4px 10px;
}

.class-checkboxes .class-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #0D8F72;
    padding: 4px 0;
}

.class-checkboxes .class-actions button {
    background: none;
    border: none;
    color: #0D8F72;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #0D8F72;
    border: 1.5px solid #0D8F72;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f0fdf9;
    transform: translateY(-1px);
}

.main-map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    height: calc(100vh - 350px);
    min-height: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

#mainLiveMap {
    width: 100%;
    height: 100%;
    min-height: 500px;
    z-index: 1;
    position: relative;
}

.incident-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.incident-image-empty {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 9px;
    line-height: 1;
}

.incident-image-empty i {
    font-size: 13px;
}

.nearby-incident-marker {
    background: transparent;
    transition: transform 0.3s;
}

.nearby-incident-marker:hover {
    transform: scale(1.5) !important;
    z-index: 1000 !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    line-height: inherit;
}

.map-status-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 2;
    background: white;
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #0D8F72;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

#mapLocationLabel {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 143, 114, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(13, 143, 114, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 143, 114, 0); }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
}

.pagination-info span {
    font-weight: 600;
    color: #1e293b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover:not(:disabled) {
    border-color: #0D8F72;
    color: #0D8F72;
    background: #f0fdf9;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}

.page-btn.active {
    background: #0D8F72;
    color: white;
    border-color: #0D8F72;
    box-shadow: 0 2px 6px rgba(13, 143, 114, 0.2);
}

@media (max-width: 1024px) {
    .main-content {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .main-map-container {
        height: calc(100vh - 280px);
        min-height: 350px;
    }

    #mainLiveMap {
        min-height: 350px;
    }
}

@media (max-width: 900px) {
    .top-bar {
        padding: 18px 20px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
    }

    .top-bar-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .content-area {
        padding: 20px;
    }

    .table-header {
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
    }

    .contractor-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .incident-control-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .incident-bulk-bar {
        grid-template-columns: 1fr;
    }

    .verification-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .scoring-tabs {
        flex-wrap: wrap;
    }

    .scoring-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .logo {
        padding: 18px 16px;
    }

    .admin-brand-mark {
        width: 120px;
    }

    .nav-menu,
    .sidebar-footer,
    .swachh-sidebar-brand {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-item {
        flex: 1 1 100%;
    }

    .sidebar-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .logout-btn {
        align-self: flex-start;
    }

    .top-bar {
        padding: 16px;
    }

    .page-title h1 {
        font-size: 20px;
    }

    .content-area {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .chart-card,
    .table-card,
    .contractor-card {
        padding: 16px;
    }

    .chart-header,
    .contractor-header,
    .contractor-footer,
    .contractor-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .chart-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .chart-filter,
    .btn-filter,
    .view-all-btn {
        width: 100%;
    }

    .modal-content {
        width: calc(100% - 24px);
    }

    .modal-header,
    .incident-form {
        padding: 16px;
    }

    .verification-grid {
        grid-template-columns: 1fr;
    }

    .verification-images {
        grid-template-columns: 1fr;
    }

    .image-container {
        height: 140px;
    }

    .main-map-container {
        height: 50vh;
        min-height: 280px;
    }

    #mainLiveMap {
        min-height: 280px;
    }

    .scoring-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scoring-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .scoring-period-selector {
        width: 100%;
        flex-wrap: wrap;
    }

    .penalties-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 18px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 20px;
    }

    .stat-value {
        font-size: 22px;
    }

    .scoring-overview-grid {
        grid-template-columns: 1fr;
    }

    .scoring-tab {
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
    }

    .map-search-bar .input-group {
        min-width: 0;
        width: 100%;
    }

    .map-search-bar input,
    .map-search-bar select {
        width: 100%;
    }

    .incident-filter-grid {
        grid-template-columns: 1fr;
    }

    .verification-actions {
        flex-direction: column;
    }

    .approve-btn,
    .reject-btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reports-grid {
        grid-template-columns: 1fr !important;
    }

    .asset-type-form-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 360px) {
    .asset-type-form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Tricolor Theme Overrides */
body {
    background: linear-gradient(180deg, #fff8ef 0%, #ffffff 42%, #eef3ff 100%);
    color: #0A1F44;
}

.sidebar {
    background: linear-gradient(180deg, #0a1f44 0%, #1f3c73 100%);
}

.logo i {
    color: #FF9933;
}

.nav-item.active {
    background: #1f7a1f;
}

.top-bar {
    border-bottom: 3px solid #FF9933;
}

.btn-primary,
.action-btn.assign,
.page-btn.active {
    background: #1f7a1f;
    border-color: #1f7a1f;
}

.btn-primary:hover,
.action-btn.assign:hover {
    background: #155d15;
}

.flight-upload-status {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d6e0f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.flight-upload-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.75rem;
    color: #0a1f44;
}

.flight-upload-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e7edf8;
    overflow: hidden;
}

.flight-upload-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f7a1f 0%, #ff9933 100%);
    transition: width 0.2s ease;
    min-width: 0;
}

.flight-upload-meta {
    margin-top: 0.7rem;
    font-size: 0.88rem;
    color: #64748b;
}

/* =====================================================
   SCORING SECTION
   ===================================================== */

.scoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scoring-header h2 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0;
}

.scoring-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.scoring-period-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.scoring-period-selector select,
.scoring-period-selector input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.scoring-period-selector input {
    width: 90px;
}

/* Overview Cards */
.scoring-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scoring-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.scoring-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #eff6ff;
    color: #3b82f6;
}

.scoring-stat-icon.grade-icon {
    background: #ecfdf5;
    color: #10b981;
}

.scoring-stat-icon.penalty-icon {
    background: #fef2f2;
    color: #ef4444;
}

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

.scoring-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.scoring-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* Tabs */
.scoring-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.scoring-tab {
    padding: 0.6rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.scoring-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.scoring-tab:hover:not(.active) {
    color: #475569;
}

.scoring-tab-content {
    display: none;
}

.scoring-tab-content.active {
    display: block;
}

/* Scoring Table */
.scoring-table-container {
    overflow-x: auto;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.scoring-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}

.scoring-table td {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.scoring-table tbody tr:hover {
    background: #f8fafc;
}

.scoring-empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem !important;
}

/* Grade Badges */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.grade-a-plus { background: #059669; }
.grade-a { background: #10b981; }
.grade-b { background: #0ea5e9; }
.grade-c { background: #f59e0b; color: #1e293b; }
.grade-d { background: #f97316; }
.grade-e { background: #ef4444; }
.grade-f { background: #7f1d1d; }
.grade-none { background: #94a3b8; }

.grade-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.grade-badge-large.small {
    font-size: 0.85rem;
}

.grade-badge-large small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-draft { background: #f1f5f9; color: #475569; }
.status-calculated { background: #dbeafe; color: #1d4ed8; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-disputed { background: #fee2e2; color: #991b1b; }

/* Severity Badges */
.severity-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.severity-minor { background: #ecfdf5; color: #065f46; }
.severity-moderate { background: #fef3c7; color: #92400e; }
.severity-major { background: #fed7aa; color: #9a3412; }
.severity-critical { background: #fee2e2; color: #991b1b; }

/* Detail Modal */
.scoring-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.scoring-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.scoring-detail-contractor h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
}

.scoring-detail-period {
    font-size: 0.85rem;
    color: #64748b;
}

.scoring-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.scoring-detail-stat {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.scoring-detail-stat.negative {
    background: #fef2f2;
}

.scoring-detail-stat.final {
    background: #eff6ff;
}

.scoring-detail-stat.highlight {
    background: #ecfdf5;
}

.detail-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.scoring-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin: 1.25rem 0 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.scoring-detail-table {
    margin-bottom: 1rem;
}

.negative-row td {
    color: #dc2626 !important;
}

/* Payment Treatment Card */
.payment-treatment-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

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

.payment-row.negative span:last-child {
    color: #dc2626;
}

.payment-row.total {
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid #334155;
    padding-top: 0.75rem;
}

.payment-row.hold span:last-child {
    color: #ef4444;
    font-weight: 600;
}

.scoring-detail-status {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}

/* Penalties Toolbar */
.penalties-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.penalties-toolbar select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Advanced Penalty Toggle (Manual Override) */
.advanced-penalty-toggle {
    display: inline-block;
}
.advanced-penalty-toggle summary {
    cursor: pointer;
    color: #64748b;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s;
}
.advanced-penalty-toggle summary:hover {
    color: #334155;
    border-color: #94a3b8;
}
.advanced-penalty-toggle[open] summary {
    margin-bottom: 0.5rem;
    border-color: #f59e0b;
    color: #92400e;
}

/* Billing Tab */
.billing-toolbar {
    margin-bottom: 1rem;
}
.billing-hint {
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.6rem 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}
.billing-hint i {
    color: #0284c7;
    margin-right: 0.3rem;
}
.billing-input {
    padding: 0.35rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
    min-width: 80px;
    transition: border-color 0.2s;
}
.billing-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.billing-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}
.btn-success {
    background: #10b981 !important;
    color: #fff !important;
    border: none;
}
.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #eff6ff;
    color: #3b82f6;
    transition: background 0.2s;
}

.btn-sm:hover {
    background: #dbeafe;
}

.btn-approve {
    background: #d1fae5;
    color: #065f46;
}

.btn-approve:hover {
    background: #a7f3d0;
}

.btn-waive {
    background: #fef3c7;
    color: #92400e;
}

.btn-waive:hover {
    background: #fde68a;
}

