/* public/assets/css/style.css */
:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    --brand-dark-blue: #2c3e50;
    --brand-light-blue: #3498db;
    --brand-bg: #ecf0f1;
    --brand-card-bg: #ffffff;
    --brand-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-font-heading: 'Poppins', var(--bs-font-sans-serif);
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--brand-bg);
    color: var(--brand-dark-blue);
    font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--brand-font-heading);
    font-weight: 600;
    color: var(--brand-dark-blue);
}

.navbar {
    background-color: var(--brand-dark-blue) !important;
}
.navbar-brand {
    font-family: var(--brand-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}
.navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.navbar .dropdown-menu {
    border-radius: 8px;
    box-shadow: var(--brand-shadow);
    border: none;
    font-size: 0.95rem;
}

.breadcrumb {
    background-color: var(--brand-card-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: var(--brand-shadow);
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--brand-light-blue);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--bs-secondary);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--brand-shadow);
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--brand-bg);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: var(--brand-font-heading);
    font-weight: 600;
}

/* Dashboard Stat Cards (Old Style - Kept for backward compatibility if needed) */
.stat-card {
    border-radius: 10px;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card i {
    font-size: 3rem;
    opacity: 0.3;
}
.stat-card h6 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}
.stat-card h4 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
}
.bg-stat-blue { background: linear-gradient(135deg, #007bff, #0056b3); }
.bg-stat-green { background: linear-gradient(135deg, #28a745, #1e7e34); }
.bg-stat-yellow { background: linear-gradient(135deg, #ffc107, #d39e00); }
.bg-stat-red { background: linear-gradient(135deg, #dc3545, #b02a37); }

/* ✅ NEW: Quick Stat Cards (Used in Admin, Zonal, Aero) */
.quick-stat-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.quick-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.qs-icon {
    font-size: 3.5rem;
    opacity: 0.2;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.qs-val {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
}
.qs-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.9;
}
.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
}
.breakdown-item:last-child { border-bottom: none; }

/* Dashboard Quick Link Buttons */
.quick-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.quick-link-buttons .btn {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    min-width: 250px;
    text-align: left;
}
.quick-link-buttons .btn i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* Buttons & Tables */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--brand-light-blue);
    border-color: var(--brand-light-blue);
}
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}
.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}
.btn-info:hover {
    background-color: #0aa2c0;
    border-color: #0aa2c0;
    color: #000;
}


.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.table thead {
    background-color: var(--brand-dark-blue);
    color: #fff;
    font-weight: 600;
}
.table th, .table td {
    vertical-align: middle;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    box-shadow: none;
    border-color: #ced4da;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-light-blue);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}
.form-check-input {
    border: 1px solid var(--bs-secondary);
}

/* Footer */
.footer {
    background-color: #fff;
    color: var(--bs-secondary);
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* Report Page Button Styling */
.dt-buttons .btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
.dt-buttons .btn-success:hover {
    background-color: #146c43;
    border-color: #13653f;
}
.dt-buttons .btn-outline-secondary {
    background-color: #fff;
    border-color: #6c757d;
    color: #6c757d;
}
.dt-buttons .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}
/* Icon-only for report buttons */
#reportTable_wrapper .dt-buttons .btn {
    background: transparent;
    border: none;
    color: var(--bs-secondary);
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}
#reportTable_wrapper .dt-buttons .btn:hover {
    color: var(--brand-dark-blue);
}


/* DataTables Loader Overlay */
.dataTables_processing_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}
.dataTables_processing {
    z-index: 1051;
    color: var(--brand-dark-blue);
    font-size: 1.2rem;
    font-weight: 500;
}
.processing-blur {
    filter: blur(2px);
    overflow: hidden;
}

/* ASDD Mobile Card */
.voter-mobile-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    width: 100%;
}
.voter-mobile-card:last-child {
    border-bottom: none;
}
.voter-mobile-card .voter-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 0.75rem;
}
.voter-mobile-card .voter-info strong {
    font-size: 1rem;
    color: var(--brand-dark-blue);
}
.voter-mobile-card .voter-info small {
    font-size: 0.85rem;
    color: var(--bs-secondary);
}
.voter-mobile-card .voter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}
.voter-mobile-card .form-check-label {
    font-size: 0.9rem;
}

/* Bootstrap Multiselect Button Styling */
.multiselect-native-select .btn-group {
    width: 100%;
}
.multiselect-native-select .btn {
    width: 100%;
    text-align: left;
    background-color: #fff;
    border-color: #ced4da;
    color: var(--brand-dark-blue);
    font-weight: 400;
}
.multiselect-native-select .btn::after {
    float: right;
    margin-top: 0.5rem;
}
.multiselect-native-select .multiselect-container {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ced4da;
    box-shadow: var(--brand-shadow);
}
.multiselect-native-select .multiselect-filter input {
    border-radius: 6px;
    border-color: #ced4da;
}

/* ✅ Added: Visual Highlight for Search Results */
@keyframes flashYellow {
    0% { background-color: #fff; }
    30% { background-color: #fff3cd; } /* A light yellow */
    100% { background-color: #fff; }
}

.dataTables_row-flash > tr,
.dataTables_row-flash > .voter-mobile-card {
    animation: flashYellow 1s ease-out;
}