
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --primary: #1a1a1a;
    --accent: #d4a373;
    /* Gold/Manila vibe */
    --bg: #f9f9f9;
    --white: #ffffff;
    --font-serif: 'Larken', 'Libre Baskerville', serif;
    --font-sans: 'DM Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    font-family: var(--font-sans);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

/* Components */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-danger {
    background: #e63946;
    color: white;
}

/* Login Page */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #fff;
}

.login-box {
    width: 400px;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
}

.logo {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* POS Interface */
.pos-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.product-grid {
    flex: 2;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s;
    border: 1px solid #eee;
}

.product-card:active {
    transform: scale(0.98);
}

.cart-sidebar {
    flex: 1;
    background: white;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
}

.active {
    display: flex;
}

/* Add to your existing style.css */

/* Modern Payment Buttons */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.method-btn {
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.method-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Change Display */
.change-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    border: 1px dashed #ccc;
}

.change-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d6a4f;
    /* Green for money */
}

/* Big Action Button */
.btn-charge {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}