@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #991b1b;   /* Merah gelap yang elegan & profesional[cite: 8] */
    --accent-color: #ef4444;    /* Merah terang untuk aksen dan tombol[cite: 8] */
    --text-color: #1e293b;      /* Warna teks utama[cite: 8] */
    --bg-color: #f8fafc;        /* Warna latar belakang[cite: 8] */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { width: 90%; max-width: 1100px; margin: auto; }

/* =========================================
   BAGIAN 1: DESAIN HALAMAN UTAMA (INDEX.PHP)
   ========================================= */

/* Header & Navigasi */
header { background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 100; padding: 15px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.header-flex h1 { color: var(--primary-color); font-weight: 700; font-size: 1.6em; letter-spacing: -0.5px; }
nav a { color: var(--text-color); text-decoration: none; margin-left: 25px; font-weight: 600; font-size: 0.95em; transition: color 0.3s; }
nav a:hover { color: var(--accent-color); }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); 
    color: var(--white) !important; padding: 10px 24px; border-radius: 30px; 
    box-shadow: 0 4px 15px rgba(153, 27, 27, 0.3); transition: transform 0.3s, box-shadow 0.3s; 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(153, 27, 27, 0.5); }

/* Hero Section */
.hero { 
    background: linear-gradient(135deg, #991b1b, #ef4444) !important; 
    color: var(--white); text-align: center; padding: 100px 20px; 
    border-radius: 0 0 40px 40px; margin-bottom: 50px; 
}
.hero h2 { font-size: 3.2em; margin-bottom: 15px; font-weight: 700; line-height: 1.2; color: var(--white); }
.hero p { font-size: 1.1em; font-weight: 300; max-width: 600px; margin: auto; opacity: 0.95; color: #fee2e2; }

/* Section & Cards Pilihan Kelas */
.section-title { text-align: center; margin-bottom: 40px; color: var(--primary-color); font-size: 2.2em; font-weight: 700; }
.grid-kelas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding-bottom: 60px; }
.card { 
    background: var(--white); padding: 35px 25px; border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: all 0.3s ease; 
    border-bottom: 4px solid transparent; 
}
.card:hover { transform: translateY(-8px); border-bottom: 4px solid var(--accent-color); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.card h3 { color: var(--primary-color); margin-bottom: 12px; font-size: 1.3em; }
.card p { color: #666; font-size: 0.95em; }
.harga { color: var(--accent-color); font-weight: 700; font-size: 1.3em; margin-top: 20px; }

/* Form Pendaftaran */
.form-section { background: var(--white); padding: 60px 0; border-radius: 40px 40px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.02); }
.form-daftar { background: var(--bg-color); padding: 40px; border-radius: 20px; max-width: 550px; margin: auto; display: flex; flex-direction: column; box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
.form-daftar label { margin-top: 15px; font-weight: 600; color: var(--primary-color); font-size: 0.9em; }
.form-daftar input, .form-daftar select { 
    padding: 14px; margin-top: 8px; border: 1.5px solid #E2E8F0; border-radius: 10px; font-size: 1em; transition: all 0.3s; 
}
.form-daftar input:focus, .form-daftar select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.btn-submit { margin-top: 30px; padding: 15px; background: var(--primary-color); color: var(--white); border: none; border-radius: 10px; font-size: 1.1em; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #7f1d1d; }

/* Footer */
footer { background: var(--primary-color); color: #cbd5e1; text-align: center; padding: 30px; font-size: 0.9em; }


/* =========================================
   BAGIAN 2: DESAIN HALAMAN ADMIN (ADMIN.PHP)
   ========================================= */
   
.admin-header { background: var(--primary-color); padding: 20px 0; color: var(--white); }
.header-flex h2 { font-weight: 700; color: var(--white); }

.table-wrapper { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); overflow-x: auto; margin-bottom: 40px; margin-top: 40px; }
.table-title-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.table-title-flex h3 { color: var(--primary-color); font-size: 1.5em; }

.table-data { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-data th, .table-data td { padding: 15px; text-align: left; border-bottom: 1px solid #edf2f7; }
.table-data th { background-color: #f7fafc; color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px; }
.table-data tbody tr:hover { background-color: #f8fafc; }

.wa-link { color: var(--accent-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.wa-link:hover { color: #dc2626; }

.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.85em; font-weight: 600; display: inline-block; }
.badge-lunas { background: #d1fae5; color: #065f46; }
.badge-belum { background: #fee2e2; color: #991b1b; }

.action-btn { font-size: 0.85em; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: 0.2s; }
.btn-set { background: #e0e7ff; color: #3730a3; }
.btn-set:hover { background: #c7d2fe; }
.btn-cancel { background: #fce7f3; color: #9d174d; }
.btn-cancel:hover { background: #fbcfe8; }

.logout-btn { background: rgba(255,255,255,0.1); color: var(--white); padding: 8px 20px; text-decoration: none; border-radius: 30px; font-weight: 600; transition: background 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.logout-btn:hover { background: rgba(255,255,255,0.2); }