/* ==========================================================================
   CSS untuk Tampilan Kuesioner yang Lebih Menarik
   ========================================================================== */

/* Pengaturan Global */
body {
    font-family: 'Poppins', sans-serif;
    /* Gradasi warna biru-hijau */
    background: linear-gradient(135deg, #1abc9c, #2ecc71, #3498db);
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
    
    min-height: 100vh;
    padding: 20px;
}

/* Animasi gradasi warna */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Wrapper utama kuesioner */
.kuesioner-wrapper {
    background-color: #ffffff;
    max-width: 900px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Header Kuesioner */
.kuesioner-header {
    margin-bottom: 40px;
}

.kuesioner-header h1 {
    font-weight: 700;
    color: #34495e;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.kuesioner-header .header-divider {
    width: 80px;
    height: 4px;
    background-color: #34495e;
    margin: 0 auto;
    border-radius: 2px;
}

.kuesioner-header .subtitle {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.kuesioner-header .instruction {
    font-weight: 400;
    color: #95a5a6;
    font-size: 1rem;
    margin: 0;
}

/* Styling untuk Formulir */
.card {
    border: none;
    border-radius: 10px;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
}

.form-check-inline {
    margin-right: 20px;
}

/* Styling untuk Tabel Penilaian */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #34495e;
    color: #ffffff;
    border-color: #34495e;
}

.table-bordered td, .table-bordered th {
    border-color: #ecf0f1;
}

/* Styling untuk Tombol */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

/* Styling untuk Alert */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-radius: 8px;
}
/* Custom styles */
body {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.kuesioner-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.kuesioner-wrapper h1 {
    color: #2e8b57;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
}

/* --- Kustomisasi Kuesioner untuk Tampilan Mobile (Final) --- */
@media (max-width: 767px) {
    
    /* Perbaikan utama: Mengubah lebar container di perangkat mobile */
    .kuesioner-wrapper.container {
        width: 100%; /* Menggunakan 100% lebar layar */
        max-width: 100%; /* Menghilangkan batasan lebar maksimal */
        padding-right: 0;
        padding-left: 0;
        border-radius: 0; /* Menghilangkan sudut melengkung agar penuh */
    }
    
    .card {
        border-radius: 0;
    }

    /* Memperkecil font di seluruh container kuesioner */
    .kuesioner-wrapper {
        font-size: 0.9rem;
    }
    
    .kuesioner-wrapper h1 {
        font-size: 1.2rem;
    }
    
    /* Mengatur padding di bagian atas dan bawah */
    .kuesioner-wrapper.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Memastikan tabel bisa digeser horizontal */
    .table-responsive {
        overflow-x: auto;
    }
    
    .table-responsive .table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 0.5rem;
        vertical-align: top; /* Mengatur alignment ke atas agar lebih rapi */
        white-space: nowrap; 
    }
    
    .table-responsive .table th:first-child,
    .table-responsive .table td:first-child {
        width: 5%;
        text-align: center;
    }
    
    .table-responsive .table th:nth-child(2),
    .table-responsive .table td:nth-child(2) {
        width: 35%;
        padding-left: 0.5rem;
        white-space: normal; /* Mengizinkan teks pindah baris khusus di kolom ini */
    }
    
    .table-responsive .table th:nth-child(3),
    .table-responsive .table td:nth-child(3),
    .table-responsive .table th:nth-child(4),
    .table-responsive .table td:nth-child(4),
    .table-responsive .table th:nth-child(5),
    .table-responsive .table td:nth-child(5),
    .table-responsive .table th:nth-child(6),
    .table-responsive .table td:nth-child(6),
    .table-responsive .table th:nth-child(7),
    .table-responsive .table td:nth-child(7) {
        width: 12%; 
        text-align: center;
    }
    
    .table-responsive .table thead tr:nth-child(1) th:nth-child(3) {
        width: 60%; 
    }
    
    .table-responsive .table thead tr:nth-child(2) th {
        width: 12%; 
    }
    
    .form-check-input {
        width: 1rem;
        height: 1rem;
    }
}
/* Gaya untuk body dan container */
body {
    background: linear-gradient(135deg, #1abc9c, #2ecc71, #3498db); /* Gradasi warna hijau */
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    margin: 0;
}

.kuesioner-wrapper {
    max-width: 600px; /* Batasi lebar container */
    margin: auto;
    padding: 3rem; /* Padding yang lebih besar */
}

/* Gaya untuk card/kotak utama */
.custom-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Bayangan untuk efek modern */
    padding: 40px;
    text-align: center;
    animation: fadeInSlideUp 0.8s forwards ease-out; /* Animasi saat dimuat */
    opacity: 0;
    transform: translateY(20px);
}

/* Animasi untuk memunculkan card */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gaya untuk ikon centang */
.icon-success {
    font-size: 80px;
    color: #4CAF50;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animasi ikon */
    margin-bottom: 20px;
}

/* Animasi untuk ikon */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Gaya untuk judul dan teks */
h1.custom-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 0;
}

.custom-divider {
    height: 3px;
    background: #4CAF50;
    width: 80px;
    margin: 10px auto 20px auto;
}

.custom-text-success {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
}

/* Gaya untuk tombol */
.btn-kembali {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-kembali:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    background-color: #45a049;
    border-color: #45a049;
    color: #fff;
}
.item-penilaian-group {
    border: 1px solid #ccc; /* Tambahkan border */
    border-radius: 8px; /* Sudut membulat */
    padding: 20px; /* Jarak di dalam kotak */
    margin-bottom: 25px; /* Jarak antar kotak */
    background-color: #f9f9f9; /* Warna latar belakang */
}
.radio-item {
    width: 20%; /* Memastikan setiap radio button mendapat jatah lebar yang sama */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
}

.radio-item .form-check-input {
    width: 1.2em; /* Atur ukuran lebar radio button */
    height: 1.2em; /* Atur ukuran tinggi radio button */
    margin: 0;
}

/* Opsional: Jika ingin menghilangkan efek default browser, tambahkan ini */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    box-shadow:none;
}