/* General Styling */
body {
    font-family: 'Poppins', sans-serif; /* Menggunakan font Poppins (akan diimpor) */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0e5ec, #f0f2f5); /* Gradient background yang lembut */
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* Memastikan body mengisi seluruh tinggi viewport */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Mengatur konten ke atas */
    padding: 20px 0; /* Padding vertikal untuk keseluruhan body */
}

/* Import Google Font (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.container {
    max-width: 1100px; /* Lebarkan sedikit container */
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 15px; /* Sudut lebih membulat */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Bayangan lebih dalam */
    overflow: hidden;
    transform: translateY(0);
    animation: fadeInScale 0.8s ease-out forwards; /* Animasi muncul */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
header {
    background: linear-gradient(90deg, #2c3e50, #1a2c3d); /* Gradient biru gelap */
    color: #ecf0f1;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 6px solid #3498db; /* Garis biru terang lebih tebal */
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #f8f8f8; /* Lebih putih */
    font-weight: 700; /* Lebih tebal */
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.15em;
    margin: 5px 0;
    font-weight: 300; /* Lebih tipis */
}

.auditor-photo {
    width: 120px; /* Ukuran foto lebih besar */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff; /* Border putih yang jelas */
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Bayangan lebih intens */
    transition: transform 0.3s ease;
}

.auditor-photo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Styling for Auditee Select */
.auditee-selection {
    margin-top: 25px; /* Margin lebih besar */
    padding: 12px 25px; /* Padding lebih besar */
    background-color: rgba(255, 255, 255, 0.15); /* Sedikit lebih opaque */
    border-radius: 10px; /* Sudut lebih membulat */
    display: inline-flex; /* Menggunakan flexbox untuk alignment */
    align-items: center;
    gap: 15px; /* Jarak antara label dan select */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auditee-selection label {
    color: #f0f0f0; /* Warna teks lebih terang */
    font-size: 1.1em;
    font-weight: 600;
}

.auditee-selection select {
    padding: 10px 15px;
    border: 1px solid #5fafe0; /* Warna border yang lebih cocok */
    border-radius: 8px;
    background-color: #fefefe;
    color: #333;
    font-size: 1.05em;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Menghilangkan default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.auditee-selection select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.6);
    outline: none;
}

/* Main Content */
main {
    padding: 40px; /* Padding lebih besar */
}

.download-button {
    display: block;
    width: fit-content;
    margin: 0 auto 40px auto; /* Margin lebih besar */
    padding: 15px 30px; /* Padding lebih besar */
    background: linear-gradient(45deg, #27ae60, #1abc9c); /* Gradient hijau-tosca */
    color: white;
    border: none;
    border-radius: 10px; /* Sudut lebih membulat */
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
    letter-spacing: 0.5px;
}

.download-button:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: translateY(-3px) scale(1.02); /* Efek hover lebih menonjol */
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.audit-section {
    margin-bottom: 50px; /* Margin bawah lebih besar */
    padding: 30px; /* Padding lebih besar */
    background-color: #fefefe; /* Hampir putih */
    border-radius: 12px; /* Sudut lebih membulat */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Bayangan lebih lembut */
    border-left: 6px solid #3498db; /* Garis biru di kiri */
}

.audit-section h2 {
    color: #2c3e50; /* Biru gelap */
    font-size: 2em;
    border-bottom: 3px solid #3498db; /* Garis biru lebih tebal */
    padding-bottom: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.section-description {
    font-style: italic;
    color: #6a7f8e; /* Abu-abu kebiruan */
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.05em;
    padding: 0 15px;
}

.question-group {
    background-color: #f8fbfd; /* Sangat terang */
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-group:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #cce7ff;
}

.question-group h3 {
    color: #1abc9c; /* Turquoise green */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed #dce4ee; /* Garis putus-putus lebih lembut */
    padding-bottom: 12px;
    font-weight: 600;
}

.audit-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px; /* Padding lebih besar */
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.audit-item:hover {
    border-color: #aed6f1; /* Border biru muda saat hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px); /* Sedikit naik saat hover */
}

.audit-item p.question-text {
    flex: 2;
    min-width: 280px; /* Minimum width sebelum wrap */
    margin: 0 0 8px 0;
    font-weight: 600; /* Lebih tebal */
    color: #444;
    font-size: 1.05em;
}

.audit-item p.evidence-text {
    flex-basis: 100%;
    font-size: 0.95em;
    color: #7a8c9e; /* Abu-abu kebiruan */
    margin: 0 0 18px 0; /* Margin bawah lebih besar */
    padding-left: 20px; /* Indent lebih dalam */
    border-left: 4px solid #bdc3c7; /* Garis lebih tebal */
    font-style: italic;
}

.audit-item .controls {
    flex: 1;
    min-width: 320px; /* Minimum width untuk controls */
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Jarak antar elemen kontrol */
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
}

/* Buttons */
.status-toggle-button, .evidence-toggle-button {
    padding: 10px 18px; /* Padding lebih besar */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600; /* Lebih tebal */
    min-width: 130px; /* Fixed width lebih besar */
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Default state (unset/neutral) */
.status-toggle-button[data-status="unset"],
.evidence-toggle-button[data-status="unset"] {
    background-color: #95a5a6; /* Gray */
    color: white;
}
.status-toggle-button[data-status="unset"]:hover,
.evidence-toggle-button[data-status="unset"]:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

/* 'Ada' state */
.status-toggle-button[data-status="ada"],
.evidence-toggle-button[data-status="ada"] {
    background-color: #28a745; /* Green */
    color: white;
}
.status-toggle-button[data-status="ada"]:hover,
.evidence-toggle-button[data-status="ada"]:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* 'Belum Ada' state */
.status-toggle-button[data-status="belum-ada"],
.evidence-toggle-button[data-status="belum-ada"] {
    background-color: #dc3545; /* Red */
    color: white;
}
.status-toggle-button[data-status="belum-ada"]:hover,
.evidence-toggle-button[data-status="belum-ada"]:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}


/* Keterangan Input */
.keterangan-input {
    flex: 1;
    min-width: 180px; /* Minimum width lebih besar */
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 0.95em;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    min-height: 40px; /* Tinggi minimum textarea */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.keterangan-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

/* Footer */
footer {
    background-color: #34495e; /* Biru gelap */
    color: #ecf0f1;
    text-align: center;
    padding: 25px; /* Padding lebih besar */
    font-size: 0.95em;
    border-top: 6px solid #1abc9c; /* Garis tosca lebih tebal */
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .container {
        margin: 15px;
    }
    main {
        padding: 30px;
    }
    .audit-item .controls {
        min-width: 280px;
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    header {
        padding: 25px 15px;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    .auditor-photo {
        width: 100px;
        height: 100px;
    }
    main {
        padding: 20px;
    }
    .download-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .audit-section {
        padding: 20px;
        border-left: 4px solid #3498db;
    }
    .audit-section h2 {
        font-size: 1.7em;
    }
    .question-group {
        padding: 20px;
    }
    .question-group h3 {
        font-size: 1.4em;
    }
    .audit-item {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .audit-item p.question-text,
    .audit-item p.evidence-text {
        flex-basis: auto;
        min-width: unset;
        margin-right: 0;
        padding-left: 15px;
        font-size: 1em;
    }
    .audit-item .controls {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-top: 15px;
        gap: 8px;
    }
    .status-toggle-button, .evidence-toggle-button, .keterangan-input {
        width: 100%;
        min-width: unset;
        font-size: 0.95em;
    }
    .auditee-selection {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    .auditee-selection label, .auditee-selection select {
        width: 100%;
        text-align: center;
    }
    .auditee-selection select {
        background-position: calc(100% - 10px) center; /* Adjust arrow position */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .auditor-photo {
        width: 80px;
        height: 80px;
    }
    .audit-section h2 {
        font-size: 1.4em;
    }
    .question-group h3 {
        font-size: 1.2em;
    }
    .download-button {
        font-size: 1em;
        padding: 10px 20px;
    }
}