/* =========================================================
   PenulisAI.com - Stylesheet utama
   Tema: "meja tulis" - serif editorial untuk judul, sans untuk isi
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink:        #1E2337;
    --ink-soft:   #454B63;
    --paper:      #F7F6F2;
    --paper-alt:  #FFFFFF;
    --line:       #E4E1D8;
    --accent:     #C77D2E;   /* amber ink - CTA */
    --accent-dark:#A5641F;
    --teal:       #1F5E56;   /* aksen sekunder - status aktif */
    --danger:     #B23A48;
    --warning:    #C77D2E;
    --success:    #1F5E56;
    --radius:     10px;
    --shadow:     0 2px 10px rgba(30, 35, 55, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    font-size: 15px;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .5em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -.3px;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { opacity: .9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: 44px;
    max-width: 780px;
    margin-bottom: 20px;
}
.hero p.lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 620px;
}
.hero-cta { margin-top: 28px; display: flex; gap: 14px; }

/* ---------- Cards / Sections ---------- */
.section { padding: 60px 0; }
.section-title { font-size: 30px; margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); margin-bottom: 36px; max-width: 640px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 0; }

.price-card { text-align: center; }
.price-card .price { font-family: 'Lora', serif; font-size: 40px; font-weight: 700; margin: 14px 0 4px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-card ul li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.price-card ul li:first-child { border-top: none; }

/* ---------- Auth forms ---------- */
.auth-wrap {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-box {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    width: 100%;
    max-width: 400px;
}
.auth-box h2 { margin-bottom: 6px; }
.auth-box .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--paper-alt);
    color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-success { background: #E7F1EF; color: var(--teal); border-color: #BFDAD5; }
.alert-error   { background: #FBEAEC; color: var(--danger); border-color: #F0C3C8; }
.alert-info    { background: #FDF3E7; color: var(--accent-dark); border-color: #F1D8B4; }

/* ---------- Dashboard layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 230px;
    background: var(--ink);
    color: #EDEEF3;
    padding: 24px 16px;
    flex-shrink: 0;
}
.sidebar .brand { color: #fff; margin-bottom: 30px; display: block; }
.sidebar .brand span { color: var(--accent); }
.sidebar nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #C7CAD9;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.main-content { flex: 1; padding: 32px; max-width: 1100px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.page-header h1 { font-size: 26px; margin: 0; }

/* ---------- Table ---------- */
table.data-table { width: 100%; border-collapse: collapse; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
table.data-table th { background: #F0EEE7; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; font-size: 11.5px; letter-spacing: .5px; }
table.data-table tr:last-child td { border-bottom: none; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-success { background: #E7F1EF; color: var(--teal); }
.badge-warning { background: #FDF3E7; color: var(--accent-dark); }
.badge-danger  { background: #FBEAEC; color: var(--danger); }
.badge-muted   { background: #EDEBE3; color: var(--ink-soft); }

/* ---------- Stat boxes ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-box .num { font-family: 'Lora', serif; font-size: 30px; font-weight: 700; }
.stat-box .label { font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--ink-soft); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-3, .grid-2, .stat-grid { grid-template-columns: 1fr; }
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .hero h1 { font-size: 32px; }
}
