/* Mengimpor Font Modern */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Latar belakang layar luar (Abu-abu sangat muda) */
html {
    background-color: #edf2f7; 
}

/* Mengubah Body menjadi seperti Kartu Aplikasi (Card) di tengah layar */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #2d3748;
    line-height: 1.6;
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Tipografi Utama */
h1, h2, h3, h4 { color: #1a202c; font-weight: 700; margin-top: 0; }
h2 { font-size: 24px; margin-bottom: 20px; }
hr { border: 0; height: 1px; background: #e2e8f0; margin: 20px 0; }
p { color: #4a5568; }

/* Input, Textarea, dan Select Modern */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f7fafc;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}
.form-group { margin-bottom: 16px; }
label { font-weight: 600; margin-bottom: 8px; display: block; font-size: 14px; color: #4a5568; }

/* Tombol (Buttons) Interaktif */
button {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Warna Tombol Berdasarkan Fungsinya */
#btn-login, #btn-register, .btn-continue, .btn-check { background: #3182ce; color: white; width: 100%; }
.btn-create, .btn-play, .btn-save, .btn-next, .btn-download { background: #48bb78; color: white; width: 100%; font-size: 16px; padding: 14px; }
.btn-logout, .btn-remove-step, .btn-delete { background: #e53e3e; color: white; }
.btn-add { background: #4299e1; color: white; width: 100%; margin-bottom: 20px; }
.btn-cancel, .btn-back { background: #718096; color: white; }
.btn-edit { background: #ecc94b; color: #744210; }
.btn-progress { background: #38b2ac; color: white; }
.btn-copy { background: #4fd1c5; color: white; }

/* Kartu Materi & Step */
.task-card, .tutorial-card, .step-card, .question-box, .step-container, .controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.task-card:hover, .tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

/* Badge (Label Status) */
.badge-finished { background: #c6f6d5; color: #22543d; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; float: right; }
.badge-progress { background: #feebc8; color: #7b341e; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; float: right; }

/* Tautan Form Login/Register */
.toggle-form { margin-top: 20px; text-align: center; color: #3182ce; cursor: pointer; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.toggle-form:hover { color: #2b6cb0; text-decoration: underline; }

/* Opsi Pilihan Ganda & Kotak Hint */
.mcq-option { margin-bottom: 10px; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px; cursor: pointer; display: block; transition: all 0.2s; background: #f7fafc; }
.mcq-option:hover { border-color: #a0aec0; background: #edf2f7; }
.hint-box { background: #fffaf0; border: 1px solid #fbd38d; padding: 16px; border-radius: 10px; color: #9c4221; font-size: 14px; margin-top: 15px; }
.mcq-options { padding-left: 15px; border-left: 3px solid #3182ce; margin-bottom: 15px; background: #fff; padding-top: 10px; padding-bottom: 10px; border-radius: 0 5px 5px 0; }

/* Tabel Rekap Progress */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
th, td { padding: 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #e2e8f0; }
th { background-color: #f7fafc; font-weight: 600; color: #4a5568; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f7fafc; }

/* Tata Letak Tambahan */
.header { display: flex; justify-content: space-between; align-items: center; }
.action-buttons { display: flex; gap: 10px; border-top: 1px dashed #e2e8f0; padding-top: 15px; margin-top: 15px; }
.link-container { display: flex; gap: 10px; margin-bottom: 15px; }
.feedback { font-weight: 600; margin-top: 15px; text-align: center; border-radius: 8px; padding: 10px; }
.feedback.success { background: #c6f6d5; color: #22543d; }
.feedback.error { background: #fed7d7; color: #822727; }
