/* Card Gradient Styles */
.card-sungai-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.card-situ-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    cursor: pointer;
}

.card-ambien-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    cursor: pointer;
}

/* Card Icon Size */
.card-icon-size {
    font-size: 3rem;
}

/* Chart Full Width */
.chart-full-width {
    width: 100%;
}

/* Card Hover Effect */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-clickable:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Modal Header Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Accordion Styling with Bootstrap */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

.accordion-body {
    padding: 1.25rem;
    background-color: #f8f9fa;
}

/* Badge Styling */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Coordinate Display */
.coordinate-badge {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Legend Styling */
.legend-container {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.legend-container:empty {
    display: none;
}

.legend-badge-sangat-baik,
.legend-badge-baik,
.legend-badge-sedang,
.legend-badge-buruk {
    width: 20px;
    height: 20px;
    display: inline-block !important;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-badge-sangat-baik,
.legend-badge-baik {
    background-color: #10b981 !important;
}

.legend-badge-sedang {
    background-color: #f59e0b !important;
}

.legend-badge-buruk {
    background-color: #ef4444 !important;
}

.legend-badge-baik.badge,
.legend-badge-sedang.badge,
.legend-badge-buruk.badge {
    padding: 0;
    font-size: inherit;
    vertical-align: middle;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Map Legend Styles */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.map-legend-title {
    font-size: 0.85rem;
    color: #333;
}

.map-legend-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend-color {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.map-legend-text {
    font-size: 0.75rem;
    color: #555;
}

/* Kecamatan Colors */
.kecamatan-bogor-utara {
    background: #FF6B6B;
}

.kecamatan-bogor-timur {
    background: #4ECDC4;
}

.kecamatan-bogor-selatan {
    background: #45B7D1;
}

.kecamatan-bogor-barat {
    background: #FFA07A;
}

.kecamatan-bogor-tengah {
    background: #98D8C8;
}

.kecamatan-tanah-sereal {
    background: #F7DC6F;
}

/* Map Container */
.map-container {
    height: 600px;
    width: 100%;
}

/* Iframe Styles */
.iframe-ratio {
    position: relative;
    overflow: hidden;
}

.iframe-content {
    border: none;
    width: 100%;
    height: 100%;
}

.iframe-min-height-600 {
    min-height: 600px;
}

.iframe-min-height-500 {
    min-height: 500px;
}
