/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
    color: #334155;
}

.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.fs-9 { font-size: 0.65rem; }

.v3-wrapper {
    height: 100vh;
    overflow: hidden;
}

/* Custom Scrollbar for a modern look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Sidebar styling */
.v3-sidebar {
    width: 260px;
    background-color: #1a56b6; /* Deep blue from image */
    border-left: 6px solid #fd7e14; /* Orange brand color */
    flex-shrink: 0;
}

.v3-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.v3-sidebar .nav-link:hover, .v3-sidebar .nav-link.active {
    color: #fff;
}

.v3-sidebar .nav-link.active {
    background-color: #2b70db; /* Active lighter blue */
    font-weight: 500;
}

.menu-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 1rem 0.5rem;
    margin-top: 0.5rem;
}

.svg-icon-v3 svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    fill: currentColor;
}

.user-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content styling */
.v3-main {
    background-color: #f8f9fc;
}

.v3-topbar {
    border-bottom: 1px solid #eef0f4;
}

.card {
    border-radius: 12px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
}

/* Custom UI Elements */
.badge.bg-danger-subtle { background-color: #fee2e2 !important; color: #ef4444 !important; }
.badge.bg-warning-subtle { background-color: #fef3c7 !important; color: #f59e0b !important; }
.badge.bg-primary-subtle { background-color: #dbeafe !important; color: #3b82f6 !important; }

/* Incident List */
.incident-icon {
    border-radius: 4px;
    background-color: rgba(0,0,0,0.02);
}

.incident-list .list-group-item {
    transition: background-color 0.2s;
}
.incident-list .list-group-item:hover {
    background-color: #f8fafc;
}

/* Map specific styles */
.map-marker-custom {
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-tooltip {
    background: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    font-weight: 500;
    font-size: 11px;
    color: #475569;
    padding: 3px 6px;
}
.map-tooltip::before {
    display: none;
}

/* Chart customizations */
.chart-container {
    position: relative;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    color: #475569;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fff;
}

table.dataTable.table-hover > tbody > tr:hover > * {
    background-color: #f8fafc;
    box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.01);
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    border-radius: 6px;
}

.dataTables_wrapper .page-link {
    border: none;
    color: #475569;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dataTables_wrapper .page-link:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.table-light th {
    background-color: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Button & Badges Extras */
.bg-success-subtle { background-color: #dcfce7 !important; color: #16a34a !important; }
.btn-light-primary {
    background-color: #dbeafe;
    color: #2563eb;
    border: none;
}
.btn-light-primary:hover {
    background-color: #bfdbfe;
    color: #1d4ed8;
}
.btn-light-warning {
    background-color: #fef3c7;
    color: #d97706;
    border: none;
}
.btn-light-warning:hover {
    background-color: #fde68a;
    color: #b45309;
}
.btn-light-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
}
.btn-light-danger:hover {
    background-color: #fecaca;
    color: #b91c1c;
}
.nav-link.active { color: #fd7e14 !important; background-color: rgba(253, 126, 20, 0.1) !important; font-weight: 600; }
