/* ===========================================================
   AKADEMI BAHAGIA — DESIGN SYSTEM
   Warm Minimal · Earthy · Literasi Komunal
   =========================================================== */

:root {
    /* --- Warna --- */
    --cream:      #FBF7F0;   /* background utama */
    --paper:      #FFFFFF;   /* kartu / panel */
    --ink:        #2B2420;   /* teks utama, hangat-gelap, bukan hitam pekat */
    --ink-soft:   #6B5F54;   /* teks sekunder */
    --terracotta: #C1633D;   /* aksen utama / CTA */
    --terracotta-dark: #A6502E;
    --olive:      #5C6E4D;   /* aksen sekunder, hijau zaitun */
    --sand:       #F0E6D6;   /* panel lembut / hover */
    --sand-line:  #E3D5BE;   /* garis / border lembut */
    --gold:       #D9A441;   /* highlight kecil */

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(43,36,32,0.06);
    --shadow-md: 0 8px 24px rgba(43,36,32,0.08);
    --shadow-lg: 0 16px 40px rgba(43,36,32,0.12);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .container { padding: 0 18px; }
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sand);
    color: var(--olive);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--sand-line); }
.btn-outline:hover { background: var(--sand); border-color: var(--ink-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a1512; }
.btn-block { width: 100%; justify-content: center; }

.card {
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid var(--sand-line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

.field-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-group label { font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.field-group .hint { font-size: 0.78rem; color: var(--ink-soft); }
.input-field, select.input-field, textarea.input-field {
    border: 1.5px solid var(--sand-line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.96rem;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.input-field:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(193,99,61,0.12);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.alert {
    border-radius: var(--radius-md);
    padding: 18px 22px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.alert-success { background: #EBF3E4; color: #3F5A2E; border: 1px solid #CFE0BD; }
.alert-error { background: #F8E5DD; color: var(--terracotta-dark); border: 1px solid #EFC4AE; }
.alert-info { background: var(--sand); color: var(--ink-soft); border: 1px solid var(--sand-line); }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-pending { background: #FBE9CC; color: #9A6A1A; }
.badge-approved { background: #DCEBD2; color: #3F5A2E; }
.badge-rejected { background: #F6DAD2; color: #A6502E; }

.divider { height: 1px; background: var(--sand-line); border: none; margin: 32px 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sand-line); border-radius: 10px; }

@media (max-width: 768px) {
    .btn { width: 100%; justify-content: center; }
    .form-actions .btn { width: auto; }
}
