/* =========================================
   MASTER CSS - KELASKUKEREN (NATURE/GREEN THEME)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Palet Hijau Alami (Emerald/Forest) */
    --primary: #059669; 
    --primary-hover: #047857;
    --bg-color: #f6fcf8; /* Putih dengan sentuhan hijau sangat lembut */
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); }
a { text-decoration: none; transition: 0.2s ease; }

/* GLOBAL COMPONENTS */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; text-align: center; transition: all 0.2s; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { display: block; width: 100%; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--text-main); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: 0.2s; outline: none; background: #fff; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15); }

.card { background: var(--surface); padding: 24px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* AUTHENTICATION PAGES (LOGIN & REGISTER) */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #ecfdf5 0%, #f3f4f6 100%); padding: 20px; }
.auth-card { background: var(--surface); width: 100%; max-width: 420px; padding: 40px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* DASHBOARD LAYOUT */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 10; }
.sidebar-brand { padding: 24px; font-size: 20px; font-weight: 800; color: var(--primary); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sidebar-menu { padding: 20px 16px; flex: 1; overflow-y: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-muted); border-radius: 8px; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
.nav-link i { font-size: 18px; width: 20px; text-align: center; }
.nav-link:hover, .nav-link.active { background: #ecfdf5; color: var(--primary); }
.nav-link.danger { color: var(--danger); margin-top: auto; }
.nav-link.danger:hover { background: #fef2f2; }

.main-content { flex: 1; margin-left: 260px; display: flex; flex-direction: column; background: var(--bg-color); min-height: 100vh; }
.topbar { background: var(--surface); padding: 20px 32px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 5; }
.topbar h3 { font-size: 18px; font-weight: 600; color: var(--text-main); }
.content-area { padding: 32px; overflow-y: auto; }

/* DASHBOARD GRIDS & TABLES */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { background: var(--surface); padding: 24px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 20px; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; background: #ecfdf5; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-details p { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.stat-details h4 { font-size: 24px; font-weight: 700; color: var(--text-main); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f9fafb; font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }

/* LANDING PAGE STYLES */
.landing-page { display: block; background-color: var(--surface); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-brand { font-size: 24px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }

.hero-section { background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%); padding: 100px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 48px; line-height: 1.2; color: var(--text-main); margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.hero-subtitle { font-size: 20px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }
.btn-lg { padding: 15px 30px; font-size: 18px; border-radius: 8px; }

.about-section, .features-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--text-main); margin-bottom: 15px; font-weight: 700; }
.divider { height: 4px; width: 60px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

.about-text { font-size: 18px; line-height: 1.8; color: var(--text-muted); text-align: center; max-width: 900px; margin: 0 auto; }
.about-text strong { color: var(--primary); font-weight: 600; }

.features-section { background-color: var(--bg-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--surface); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border); text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #a7f3d0; }
.feature-icon { font-size: 36px; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-main); font-weight: 600; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

.site-footer { background: var(--surface); padding: 30px 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); }

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .hero-content h1 { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
    .main-content { margin-left: 0; }
}