/* =====================================================================
   FILE: assets/css/style.css
   FUNGSI: Tema warna utama aplikasi Kasir Online
   Palet: Biru Muda, Biru Tua, Putih, Aksen Kuning
   ===================================================================== */

:root {
    --primary-dark: #0b3d91;
    --primary: #1e6fd9;
    --primary-light: #63a4f4;
    --primary-lighter: #eaf3ff;
    --accent-yellow: #ffc107;
    --white: #ffffff;
    --gray-text: #5c6b7a;
    --dark-text: #1a2b3c;
    --success: #17a673;
    --danger: #e02424;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --shadow-soft: 0 8px 24px rgba(11, 61, 145, 0.08);
}

body {
    font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
    background-color: #f4f8fd;
    color: var(--dark-text);
}

a { text-decoration: none; }

/* ---------- NAVBAR / HEADER ---------- */
.navbar-kasir {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-soft);
}
.navbar-kasir .navbar-brand,
.navbar-kasir .nav-link {
    color: var(--white) !important;
    font-weight: 500;
}
.navbar-kasir .nav-link:hover { color: var(--accent-yellow) !important; }
.navbar-kasir .btn-login {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 30px;
    padding: 6px 22px;
    border: none;
}

/* ---------- HERO / BANNER ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero-section .btn-cta {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 34px;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
}
.hero-section .btn-cta:hover { color: var(--primary-dark); filter: brightness(1.05); }

/* ---------- SECTION CARDS ---------- */
.section-title {
    color: var(--primary-dark);
    font-weight: 700;
}
.feature-card, .price-card, .stat-card, .testi-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef3fb;
    height: 100%;
}
.feature-card { padding: 32px 24px; }
.feature-card .icon-circle {
    width: 60px; height: 60px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.stat-card { padding: 26px; text-align: center; }
.stat-card .stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .stat-label { color: var(--gray-text); }

.price-card { padding: 34px 26px; text-align: center; }
.price-card.featured { border: 2px solid var(--accent-yellow); transform: scale(1.03); }
.price-card .price-tag { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }

.testi-card { padding: 26px; }
.testi-card .testi-name { font-weight: 700; color: var(--primary-dark); }

footer.site-footer {
    background: var(--primary-dark);
    color: #d7e6fb;
    padding: 50px 0 20px;
}
footer.site-footer a { color: #d7e6fb; }
footer.site-footer a:hover { color: var(--accent-yellow); }

/* ---------- AUTH / LOGIN ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}
.auth-card .logo-circle {
    width: 70px; height: 70px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 30px;
}
.auth-card .btn-submit {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 10px;
    font-weight: 600;
    border: none;
}
.auth-card .btn-submit:hover { background: var(--primary-dark); color: var(--white); }
.auth-card .captcha-box {
    background: var(--primary-lighter);
    border-radius: var(--border-radius-md);
    padding: 10px 16px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

/* ---------- SIDEBAR DASHBOARD ---------- */
.sidebar {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0; left: 0;
    color: var(--white);
    z-index: 1030;
    transition: transform 0.25s ease;
}
.sidebar .brand {
    padding: 20px; font-weight: 700; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.sidebar .nav-link {
    color: #d7e6fb;
    padding: 12px 20px;
    border-left: 4px solid transparent;
}
.sidebar .nav-link i { width: 22px; }
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 4px solid var(--accent-yellow);
}
.main-content { margin-left: 250px; padding: 24px; min-height: 100vh; }
.topbar {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.card-dashboard {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: none;
}

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* ---------- POS / KASIR ---------- */
.pos-wrapper { display: flex; gap: 16px; }
.pos-product-list { flex: 1.6; }
.pos-cart { flex: 1; background: var(--white); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; height: calc(100vh - 110px); position: sticky; top: 90px; }
.product-card { background: var(--white); border-radius: var(--border-radius-md); box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.15s; border: 2px solid transparent; }
.product-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.product-card .stok-badge { font-size: 0.7rem; }
.cart-item { border-bottom: 1px solid #eef3fb; padding: 10px 16px; }
.qty-control button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--primary); background: var(--white); color: var(--primary); }

@media (max-width: 991px) {
    .pos-wrapper { flex-direction: column; }
    .pos-cart { position: static; height: auto; }
}

/* =====================================================================
   MODE SENTUH (TOUCHSCREEN) — target tombol minimal 44x44px sesuai
   standar aksesibilitas layar sentuh, diterapkan ke seluruh aplikasi
   ===================================================================== */
.btn, .dropdown-item, .page-link, .nav-link, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
.btn-sm { min-height: 40px; padding-left: 14px; padding-right: 14px; }
.form-control, .form-select {
    min-height: 44px;
    font-size: 1rem;
}
.form-control-sm, .form-select-sm { min-height: 38px; }
input[type="checkbox"], input[type="radio"] {
    width: 20px; height: 20px;
}
.dropdown-item { padding-top: 10px; padding-bottom: 10px; }

/* Tombol produk & keranjang POS diperbesar khusus untuk tablet */
.product-card { padding: 4px; }
.product-card .card-body { min-height: 44px; }
.qty-control button { width: 40px; height: 40px; font-size: 1.1rem; }
.cart-item .btn { min-height: 38px; min-width: 38px; padding: 0; }
.touch-btn { min-height: 48px; font-size: 1.05rem; padding-left: 18px; padding-right: 18px; }

@media (pointer: coarse) {
    .btn, button { min-height: 48px; }
    .form-control, .form-select { min-height: 48px; }
    table.table td, table.table th { padding-top: 12px; padding-bottom: 12px; }
}
