/* Reset and base styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Changed from fixed height to min-height for natural content flow */
    display: flex;
    flex-direction: column;
}

.title-divider {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px !important;
}

/* Navbar styles */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 500;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff !important;
}

/* Container styles */
.container-fluid {
    flex: 1;
    padding: 0;
}

.row {
    margin: 0;
    height: calc(100vh - 56px); /* Fixed: Use height instead of min-height for map to fill page */
}

/* Sidebar styles */
.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.filters {
    padding: 15px;
    transition: opacity 0.3s ease;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for filters content */
.filters::-webkit-scrollbar {
    width: 8px;
}

.filters::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

.filters::-webkit-scrollbar-thumb {
    background: rgba(77, 184, 241, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.filters::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 184, 241, 0.5);
}

.filters::-webkit-scrollbar-thumb:active {
    background: rgba(77, 184, 241, 0.7);
}

/* Firefox scrollbar for filters */
.filters {
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 184, 241, 0.3) rgba(0, 0, 0, 0.05);
}

/* Fix facade explorer white space issues */
.filters-popup .row.g-2 {
    margin-bottom: 0.5rem !important; /* Reduce excessive margin */
}

.filters-popup .row.g-2 .col-6 {
    padding-right: 0.25rem !important; /* Reduce column padding */
    padding-left: 0.25rem !important;
}

.filters-popup .form-control,
.filters-popup .form-select {
    margin-bottom: 0 !important; /* Remove bottom margin from form controls */
}

.filters-popup .mb-2 {
    margin-bottom: 0.5rem !important; /* Reduce margin-bottom for all mb-2 elements */
}

.filters h4 {
    margin-bottom: 15px;
    color: #333;
}

/* Map container styles */
.map-container {
    padding: 0;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Filters popup styles */
.filters-popup {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(222, 226, 230, 0.8);
}


/* Building results container styling */
#buildingsListContainer {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px; /* Space for custom scrollbar */
}

/* Custom scrollbar for building results */
#buildingsListContainer::-webkit-scrollbar {
    width: 8px;
}

#buildingsListContainer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

#buildingsListContainer::-webkit-scrollbar-thumb {
    background: rgba(77, 184, 241, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

#buildingsListContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 184, 241, 0.5);
}

#buildingsListContainer::-webkit-scrollbar-thumb:active {
    background: rgba(77, 184, 241, 0.7);
}

/* Firefox scrollbar for building results */
#buildingsListContainer {
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 184, 241, 0.3) rgba(0, 0, 0, 0.05);
}

/* Building item styling in filter popup */
.building-item {
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.building-item .card-body {
    transition: background-color 0.2s ease;
}

.building-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.building-item:hover .card-body {
    background-color: rgba(77, 184, 241, 0.05);
}

/* Selected building styling */
.building-item.border-primary {
    border-width: 2px;
    box-shadow: 0 2px 12px rgba(77, 184, 241, 0.2);
}

.building-item.border-primary .card-body {
    background-color: rgba(77, 184, 241, 0.1);
}

/* Building item address styling */
.building-item .fw-medium {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Building item details grid */
.building-item .row.g-2 .text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.building-item .row.g-2 .fw-medium {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Status badge positioning */
.building-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Custom status badge colors - override Bootstrap defaults */
.custom-status-badge {
    background-color: inherit !important;
    color: white !important;
    border: none !important;
}

/* Specific status badge colors for building list */
.custom-status-badge.status-safe {
    background-color: #28a745 !important;
}

.custom-status-badge.status-unsafe {
    background-color: #dc3545 !important;
}

.custom-status-badge.status-swarmp {
    background-color: #ffc107 !important;
}

.custom-status-badge.status-expired {
    background-color: #8B4513 !important;
}

.custom-status-badge.status-noreport {
    background-color: #6c757d !important;
}

/* Force override for building list badges */
#buildingsListContainer .custom-status-badge.status-unsafe {
    background-color: #dc3545 !important;
    color: white !important;
}

#buildingsListContainer .custom-status-badge.status-safe {
    background-color: #28a745 !important;
    color: white !important;
}

#buildingsListContainer .custom-status-badge.status-swarmp {
    background-color: #ffc107 !important;
    color: white !important;
}

/* Key Popup Styles - Upper Right Corner */
.key-popup {
    position: absolute;
    top: 20px;
    right: 80px;
    width: 320px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border: 1px solid rgba(222, 226, 230, 0.8);
    transition: all 0.3s ease;
    /* Ensure it's visible and properly positioned */
    display: block;
    visibility: visible;
}

.key-popup.key-hidden {
    /* Don't move horizontally, just collapse content */
}

.key-popup.key-hidden .key-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
    background-color: rgba(255, 255, 255, 0.95);
    color: #495057;
    border-radius: 12px 12px 0 0;
}

.key-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.key-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #495057;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.key-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    color: #212529;
}

.key-toggle i {
    transition: transform 0.3s ease;
}

.key-hidden .key-toggle i {
    transform: rotate(180deg);
}

.key-content {
    padding: 15px;
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.key-section {
    margin-bottom: 10px;
}

.key-section:last-child {
    margin-bottom: 0;
}

.key-section h6 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: #6c757d;
}

.key-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.key-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(222, 226, 230, 0.2);
}

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

.key-stat-item.key-total {
    padding: 4px 0;
    margin-bottom: 4px;
}

/* Compact list layout for Building Status and Facade Statistics */
.key-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.key-stats-list.horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: space-between;
}

.key-stat-line {
    display: flex;
    flex-direction: column;
    padding: 1px 0;
    border-bottom: 1px solid rgba(222, 226, 230, 0.1);
}

.key-stats-list.horizontal .key-stat-line {
    flex: 1;
    min-width: 50px;
    text-align: center;
    border-bottom: none;
    padding: 0px 1px;
}

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

.key-stat-line .key-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

.key-stats-list.horizontal .key-stat-line .key-label {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.key-stat-line span:last-child {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1px;
}

.key-stats-list.horizontal .key-stat-line span:last-child {
    font-size: 0.85rem;
    margin-top: 0;
}

.key-label {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

.key-stat-item span:last-child {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Progress Bars in Key */
.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 2px;
}

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

.progress-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    min-width: 70px;
    text-align: right;
}

.progress {
    flex: 1;
    height: 2.5px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

/* Stacked Progress Bar */
.stacked-progress-container {
    margin-bottom: 6px;
}

.stacked-progress {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.stacked-progress .progress-bar {
    transition: width 0.3s ease;
    border: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Custom color for expired (brown to match status badge) */
.bg-warning-light {
    background-color: #856404 !important;
    color: white !important;
}

/* Status Legend */
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.75rem;
    justify-content: flex-start;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 60px;
    justify-content: center;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    color: #495057;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

/* Status background colors */
.legend-label.status-safe {
    background-color: #198754;
    color: white;
}

.legend-label.status-swarmp {
    background-color: #ffc107;
    color: white;
}

.legend-label.status-expired {
    background-color: #856404;
    color: white;
}

.legend-label.status-unsafe {
    background-color: #dc3545;
    color: white;
}

.legend-label.status-no-report {
    background-color: #6c757d;
    color: white;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Responsive adjustments for key popup */
@media (max-width: 768px) {
    .key-popup {
        width: 280px;
        right: 60px;
        top: 10px;
    }
    
    .key-popup.key-hidden {
        /* Don't move horizontally on mobile either */
    }
    
    .key-content {
        padding: 15px;
    }
    
    .key-header {
        padding: 12px 15px;
    }
}

.filters-popup.filters-hidden {
    max-height: 60px;
    overflow: hidden;
}

.filters-popup.filters-hidden .filters {
    opacity: 0;
}

.filters-header {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(222, 226, 230, 0.8);
    background-color: rgba(255, 255, 255, 0.95);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    flex-shrink: 0;
}

.filters-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #495057;
    font-weight: 600;
}

.filters-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.filters-toggle i {
    transition: transform 0.3s ease;
}

.filters-toggle:hover i {
    transform: scale(1.1);
}

.filters-hidden .filters-toggle i {
    transform: rotate(180deg);
}

/* Tab styles */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057 !important;
    background-color: rgba(13, 110, 253, 0.05);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd !important;
    background-color: transparent;
    border-bottom: 2px solid #0d6efd;
    font-weight: 600;
}

.tab-content {
    padding-top: 10px;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    font-weight: normal;
}

/* Form control styles */
.form-control.form-control-sm,
.form-select.form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    min-height: 30px;
}

.filters .form-control,
.filters .form-select {
    margin-bottom: 0;
}

.filters .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

.filters .row {
    margin-bottom: 0;
    height: auto;
}

/* Tooltip styles */
.tooltip {
    font-size: 0.8rem;
}

.tooltip .tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.form-check-label {
    font-size: 0.9rem;
}

/* Make the legend more compact */
#laancLegend {
    font-size: 0.7rem;
    line-height: 1.1;
    transition: max-height 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0;
}

#laancLegend .small {
    font-size: 0.75rem;
    margin-bottom: 0.25rem !important;
}

#laancLegend small {
    font-size: 0.65rem;
    white-space: nowrap;
}

/* Ensure the legend container doesn't expand too much */
.d-flex.flex-wrap.gap-1 {
    max-width: 100%;
    justify-content: space-between;
}

/* Make the button more compact */
.btn-primary.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Building info styles */
#buildingInfo {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    font-size: 14px;
}

#buildingInfo h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

#buildingInfo p {
    margin-bottom: 8px;
}

#buildingInfo ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

#buildingInfo li {
    margin-bottom: 4px;
}

/* Status colors */
.text-safe { color: #28a745; }
.text-swarmp { color: #ffc107; }
.text-unsafe { color: #dc3545; }
.text-expired { color: #ff8c00; }
.text-noreport { color: #6c757d; }

/* Progress bar colors */
.bg-orange { background-color: #ff8c00 !important; }

/* Autocomplete styles */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2000 !important;
}

.ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ui-menu-item:hover {
    background-color: #f8f9fa;
}

/* Button styles */
.btn-primary {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        linear-gradient(135deg, #4db8f1 0%, #64f85e 100%);
    border-color: #4db8f1;
    color: white;
    transition: all 0.2s ease;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary:hover {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        linear-gradient(135deg, #4db8f1 0%, #64f85e 100%);
    border-color: #4db8f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Ensure enabled buttons have pointer cursor */
.btn-primary:not(:disabled) {
    cursor: pointer;
}

/* Specific fix for Save Proposal button */
#updateProposalBtn:not(:disabled) {
    cursor: pointer !important;
}

#updateProposalBtn:not(:disabled):hover {
    cursor: pointer !important;
}

.mapboxgl-popup {
    max-width: 400px;
}

.mapboxgl-popup-content {
    padding: 15px;
}

/* Building info styles */
#buildingDetails h5 {
    margin-bottom: 15px;
    color: #333;
}

#buildingDetails p {
    margin-bottom: 8px;
    color: #666;
}

#buildingDetails strong {
    color: #333;
}

/* Clear button styles */
.btn-outline-secondary {
    font-size: 12px;
    padding: 2px 8px;
}

/* Filter Results styles */
.filter-results {
    position: absolute;
    top: 10px;
    right: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 250px;
    max-width: 300px;
    z-index: 1000;
    border: 1px solid rgba(222, 226, 230, 0.8);
    transition: transform 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
}

.filter-results-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.filter-results-header h5 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.dashboard-toggle {
    padding: 2px 6px;
    z-index: 1001;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.dashboard-toggle i {
    transition: transform 0.3s ease;
}

.dashboard-toggle:hover i {
    transform: scale(1.1);
}

.filter-results.dashboard-hidden .dashboard-toggle i {
    transform: rotate(180deg);
}

.filter-results.dashboard-hidden .dashboard-content {
    display: none;
    opacity: 0;
}

.filter-results.dashboard-hidden {
    padding-bottom: 10px;
}

/* Status breakdown and dashboard content */
.dashboard-content {
    transition: opacity 0.3s ease;
}

.total-count {
    font-size: 0.9em;
    color: #6c757d;
}

.total-value {
    font-size: 0.9em;
    color: #28a745;
    font-weight: 500;
}

.total-value #totalValueEstimate {
    font-weight: 600;
}

.total-area {
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.total-area #totalAreaDisplay, .total-value #totalValueEstimate {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.status-breakdown {
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 2px 0;
}

.status-label {
    font-weight: 500;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Service selection styles */
.form-check-input.service-checkbox {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    width: 100%;
}

.form-check-label .badge {
    font-weight: normal;
    font-size: 0.8em;
}

.form-switch .form-check-input {
    cursor: pointer;
}

#totalServiceCost {
    font-size: 0.9em;
    color: #0d6efd;
}

.form-check-label:hover {
    color: #0d6efd;
}

/* Building List Styles */
.buildings-list-body {
    overflow-y: auto;
    max-height: 300px;
    padding: 0;
    border: 1px solid #efefef;
    border-radius: 6px;
    background-color: #fcfcfc;
}

.building-list-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.15s ease;
}

.building-list-item:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.building-list-item.active {
    background-color: rgba(13, 110, 253, 0.12);
    border-left: 3px solid #0d6efd;
}

.building-address {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #343a40;
}

.building-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6c757d;
}

.building-status {
    font-weight: 500;
}

.status-safe { color: #28a745; }
.status-swarmp { color: #ffc107; }
.status-unsafe { color: #dc3545; }
.status-expired { color: #ff8c00; }
.status-noreport { color: #6c757d; }

/* Media query for smaller screens */
@media (max-width: 768px) {
    .filters-popup {
        width: calc(100% - 40px);
        left: 20px;
        max-height: 80vh;
    }
    
    .filter-results {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .buildings-list-body {
        max-height: 250px;
    }
}

/* Sort dropdown styles */
#buildingSortSelect {
    flex-grow: 1;
    max-width: none;
}

/* Buildings sorting container */
.sort-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Buildings list panel with sorting */
.buildings-list-body {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
}

/* Sortable column styling */
.sortable {
    cursor: pointer;
}

.sortable:hover {
    background-color: rgba(0,0,0,0.05);
}

.sortable.active {
    font-weight: 500;
}

.sortable.active:after {
    content: '↓';
    margin-left: 3px;
    font-size: 0.8em;
}

.sortable.active.desc:after {
    content: '↑';
}

/* For the flex container */
.filter-results-header .d-flex.justify-content-between {
    margin-bottom: 12px;
}

/* Statistics Page Styling */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.chart-container {
    padding: 5px;
    background-color: #ffffff;
    border-radius: 6px;
}

#boroughChart, #statusChart {
    transition: all 0.3s ease;
}

#boroughChart:hover, #statusChart:hover {
    filter: brightness(1.05);
} 