/* File: assets/css/style.css */
/* SAHABAT QUR'AN DINKES PAREPARE */
/* Tema: Islamic Elegant, Mobile-First, Responsif HP */

:root {
    --primary: #0f766e;
    --primary-dark: #064e3b;
    --primary-deep: #042f2e;
    --primary-soft: #ccfbf1;

    --gold: #d4af37;
    --gold-dark: #9a741c;
    --gold-soft: #f7e7a6;

    --cream: #fff8e7;
    --cream-soft: #fffbef;
    --white: #ffffff;

    --text: #1f2937;
    --muted: #6b7280;

    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --success: #047857;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;

    --warning: #b45309;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --wa: #25d366;
    --wa-dark: #128c7e;

    --border: rgba(15, 118, 110, 0.16);
    --border-gold: rgba(212, 175, 55, 0.34);

    --shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    --shadow-soft: 0 10px 28px rgba(4, 47, 46, 0.12);

    --radius: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

/* ==============================
   RESET DASAR
============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 25%),
        linear-gradient(145deg, #042f2e 0%, #064e3b 46%, #0f172a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.16) 87.5%, rgba(255,255,255,0.16)),
        linear-gradient(150deg, rgba(255,255,255,0.16) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.16) 87.5%, rgba(255,255,255,0.16));
    background-size: 64px 112px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==============================
   HERO / HEADER ISLAMIC
============================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 26px 18px 22px;
    color: var(--cream);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -120px -80px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.22);
    filter: blur(10px);
}

.hero::after {
    content: "۞";
    position: absolute;
    right: 22px;
    top: 18px;
    color: rgba(247, 231, 166, 0.34);
    font-size: 72px;
    line-height: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(247, 231, 166, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

.app-title {
    margin: 16px 0 8px;
    font-size: clamp(30px, 8vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.8px;
    font-weight: 900;
}

.app-title span {
    color: var(--gold-soft);
}

.app-subtitle {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 248, 231, 0.9);
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==============================
   NAV MINI
============================== */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.brand-mini {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-mini strong {
    color: var(--cream);
    font-size: 17px;
}

.brand-mini small {
    color: rgba(255, 248, 231, 0.74);
}

/* ==============================
   BUTTONS
============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    line-height: 1.25;
}

.btn-primary {
    color: #052e2b;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.28);
}

.btn-outline {
    color: var(--cream);
    border: 1px solid rgba(255, 248, 231, 0.36);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-soft {
    color: var(--primary-dark);
    background: rgba(15, 118, 110, 0.09);
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.btn-block {
    width: 100%;
}

/* Tombol WhatsApp khusus di dalam card */
.btn-wa {
    color: #ffffff;
    background: linear-gradient(135deg, var(--wa), var(--wa-dark));
    border: none;
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.24);
}

.btn-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(18, 140, 126, 0.32);
}

.btn-wa-disabled {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: not-allowed;
    box-shadow: none;
}

.wa-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

/* ==============================
   MAIN / CARD
============================== */

.main {
    flex: 1;
    padding: 18px 0 34px;
}

.card {
    position: relative;
    background: rgba(255, 248, 231, 0.98);
    border: 1px solid rgba(247, 231, 166, 0.34);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.10);
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card + .card {
    margin-top: 16px;
}

.card-title {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.card-desc {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
}

/* ==============================
   GRID & FEATURE
============================== */

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-soft), #ffffff);
    border: 1px solid rgba(15, 118, 110, 0.12);
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 900;
}

.feature-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-dark);
}

.feature-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

/* ==============================
   FORM
============================== */

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 15px;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-dark) 50%),
        linear-gradient(135deg, var(--primary-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 12px) 21px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.help-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.checkbox-row input {
    margin-top: 4px;
    transform: scale(1.15);
    accent-color: var(--primary);
}

.checkbox-row span {
    display: block;
    color: #374151;
    line-height: 1.55;
    font-size: 14px;
}

/* ==============================
   ALERT
============================== */

.alert {
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
    line-height: 1.55;
    font-size: 14px;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

/* ==============================
   BADGE
============================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.badge-soft {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

/* ==============================
   SUCCESS PAGE
============================== */

.success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    margin-bottom: 14px;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--gold-soft), #ffffff);
    border: 1px solid rgba(212, 175, 55, 0.42);
    font-size: 38px;
    font-weight: 900;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.75;
}

.info-list li {
    margin-bottom: 5px;
}

.info-list strong {
    color: var(--primary-dark);
}

/* ==============================
   ADMIN LIST / CARD LIST
============================== */

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.14);
    box-shadow: 0 8px 22px rgba(4, 47, 46, 0.06);
}

.admin-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.admin-item small {
    display: block;
    color: var(--muted);
    line-height: 1.55;
}

.admin-item .btn {
    flex-shrink: 0;
}

/* ==============================
   FILTER
============================== */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row .btn {
    width: auto;
    min-height: 42px;
    padding: 10px 14px;
}

/* ==============================
   TABLE RESPONSIVE
============================== */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    background: #ffffff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 118, 110, 0.10);
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

.table th {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary-dark);
    font-weight: 900;
}

.table td {
    color: var(--text);
}

/* ==============================
   WHATSAPP / TEXTAREA TEMPLATE
============================== */

.copy-box {
    position: relative;
}

.copy-box textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
}

.wa-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================
   FOOTER
============================== */

.footer {
    color: rgba(255, 248, 231, 0.72);
    text-align: center;
    padding: 22px 16px;
    font-size: 13px;
}

.footer strong {
    color: var(--gold-soft);
}

/* ==============================
   UTILITY
============================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 18px;
}

.hidden {
    display: none !important;
}

/* ==============================
   MOBILE RESPONSIVE
============================== */

@media (max-width: 720px) {
    .container {
        padding: 14px;
    }

    .hero {
        padding: 22px 14px 20px;
    }

    .hero::after {
        right: 12px;
        top: 12px;
        font-size: 58px;
    }

    .top-nav {
        align-items: flex-start;
    }

    .brand-mini strong {
        font-size: 15px;
    }

    .brand-mini small {
        font-size: 12px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
        border-radius: 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .app-title {
        font-size: 38px;
    }

    .app-subtitle {
        font-size: 15px;
    }

    .admin-item {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-item .btn {
        width: 100% !important;
    }

    .filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .filter-row .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 12px;
    }

    .hero {
        padding: 20px 12px 18px;
    }

    .app-title {
        font-size: 34px;
    }

    .card-title {
        font-size: 22px;
    }

    .card {
        padding: 16px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .kicker {
        font-size: 12px;
    }
}