/* ====== BASE LAYOUT ====== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #06070b;
    color: #f5f5f5;
}

a {
    color: #db7371;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Wrapper konten utama (yang card-card itu) */
/* ====== OVERRIDE MAIN CONTAINER BIAR LEBAR ====== */
.main-container {
    width: 100% !important;
    max-width: 1500px !important;  /* boleh naikin lagi kalau mau 1600/1800 */
    margin: 0 auto;
    padding: 24px 40px;
}

/* ====== CARD ====== */

.card {
    background: #111319;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    margin-bottom: 16px;
}

.page-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

/* ====== TABLE SIMPLE ====== */

.table-responsive {
    overflow-x: auto;
}

.table-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-simple th,
.table-simple td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table-simple th {
    text-align: left;
    background: rgba(255,255,255,0.02);
    font-weight: 600;
}

/* ====== BUTTONS GLOBAL ====== */

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #303442;
    color: #f5f5f5;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.08s ease;
}
.btn:hover {
    background: #3c4152;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

/* Primary -> warna khas Basis */
.btn-primary {
    background: #db7371;
    color: #fff;
}
.btn-primary:hover {
    background: #c15f5d;
}

/* Secondary -> tombol balik, dll */
.btn-secondary {
    background: #444a5c;
    color: #fff;
}
.btn-secondary:hover {
    background: #505770;
}

/* Danger -> hapus */
.btn-danger {
    background: #e0526f;
    color: #fff;
}
.btn-danger:hover {
    background: #c6405c;
}

/* Ukuran kecil (contoh: tombol edit/hapus di tabel) */
.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
}

/* ====== DASHBOARD MODE TILE ====== */

.grid-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.btn-mode {
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    background: #151823;
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.08s ease;
}
.btn-mode:hover {
    background: #1c2130;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-mode-primary {
    background: #db7371;
    color: #fff;
}
.btn-mode-primary:hover {
    background: #c15f5d;
}

/* ====== KECIL2 LAINNYA ====== */

.error {
    padding: 8px 10px;
    background: #3b1520;
    border-radius: 8px;
    color: #ffb3c3;
    font-size: 13px;
    margin-bottom: 10px;
}
/* ==========================================
   MODE POS: FONT LEBIH BESAR, SPACING LEBIH LEGA
   ========================================== */

body.pos-mode {
    font-size: 16px;
}

body.pos-mode .page-title {
    font-size: 24px;
    font-weight: 600;
}

body.pos-mode .card {
    padding: 24px;
}

@media (min-width: 1280px) {
    body.pos-mode {
        font-size: 17px;
    }
    body.pos-mode .page-title {
        font-size: 26px;
    }
}

/* Biar POS Layout makin lebar */
body.pos-mode .main-container {
    max-width: 1500px !important;
}

body.test-css-check {
    background: #330000 !important;
}
