/* style.css */
:root {
    --primary: #ea580c; /* Orange */
    --secondary: #1e293b; /* Dark Slate */
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: #333;
}

/* Layout */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}
.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--secondary);
}
.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
}
.btn:hover { background-color: #c2410c; }

/* Dashboard Grid */
.container { padding: 20px; max-width: 1200px; margin: 0 auto; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}
.card h3 { margin: 0; font-size: 0.9rem; color: #64748b; text-transform: uppercase; }
.card .value { font-size: 2rem; font-weight: bold; color: var(--secondary); margin-top: 10px; }

/* POS Layout */
.pos-container {
    display: flex;
    height: calc(100vh - 80px); /* Full height minus header/padding */
    gap: 20px;
}
.pos-menu {
    flex: 2;
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    align-content: start;
}
.menu-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.menu-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.menu-item h4 { font-size: 0.9rem; margin: 5px 0; }
.menu-item .price { font-weight: bold; color: var(--primary); }

.pos-cart {
    flex: 1;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
}
.cart-header { padding: 15px; border-bottom: 1px solid var(--border); font-weight: bold; font-size: 1.1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px; }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 5px; }
.cart-footer { padding: 20px; background: #f8fafc; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; }

/* Printer Styles */
@media print {
    body * { visibility: hidden; }
    #printable-receipt, #printable-receipt * { visibility: visible; }
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 58mm; /* 2 Inch */
        font-family: monospace;
        font-size: 12px;
        color: black;
        text-align: center;
    }
    .receipt-header, .receipt-footer { text-align: center; margin-bottom: 10px; }
    .receipt-item { display: flex; justify-content: space-between; }
}