:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --dark: #2d3436;
    --light: #f7f1e3;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    color: var(--dark);
    padding: 2rem;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: left;
}

.admin-link {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.4);
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Menu Section */
.menu-section h2,
.billing-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.menu-item-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.item-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.add-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.add-btn:hover {
    background: var(--primary);
}

/* Billing Section */
.billing-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
    height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
}

.billing-card h2 {
    color: var(--dark);
    text-shadow: none;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.bill-items-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.bill-table {
    width: 100%;
    border-collapse: collapse;
}

.bill-table th {
    text-align: left;
    padding: 1rem 0.5rem;
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
}

.bill-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f2f6;
    padding: 0.2rem;
    border-radius: 6px;
    width: fit-content;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.remove-btn:hover {
    opacity: 1;
}

.empty-state {
    text-align: center;
    color: #aaa;
    margin-top: 3rem;
    font-style: italic;
}

.bill-footer {
    border-top: 2px solid #eee;
    padding-top: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary), #ff8787);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .billing-card {
        height: auto;
        position: static;
    }
}