/* RESET & GLOBAL - TEMA FORMAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f0f2f5;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* INDEX */
.index-body {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}
.logo-area .logo {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    color: #1e3c72;
    letter-spacing: -0.5px;
}
.slogan {
    color: #2c3e50;
    margin-top: 8px;
    font-size: 0.95rem;
}
.btn-menu-utama {
    background: #2c3e66;
    border: none;
    padding: 12px 28px;
    font-size: 1.2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    margin: 25px 0;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: auto;
    min-width: 180px;
}
.btn-menu-utama:hover { background: #1e2f4a; transform: translateY(-2px);}
.kolom-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}
.card-menu {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    width: 180px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-menu:hover { transform: translateY(-5px); background: #ffffff; box-shadow: 0 8px 20px rgba(0,0,0,0.1);}
.card-icon { font-size: 2.5rem; margin-bottom: 10px; }
.card-menu h3 { font-size: 1.2rem; margin: 10px 0 5px; color: #1e3c72; }
.card-menu p { font-size: 0.8rem; color: #495057; }
.hidden { display: none; }

/* EDUKASI */
.edukasi-section {
    margin-top: 35px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
    border-left: 5px solid #2c3e66;
}
.edukasi-section h2 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin: 15px 0 8px;
}
.edukasi-section p, .cara-pakai li {
    color: #2d3e50;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cara-pakai {
    padding-left: 25px;
}
.info-tip {
    background: #e9ecef;
    padding: 10px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 0.85rem;
}

/* MENU */
.menu-body {
    background: #eef2f5;
}
.menu-container {
    max-width: 600px;
}
.input-nama {
    width: 90%;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    margin: 20px 0;
    text-align: center;
}
.tombol-menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}
.tombol-aksi {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f3f5;
    color: #1e3c72;
    transition: 0.2s;
    border: 1px solid #dee2e6;
}
.tombol-calc1 { background: #e7f1ff; border-color: #b8d0ff; }
.tombol-calc2 { background: #e6f7e6; border-color: #b3e0b3; }
.tombol-aksi:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05);}
.back-home {
    background: none;
    border: none;
    color: #5a67d8;
    margin-top: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* KALKULATOR 1 (formal) */
.calc1-body {
    background: #eef2f5;
}
.calc1-container {
    background: white;
}
.calculator {
    max-width: 500px;
    margin: 20px auto;
}
.calc-display {
    width: 100%;
    padding: 18px;
    font-size: 1.8rem;
    text-align: right;
    border-radius: 16px;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    margin-bottom: 20px;
}
.calc-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.angka-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.angka-buttons button, .clear-btn {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    padding: 14px;
    font-size: 1.2rem;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.1s;
}
.angka-buttons button:active, .clear-btn:active { background: #e9ecef; }
.operator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.op-btn, .eq-btn {
    background: #2c3e66;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.2rem;
    border-radius: 14px;
    cursor: pointer;
}
.eq-btn { background: #1e5f5a; }
.info-calc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 20px;
}

/* KALKULATOR 2 (keuangan) */
.calc2-body {
    background: #eef2f5;
}
.calc2-container {
    background: white;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}
.form-row input, .form-row select {
    padding: 10px 16px;
    border-radius: 40px;
    border: 1px solid #ced4da;
    font-size: 0.9rem;
    flex: 1;
    min-width: 140px;
}
.btn-tambah, .btn-export {
    background: #2c3e66;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
}
.filter-bulan {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}
.tabel-keuangan {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tabel-keuangan th, .tabel-keuangan td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    font-size: 0.85rem;
}
.tabel-keuangan th {
    background: #f1f3f5;
    font-weight: 600;
}
.hapus-transaksi {
    background: #dc3545;
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 0.7rem;
}
.total-saldo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    padding: 12px;
    background: #e9ecef;
    border-radius: 40px;
    display: inline-block;
}
.pengaturan-teks button {
    background: #e9ecef;
    border: 1px solid #ced4da;
    padding: 5px 14px;
    border-radius: 30px;
    margin: 0 4px;
    cursor: pointer;
}
.back-btn {
    background: #6c757d;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    margin-bottom: 15px;
}
/* Gaya umum (tambahan dari style sebelumnya) */
body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Roboto, sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}
.header-nav a {
    text-decoration: none;
    background: #f1f3f5;
    padding: 6px 14px;
    border-radius: 40px;
    color: #2c3e66;
    font-weight: 500;
    transition: 0.2s;
}
.header-nav a:hover { background: #e2e6ea; }

/* Beranda */
.hero h1 { font-size: 1.8rem; color: #1e3c72; }
.ilustrasi-icon { font-size: 3rem; margin: 15px 0; }
.deskripsi-singkat { max-width: 700px; margin: 20px auto; line-height: 1.5; }
.tombol-aksi-cepat { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-cepat { background: #2c3e66; color: white; padding: 10px 20px; border-radius: 40px; text-decoration: none; }

/* Tentang Akuntansi */
.akuntansi-content section { margin-bottom: 25px; text-align: left; }
.akuntansi-content h2 { color: #2c3e66; margin-bottom: 8px; }
.akuntansi-content ul { padding-left: 25px; }

/* Tabel Data */
.tabel-wrapper { overflow-x: auto; margin-top: 20px; }
.tabel-data { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; }
.tabel-data th, .tabel-data td { border: 1px solid #dee2e6; padding: 10px; text-align: left; }
.tabel-data th { background: #f8f9fa; }
.btn-hapus { background: #dc3545; border: none; color: white; padding: 4px 12px; border-radius: 20px; cursor: pointer; }

/* Laporan */
.laporan-card { background: #f8f9fa; border-radius: 24px; padding: 25px; max-width: 500px; margin: 20px auto; }
.laporan-item { display: flex; justify-content: space-between; font-size: 1.2rem; margin: 15px 0; }
.hijau { color: #2e7d32; font-weight: bold; }
.merah { color: #c62828; font-weight: bold; }
.biru { color: #1565c0; font-weight: bold; }
.btn-refresh { background: #2c3e66; color: white; border: none; padding: 10px 24px; border-radius: 40px; cursor: pointer; }

/* Kontak */
.kontak-info { background: #eef2f5; border-radius: 20px; padding: 20px; text-align: left; max-width: 500px; margin: 20px auto; }
.kontak-info p { margin: 12px 0; font-size: 1rem; }
/* Perbaikan tombol kembali ke beranda */
.back-home {
    background: #6c757d;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
}
.back-home:hover {
    background: #5a6268;
    transform: translateY(-2px);
}
/* Responsif */
@media (max-width: 700px) {
    .container { padding: 16px; }
    .header-nav a { font-size: 0.8rem; padding: 4px 10px; }
    .laporan-item { font-size: 1rem; }
}
/* RESPONSIVE */
@media (max-width: 600px) {
    .container { padding: 20px 16px; }
    .card-menu { width: 150px; padding: 15px; }
    .operator-buttons { grid-template-columns: repeat(4, 1fr); }
    .tabel-keuangan th, .tabel-keuangan td { font-size: 0.7rem; padding: 6px; }
}
