:root {
    --primary-color: #dc3545;
    --secondary-color: #1a1a2e;
    --accent-color: #ffc107;
}

body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.navbar-custom {
    background: linear-gradient(90deg, #000000 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.brand-title {
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(220,53,69,0.2) 0%, rgba(26,26,46,0.8) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220,53,69,0.3);
}

.stat-card h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.inmate-card {
    background: rgba(26,26,46,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(5px);
}

.inmate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220,53,69,0.4);
    border-color: var(--primary-color);
}

.inmate-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.section-header {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.chart-container {
    background: rgba(26,26,46,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.btn-primary-custom {
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff4757 100%);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 30px;
}

.btn-primary-custom:hover {
    background: linear-gradient(90deg, #ff4757 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

.badge-danger-custom {
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.pagination {
    margin-top: 20px;
}

.pagination .page-link {
    background: rgba(26,26,46,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Marker Cluster Styling */
.marker-cluster-small {
    background-color: rgba(220, 53, 69, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(220, 53, 69, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(255, 193, 7, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(255, 193, 7, 0.8);
}

.marker-cluster-large {
    background-color: rgba(255, 71, 87, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(255, 71, 87, 0.8);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster span {
    line-height: 30px;
}

/* Bust Board Styles */
.bust-board-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(26,26,46,0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bust-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid rgba(220,53,69,0.3);
}

.bust-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(220,53,69,0.6);
    border-color: var(--primary-color);
}

.bust-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bust-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4757 100%);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.bust-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: white;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 1200px) {
    .bust-board-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bust-board-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .bust-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .bust-name {
        font-size: 0.75rem;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .bust-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Search Input Styles */
#search-input {
    color: white !important;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}

#search-input:focus {
    color: white !important;
    background: rgba(26,26,46,0.9) !important;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(90deg, #000000 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 40px 0 30px 0;
    margin-top: 60px;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -4px 6px rgba(0,0,0,0.3);
}

.footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 30px 0 20px 0;
        margin-top: 40px;
    }

    .footer-copyright {
        font-size: 1rem;
    }

    .footer-disclaimer {
        padding: 15px;
    }

    .footer-disclaimer p {
        font-size: 0.85rem;
    }
}
