/* ========================================
   CSS Dashboard - RSKIA Kota Bunda
   COMPLETE VERSION dengan Tema Logo
   Hijau Lime + Pink Magenta
   ======================================== */

:root {
    --primary-green: #8BC34A;
    --primary-pink: #EC407A;
    --dark-green: #689F38;
    --dark-pink: #D81B60;
    --light-green: #DCEDC8;
    --light-pink: #FCE4EC;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #DCEDC8 0%, #FCE4EC 50%, #E1F5FE 100%);
    background-attachment: fixed;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-pink) 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.4), 0 5px 15px rgba(236, 64, 122, 0.3);
    position: relative;
    overflow: hidden;
    border: 4px solid white;
}

.header::before {
    content: '♥';
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(-15deg);
    z-index: 0;
}

.header::after {
    content: '+';
    position: absolute;
    bottom: 10px;
    left: 30px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    z-index: 0;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.header p {
    font-size: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    font-weight: 500;
}

/* ==================== NAVIGATION ==================== */
.navigation {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-left: 8px solid var(--primary-green);
    border-right: 8px solid var(--primary-pink);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 14px 28px;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button.active {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(236, 64, 122, 0.5);
    transform: scale(1.05);
    border-color: white;
}

.nav-button:not(.active) {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-pink) 100%);
    color: var(--text-dark);
    border-color: var(--primary-green);
}

.nav-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-button:not(.active):hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-pink) 100%);
    color: white;
    border-color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* ==================== YEAR SELECTION ==================== */
.year-selection {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(236, 64, 122, 0.4);
    position: relative;
    overflow: hidden;
    border: 4px solid white;
}

.year-selection::before {
    content: '♥♥♥';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 60px;
    opacity: 0.15;
    letter-spacing: 10px;
}

.year-selection::after {
    content: '+';
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 150px;
    opacity: 0.1;
    font-weight: bold;
    color: var(--primary-green);
}

.year-selection h3 {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.year-select-container label {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.year-select-container select {
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid white;
    border-radius: 12px;
    background: white;
    color: var(--primary-pink);
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.year-select-container select:focus {
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.year-select-container button {
    padding: 14px 36px;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid white;
    border-radius: 12px;
    background: white;
    color: var(--primary-pink);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.year-select-container button:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--primary-green);
}

/* ==================== INDICATOR SECTION ==================== */
.indicator-section {
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 3px solid var(--light-green);
    transition: all 0.4s ease;
}

.indicator-section:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.indicator-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 25px 30px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.indicator-header::before {
    content: '♥';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 100px;
    opacity: 0.15;
    color: var(--primary-pink);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.indicator-no {
    background: white;
    color: var(--primary-green);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 900;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.standar-badge {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(236, 64, 122, 0.4);
    border: 2px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== INDICATOR CONTENT ==================== */
.indicator-content {
    padding: 30px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    background: linear-gradient(135deg, rgba(220, 237, 200, 0.1) 0%, rgba(252, 228, 236, 0.1) 100%);
}

.data-section {
    display: flex;
    flex-direction: column;
}

.data-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table {
    overflow-x: auto;
    flex: 1;
    border-radius: 12px;
    border: 3px solid var(--light-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.data-table th {
    padding: 14px 10px;
    text-align: center;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 2px solid var(--light-green);
    text-align: center;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, var(--light-pink) 0%, rgba(236, 64, 122, 0.2) 100%);
    transition: all 0.3s ease;
    transform: scale(1.02);
}

.data-table tbody tr:nth-child(even) {
    background-color: rgba(220, 237, 200, 0.2);
}

.chart-section {
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(236, 64, 122, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    position: relative;
    height: 370px;
    flex: 1;
    max-width: 100%;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 3px solid var(--light-pink);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 15px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid white;
}

.status-badge.achieved {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
}

.status-badge.warning {
    background: linear-gradient(135deg, #FFA726 0%, #FF6F00 100%);
    color: white;
}

.status-badge.critical {
    background: linear-gradient(135deg, #EF5350 0%, #C62828 100%);
    color: white;
}

/* ==================== NO DATA ==================== */
.no-data {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-light);
    background: linear-gradient(135deg, white 0%, var(--light-green) 50%, var(--light-pink) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 5px dashed var(--primary-pink);
}

.no-data-icon {
    font-size: 90px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.no-data h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 800;
}

.no-data p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== TABLE SCROLL ==================== */
.table-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.table-scroll::-webkit-scrollbar {
    width: 12px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--light-green);
    border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-pink) 100%);
    border-radius: 10px;
    border: 2px solid white;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--dark-pink) 100%);
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
}

/* ==================== DASHBOARD CONTENT ==================== */
#dashboardContent {
    display: none;
}

#dashboardContent.show {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ADDITIONAL DECORATIVE ==================== */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 64, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .indicator-content {
        grid-template-columns: 1fr;
    }
    
    .header::before,
    .header::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 26px;
    }
    
    .header::before,
    .header::after {
        font-size: 80px;
    }
    
    .navigation {
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-right: none;
        border-top: 8px solid var(--primary-green);
        border-bottom: 8px solid var(--primary-pink);
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
    }
    
    .year-selection {
        padding: 30px 20px;
    }
    
    .year-selection::before {
        font-size: 40px;
    }
    
    .year-select-container {
        flex-direction: column;
    }
    
    .year-select-container select,
    .year-select-container button {
        width: 100%;
    }
    
    .indicator-content {
        padding: 20px;
        gap: 20px;
    }
}