* {
    font-family: 'Poppins', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #006792 transparent;
}

*, ::after, ::before {
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    width: 0.5em;
}

*::-webkit-scrollbar-thumb {
    background-color: #006792;
    border-radius: 20px;
    border: 4px solid #fff;
}

*::-webkit-scrollbar-track {
    background: #fff;
}

::selection {
    color: white;
    background: #006792;
}

body {
    padding-top: 69px;
    margin: 0;
    background-color: var(--bs-light, #f8f9fa);
    display: flex;
    flex-direction: column; /* Memastikan konten tersusun vertikal */
}

/* Download Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
}

.download-btn i {
    font-size: 1rem;
}

.download-btn.excel-btn {
    background-color: #1d6f42;
    color: white;
    border: 1px solid #1d6f42;
}

.download-btn.excel-btn:hover {
    background-color: #166534;
    border-color: #166534;
    color: white;
}

.download-btn.json-btn {
    background-color: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.download-btn.json-btn:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
}

.download-btn.pdf-btn {
    background-color: #4358ce;
    color: white;
    border: 1px solid #4358ce;
    margin: 0 5px;
}

.download-btn.pdf-btn:hover {
    background-color: #3a5f7b;
    border-color: #3a5f7b;
    color: white;
}


.main-content {
    display: flex; 
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 0;
}

.container {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 40px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(27, 58, 89, 0.1);
}

    .radio-buttons {
    margin-bottom: 20px;
    }
    .radio-label {
        position: relative;
        margin-left: 10px;
        font-size: 16px;
        padding-left: 25px;
        cursor: pointer;
        display: inline-block;
        color: #1B3A59;
        font-weight: 500;
    }
    .radio-label input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }
    .radio-custom {
        position: absolute;
        top: 0;
        left: 0;
        width: 18px;
        height: 18px;
        background-color: #fff;
        border: 2px solid #1B3A59;
        border-radius: 50%;
        transition: background-color 0.3s, border-color 0.3s;
    }
    .radio-label input:checked + .radio-custom {
        background-color: #1B3A59;
        border-color: #1B3A59;
    }
    .radio-label input:checked + .radio-custom::after {
        content: '';
        position: absolute;
        top: 4px;
        left: 4px;
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
    }
    .radio-label:hover .radio-custom {
        background-color: #f0f0f0;
    }
    .radio-label:hover input:checked + .radio-custom {
        background-color: #3a5f7b;
        border-color: #3a5f7b;
    }

    .resize-img {
    width: 90%; /* Atur lebar gambar, bisa pakai persen atau piksel */
    height: auto; /* Menjaga rasio gambar agar tidak terdistorsi */
    margin-top: 20px;
    }

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 15px;
    transition: background-color 0.3s;
}

.excel-btn {
    background-color: #217346;
}

.excel-btn:hover {
    background-color: #1a5a37;
    color: white;
    text-decoration: none;
}

.csv-btn {
    background-color: #4a90e2;
}

.csv-btn:hover {
    background-color: #357abd;
    color: white;
    text-decoration: none;
}

.download-btn i {
    margin-right: 8px;
}

.input-info-container {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e1e1e1;
}

.input-info-container h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1B3A59;
}

.input-info-container p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.input-info-container p strong {
    color: #006792;
}

.input-info-container p:nth-child(even) {
    background-color: #f8f9fa;
    padding: 8px;
}

.input-info-container p:nth-child(odd) {
    background-color: #f1f3f5;
    padding: 8px;
}

h3 {
    margin-top: 30px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-controls {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-controls label {
    margin-bottom: 0;
    color: #1B3A59;
    font-weight: 500;
    min-width: 120px;
}

.chart-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #1B3A59;
    font-size: 14px;
    min-width: 150px;
}

/* Table Responsive Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#dataTable {
    width: 100%;
    margin-bottom: 1rem;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .table-container {
        margin: 0 -0.5rem;
    }

    #dataTable th,
    #dataTable td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        border-right: none;
    }

    .chart-container {
        min-height: 400px;
        height: 70vh;
        max-height: 600px;
        padding: 10px;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    
    .chart-controls label {
        margin-bottom: 5px;
    }
    
    .chart-controls select {
        width: 100%;
    }
}

#chartView {
    margin-top: 30px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}