/* =============================
   GLOBAL
   ============================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #8b0000;
}

a:hover {
    text-decoration: underline;
}

/* =============================
   LOGIN PAGE
   ============================= */
body.login-page {
    background: linear-gradient(135deg, #000000, #8b0000);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: #ffffff;
    width: 350px;
    padding: 25px;
    border-radius: 10px;
    color: #222;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.login-card h2 {
    text-align: center;
    color: #8b0000;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.login-card button {
    width: 100%;
}

/* =============================
   DASHBOARD
   ============================= */
body.dashboard-page {
    background: linear-gradient(135deg, #2b0000, #8b0000);
    color: #fff;
}

.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: linear-gradient(145deg, #8b0000, #b00000);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.dashboard-card h3,
.dashboard-card p {
    color: white;
}

.dashboard-card:hover {
    background: #a00000;
    transform: translateY(-5px);
}

.dashboard-card.logout {
    background: linear-gradient(135deg, #000, #333);
}

/* =============================
   HEADER (GLOBAL)
   ============================= */
.kasir-header {
    background: linear-gradient(135deg, #2b0000, #8b0000);
    padding: 35px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.kasir-header h1 {
    margin: 0;
    font-size: 32px;
}

.kasir-header p {
    margin-top: 8px;
    color: #ffd6d6;
    font-size: 15px;
}

/* =============================
   HALAMAN UMUM
   ============================= */
body.menu-page,
body.laporan-page,
body.transaksi-page {
    background: #f4f6f8;
    color: #222;
    padding: 20px;
}

.page-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px 60px;
}

.page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #8b0000;
}

/* =============================
   BUTTON
   ============================= */
button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #a40000;
}

/* =============================
   TABLE
   ============================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

table th {
    background: #8b0000;
    color: #fff;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

table tr:last-child th {
    background-color: #198754;
    color: #fff;
}

/* =============================
   MENU CARD (GLOBAL – KASIR)
   ============================= */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.menu-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.menu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.menu-card h4 {
    margin: 10px 0 5px;
    color: #8b0000;
}

.menu-card p {
    font-weight: bold;
    margin-bottom: 10px;
}

/* =============================
   MENU PELANGGAN (ONLINE)
   ⚠️ SATU-SATUNYA YANG DIBEDAKAN
   ============================= */
.menu-container.pelanggan-menu {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.menu-card.pelanggan-card {
    padding: 10px;
}

.menu-card.pelanggan-card img {
    height: 110px;
}

.menu-card.pelanggan-card h4 {
    font-size: 14px;
}

.menu-card.pelanggan-card p {
    font-size: 13px;
}

.menu-card.pelanggan-card button {
    width: 100%;
    font-size: 12px;
    padding: 6px;
}

/* =============================
   BADGE NOTIF
   ============================= */
.badge {
    background: red;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}
/* =============================
   FIX GAMBAR MENU PELANGGAN
   ============================= */

body.menu-page .menu-container .menu-card img {
    height: 150px;       /* SAMA PERSIS KASIR */
    width: 100%;
    object-fit: cover;
}
/* =============================
   TOMBOL PESAN SEKARANG (FIX BESAR & JELAS)
   ============================= */

.btn-full {
    display: inline-block !important;
    background: #8b0000 !important;
    color: #ffffff !important;
    padding: 20px 50px !important;   /* BESAR */
    font-size: 20px !important;      /* TEKS JELAS */
    font-weight: bold !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    text-align: center !important;
}

.btn-full:hover {
    background: #a40000 !important;
    transform: scale(1.05);
}
/* =============================
   TRANSAKSI KASIR LAYOUT
   ============================= */
.transaksi-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

.transaksi-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.transaksi-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #8b0000;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.transaksi-card label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.transaksi-card input,
.transaksi-card select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.transaksi-card button {
    margin-top: 15px;
    width: 100%;
}
/* =============================
   LAYOUT TRANSAKSI KASIR
   ============================= */

.transaksi-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    margin-top: 30px;
}

.transaksi-left,
.transaksi-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* RESPONSIVE (HP) */
@media (max-width: 900px) {
    .transaksi-layout {
        grid-template-columns: 1fr;
    }
}
/* =========================
   LANDING PAGE WARUNG
   ========================= */
.landing-page{
    min-height:100vh;
    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url('../img/terasmama.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.landing-page h1{
    color:#fff;
    font-size:48px;
    font-weight:bold;
}

.landing-page p{
    color:#f1f1f1;
    font-size:16px;
    max-width:600px;
    margin:15px auto 30px;
}
.landing {
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url('assets/gambar/img/terasmama.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* kotak transparan biar teks ga nabrak */
.landing-overlay{
    background: rgba(0,0,0,0.55);
    padding: 50px 40px;
    border-radius: 18px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.landing-box{
    text-align: center;
}

.landing-box h1{
    font-size: 44px;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 1px;
}

.landing-box p{
    font-size: 16px;
    color: #f2f2f2;
    margin-bottom: 35px;
    line-height: 1.7;
}

.landing-btn{
    display: inline-block;
    margin: 8px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.btn-menu{
    background: #198754;
    color: white;
}

.btn-menu:hover{
    background: #157347;
}

.btn-pesan{
    background: #8b0000;
    color: white;
}

.btn-pesan:hover{
    background: #a40000;
}
/* tombol status pesanan pelanggan */
.btn-status{
    background:#8b0000;
    color:white;
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    font-size:14px;
}

.btn-status:hover{
    background:#a40000;
}
