/* Landing Page Specific Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Hero Section */
.hero {
    color: #3E2723;
    text-shadow: none;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
}

/* Map Preview Section */
.map-preview-section {
    background-color: #f8f9fa;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(13, 110, 253, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(40, 167, 69, 0.1) 0%, transparent 25%);
}

.map-preview-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    padding: 10px;
}

.map-preview {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    opacity: 0.85;
    transition: all 0.3s ease;
    position: relative;
}

.map-preview:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.map-preview-container:hover .map-overlay {
    opacity: 1;
}

.map-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 20px 30px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: scale(0.9);
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

.map-overlay:hover .map-btn {
    transform: scale(1);
    opacity: 1;
}

.map-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 12px 35px rgba(0,123,255,0.4);
    color: white;
    text-decoration: none;
}

.map-btn i {
    font-size: 28px;
}

.map-btn span {
    font-size: 18px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Kilas Data Section */
.kilas-data-section {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
}

.kilas-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;
    min-height: 200px;
}

.kilas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.kilas-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kilas-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1;
}

.kilas-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.kilas-unit {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
    opacity: 0.8;
}

/* Features Grid */
.features-grid .feature i {
    font-size: 3rem;
    color: #007bff;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
}

/* Card Styling */
.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    border-radius: 10px;
}

.card-header {
    font-weight: bold;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-size: 16px;
}

/* Statistics Container */
.stats-container {
    padding: 20px 0;
}

.section-title {
    margin-bottom: 20px;
    color: #343a40;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

/* Statistics Display */
.stat-item {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    text-align: center;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-icon.apotek {
    background-color: #2196F3;
}

.stat-icon.klinik {
    background-color: #4CAF50;
}

.stat-icon.puskesmas {
    background-color: #FF9800;
}

.stat-icon.rumah-sakit {
    background-color: #F44336;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.stat-percentage {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

/* Legend */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.color-box {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
}

/* Dropdown Styling */
.form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Button Styling */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Feature Cards */
.feature {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background-color: white;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.feature h5 {
    color: #333;
    font-weight: 600;
}

.feature p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Section padding */
.py-5 {
    padding-top: 3rem!important;
    padding-bottom: 3rem!important;
}

/* Background */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Enhanced table responsive styles */
.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* Table container with horizontal scroll indicator */
.table-responsive-container {
    position: relative;
    margin-bottom: 2rem;
}

/* Scroll indicator for mobile */
.scroll-indicator {
    display: none;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Sticky first column on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
    
    .table-sticky-first-column {
        position: relative;
    }
    
    .table-sticky-first-column th:first-child,
    .table-sticky-first-column td:first-child {
        position: sticky;
        left: 0;
        background-color: white;
        z-index: 1;
        box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
    }
    
    .table-sticky-first-column tr.table-dark td:first-child {
        background-color: #343a40;
        color: white;
    }
    
    /* Ensure minimum column width on mobile */
    .table th, .table td {
        min-width: 80px;
        white-space: nowrap;
    }
    
    /* Better padding for mobile */
    .table td, .table th {
        padding: 10px 12px;
    }
    
    /* Highlight row on hover to improve readability */
    .table tbody tr:hover td {
        background-color: rgba(0, 123, 255, 0.05);
    }
    
    .table tbody tr:hover td:first-child {
        background-color: rgba(0, 123, 255, 0.1);
    }
    
    .table-dark tr:hover td {
        background-color: #454d55 !important;
    }
    
    /* Card adjustments for mobile */
    .card {
        margin-bottom: 30px;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    /* Kilas card adjustments */
    .kilas-card {
        padding: 25px 15px;
        min-height: 180px;
    }
    
    .kilas-value {
        font-size: 1.8rem;
    }
    
    .kilas-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

/* Additional styles for condensed view on very small screens */
@media (max-width: 576px) {
    .table td, .table th {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .table th {
        font-weight: 700;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .kilas-card {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .kilas-value {
        font-size: 1.6rem;
    }
    
    .kilas-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* Alternative card-based mobile view for very small screens */
@media (max-width: 400px) {
    .mobile-card-view {
        display: block;
    }
    
    .desktop-table-view {
        display: none;
    }
    
    .facility-card {
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        background-color: white;
    }
    
    .facility-card-header {
        font-weight: bold;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    .facility-card-body {
        display: flex;
        flex-wrap: wrap;
    }
    
    .facility-stat {
        flex: 0 0 50%;
        padding: 5px 0;
    }
    
    .facility-label {
        font-size: 0.8rem;
        color: #666;
    }
    
    .facility-value {
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Highlight first column on desktop too for consistency */
@media (min-width: 769px) {
    .table th:first-child, 
    .table td:first-child {
        background-color: rgba(0,0,0,0.02);
        font-weight: 500;
    }
    
    .table-dark td:first-child {
        background-color: #454d55;
    }
}

/* Styling untuk tabel statistik */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #343a40;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

.table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    text-align: center;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table-dark {
    background-color: #343a40;
    color: white;
}

.table-dark td {
    border-color: #454d55;
}