/* public/css/style.css */

/* Pengaturan Dasar Halaman */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background-color: #f8fafc; /* bg-slate-50 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Container Utama */
.login-card {
    width: 100%;
    max-width: 26rem; /* max-w-md */
    padding: 2rem; /* p-8 */
    background-color: #ffffff;
    border: 1px solid #f1f5f9; /* border-slate-100 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* shadow-xl */
}

@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem;
    }
}

/* Header & Penyeimbang Ikon */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    margin-bottom: 0.75rem;
    background-color: #eef2ff; /* bg-indigo-50 */
    border: 1px solid #e0e7ff; /* border-indigo-100 */
    color: #4f46e5; /* text-indigo-600 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); /* shadow-inner */
}

/* Menjamin Gambar Ikon Tetap Kecil & Seimbang */
.icon-small {
    width: 20px !important;
    height: 20px !important;
    display: block;
    flex-shrink: 0;
}

/* Elemen Form & Input */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155; /* text-slate-700 */
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
    font-size: 0.875rem; /* text-sm */
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* border-slate-200 */
    color: #1e293b; /* text-slate-800 */
    border-radius: 0.75rem; /* rounded-xl */
    outline: none;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    border-color: #4f46e5; /* focus:border-indigo-500 */
    box-shadow: 0 0 0 4px #e0e7ff; /* focus:ring-4 focus:ring-indigo-100 */
}

/* Checkbox & Pilihan */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569; /* text-slate-600 */
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border-color: #cbd5e1;
}

/* Tombol Utama */
.btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4f46e5; /* bg-indigo-600 */
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgb(79 70 229 / 0.1), 0 2px 4px -2px rgb(79 70 229 / 0.1);
}

.btn-primary:hover {
    background-color: #4338ca; /* hover:bg-indigo-700 */
    box-shadow: 0 10px 15px -3px rgb(79 70 229 / 0.2), 0 4px 6px -4px rgb(79 70 229 / 0.2);
}

/* Notifikasi Kesalahan (Alert) */
.alert-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    background-color: #fff1f2; /* bg-rose-50 */
    border: 1px solid #fecdd3; /* border-rose-200 */
    color: #be123c; /* text-rose-700 */
    border-radius: 0.75rem;
}

/* Footer Tautan */
.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-t: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #475569;
}

.link-primary {
    margin-left: 0.25rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.link-primary:hover {
    color: #4338ca;
}
/* ==========================================================================
   FILE: public/css/style.css
   Sistem Manajemen Sertifikat - Layout Murni Tanpa Utilitas Eksternal
   ========================================================================== */

/* Pengaturan Dasar & Reset Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8fafc; /* bg-slate-50 */
    color: #1e293b; /* text-slate-800 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Kustomisasi Scrollbar Minimalis */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Reset Body untuk Admin Panel */
body.admin-body {
    display: block;
    padding: 0;
}

/* Tata Letak Utama (Split View) */
.layout-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Komponen Sidebar Kiri */
.sidebar-panel {
    width: 100%;
    background-color: #1e1b4b; /* bg-indigo-950 */
    color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-b: 1px solid #312e81;
    border-bottom: 1px solid #312e81;
}

.logo-box-icon {
    width: 36px;
    height: 36px;
    background-color: #4f46e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.logo-box-icon svg, .icon-square svg {
    width: 20px;
    height: 20px;
    display: block;
}

.logo-text-title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.025em;
}

/* Navigasi Link Menu */
.menu-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #c7d2fe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.menu-link:hover, .menu-link.active {
    background-color: #312e81;
    color: #ffffff;
}

/* Sektor Tombol Keluar */
.logout-section {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #312e81;
}

.btn-action-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #e11d48;
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action-logout:hover {
    background-color: #be123c;
}

/* Area Konten Utama Kanan */
.main-wrapper-content {
    flex: 1;
    padding: 24px;
}

.header-title-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.main-title-h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.subtitle-desc-p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.badge-identity-role {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    background-color: #eef2ff;
    border: 1px solid #e0e7ff;
    color: #4338ca;
    border-radius: 9999px;
    text-transform: uppercase;
}

/* Grid System Kartu Statistik */
.grid-statistics-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Komponen Stat Card */
.stat-card-item {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.icon-square {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-blue { background-color: #eff6ff; color: #2563eb; }
.cl-amber { background-color: #fefce8; color: #d97706; }
.cl-emerald { background-color: #ecfdf5; color: #059669; }

.label-title-card {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.number-value-card {
    font-size: 24px;
    font-weight: 900;
    color: #1e293b;
    margin-top: 2px;
}

/* Banner Pengumuman */
.announcement-card-box {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.announcement-title-h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.announcement-text-p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Media Queries Responsif Layar Lebar (Komputer/Laptop) */
@media (min-width: 768px) {
    .layout-container { flex-direction: row; }
    .sidebar-panel { width: 256px; }
    .main-wrapper-content { padding: 40px; }
    .header-title-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 640px) {
    .grid-statistics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-statistics-row { grid-template-columns: repeat(3, 1fr); }
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN KELOLA KURSUS
   ========================================================================== */

/* Header Baris Konten */
.content-action-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .content-action-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Tombol Tambah Data */
.btn-primary-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.btn-primary-add:hover {
    background-color: #4338ca;
}

/* Container Pembungkus Tabel (Scrollable Responsif) */
.table-responsive-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Elemen Tabel */
.data-table-main {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.data-table-main th {
    background-color: #f8fafc;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.data-table-main td {
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table-main tr:last-child td {
    border-bottom: none;
}

/* Badge Status Tingkat Kesulitan / Kategori */
.badge-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

.badge-blue { background-color: #eff6ff; color: #1d4ed8; }
.badge-purple { background-color: #faf5ff; color: #6b21a8; }
.badge-green { background-color: #f0fdf4; color: #166534; }

/* Kelompok Tombol Aksi */
.action-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-table-edit {
    padding: 6px 12px;
    background-color: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
}

.btn-table-edit:hover {
    background-color: #fef08a;
}

.btn-table-delete {
    padding: 6px 12px;
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-table-delete:hover {
    background-color: #fecdd3;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN KELOLA PENGGUNA
   ========================================================================== */

/* Komponen Identitas Pengguna (Kolom Nama) */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4f46e5;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.user-meta-text {
    display: flex;
    flex-direction: column;
}

.user-primary-name {
    font-weight: 700;
    color: #1e293b;
}

.user-secondary-email {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Badge Status Peran (Role Badge) */
.badge-role-user {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-admin-color {
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

 cruelty-instruktur-color { /* Class Penyeimbang */ }
.role-instructor-color {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.role-student-color {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN RIWAYAT SERTIFIKAT
   ========================================================================== */

/* Badge Status Validasi Sertifikat */
.badge-status-cert {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active-color {
    background-color: #f0fdf4; /* green-50 */
    color: #166534; /* green-800 */
    border: 1px solid #dcfce7;
}

.status-pending-color {
    background-color: #fffbeb; /* amber-50 */
    color: #92400e; /* amber-800 */
    border: 1px solid #fef3c7;
}

/* Tombol Aksi Cetak / Unduh */
.btn-table-print {
    padding: 6px 12px;
    background-color: #f0fdfa; /* teal-50 */
    color: #115e59; /* teal-800 */
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-table-print:hover {
    background-color: #ccfbf1;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN DASHBOARD SISWA
   ========================================================================== */

/* Komponen Progress Bar (Kemajuan Belajar) */
.progress-container {
    width: 100%;
    background-color: #e2e8f0; /* slate-200 */
    border-radius: 9999px;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #10b981; /* emerald-500 */
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Kustomisasi Grid Kelas Siswa */
.grid-student-courses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .grid-student-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Kartu Kelas Akhir */
.course-student-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

/* Badge Nilai Akhir */
.badge-grade-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
}

.grade-a-color { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.grade-b-color { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN KATALOG KURSUS SISWA
   ========================================================================== */

/* Grid Tata Letak Kartu Katalog */
.grid-catalog-courses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .grid-catalog-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-catalog-courses {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Komponen Kartu Katalog */
.catalog-course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.catalog-card-body {
    padding: 20px;
    flex: 1;
}

.catalog-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
}

.catalog-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sektor Tombol Daftar Kelas */
.catalog-card-footer {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.btn-enroll-course {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #10b981; /* emerald-500 */
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.btn-enroll-course:hover {
    background-color: #059669; /* emerald-600 */
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN SERTIFIKAT SAYA & BINGKAI RESMI
   ========================================================================== */

/* Container Pembungkus Sertifikat */
.certificate-frame-container {
    background-color: #ffffff;
    border: 12px double #d4af37; /* Bingkai emas ganda klasik */
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto 32px auto;
    text-align: center;
    background-image: radial-gradient(#fcfbf7 20%, transparent 20%), radial-gradient(#fcfbf7 20%, transparent 20%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

/* Ornamen Pojok Bingkai */
.cert-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #b45309;
}
.cert-top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.cert-top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.cert-bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.cert-bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Judul dan Teks Sertifikat */
.cert-main-title {
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cert-subtitle {
    font-size: 14px;
    color: #64748b;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 24px;
}

.cert-recipient-name {
    font-family: 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: #b45309;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding-bottom: 4px;
    margin: 16px 0;
}

/* Baris Tanda Tangan */
.cert-signature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 40px;
}

.cert-signer-box {
    text-align: center;
    font-size: 14px;
}

/* Tanda Tangan QR Code */
.cert-qr-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-code-border {
    padding: 6px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-verification-text {
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN DASHBOARD INSTRUKTUR
   ========================================================================== */

   .cl-purple-light { 
    background-color: #f5f3ff; /* violet-50 */
    color: #6d28d9; /* violet-700 */
}

/* Kotak Input Nilai di Tabel */
.input-score-box {
    width: 75px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.input-score-box:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 3px #ddd6fe;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN KELAS DIAMPU INSTRUKTUR
   ========================================================================== */

/* Grid Tata Letak Kelas Diampu */
.grid-instructor-courses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .grid-instructor-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Komponen Kartu Kelas */
.instructor-course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instructor-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Detail Info Kelas */
.course-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

.course-detail-row svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}
/* ==========================================================================
   TAMBAHAN KHUSUS: HALAMAN REKAP SERTIFIKASI INSTRUKTUR
   ========================================================================== */

/* Info Penanda Tingkat Kelulusan */
.grade-badge-summary {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    background-color: #f1f5f9;
    color: #475569;
}

/* Penyeimbang warna status khusus log rekap */
.cl-red-light {
    background-color: #fef2f2; /* red-50 */
    color: #b91c1c; /* red-700 */
}
/* Container pembungkus tanda tangan instruktur & stempel */
.signature-overlay-wrapper {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 80px;
    margin: 10px 0;
}

/* Mengatur ukuran dan posisi file gambar tanda tangan manual */
.img-signature-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: auto;
    z-index: 2;
}

/* Mengatur posisi stempel agar sedikit miring dan menimpa tanda tangan */
.img-stamp-overlay {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 90px;
    height: auto;
    z-index: 3;
    opacity: 0.85; /* Efek stempel tinta asli sedikit transparan */
}
/* ==========================================================================
   TAMBAHAN KHUSUS: FORM INPUT TAMBAH KURSUS
   ========================================================================== */
   .form-card-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.form-layout-group {
    margin-bottom: 20px;
}

.form-custom-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-custom-input, .form-custom-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-custom-input:focus, .form-custom-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #e0e7ff;
}

.btn-flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn-custom-cancel {
    padding: 10px 20px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
    text-align: center;
}

.btn-custom-cancel:hover {
    background-color: #e2e8f0;
}
