/* assets/style.css */
:root {
    --primary: #2563EB;
    /* Blue 600 */
    --primary-dark: #1E40AF;
    --accent: #E11D48;
    /* Rose 600 */
    --accent-dark: #BE123C;
    --bg-color: F8FAFC;
    /* Slate 50 */
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    --success: #10B981;
    /* Emerald 500 */
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    /* Table Colors */
    --tc-0: #ef4444;
    /* Red */
    --tc-1: #f97316;
    /* Orange */
    --tc-2: #f59e0b;
    /* Amber */
    --tc-3: #84cc16;
    /* Lime */
    --tc-4: #10b981;
    /* Emerald */
    --tc-5: #06b6d4;
    /* Cyan */
    --tc-6: #3b82f6;
    /* Blue */
    --tc-7: #6366f1;
    /* Indigo */
    --tc-8: #8b5cf6;
    /* Violet */
    --tc-9: #ec4899;
    /* Pink */
}



.table-badge-0 {
    color: var(--tc-0);
    background: #fee2e2;
}

.table-badge-1 {
    color: var(--tc-1);
    background: #ffedd5;
}

.table-badge-2 {
    color: var(--tc-2);
    background: #fef3c7;
}

.table-badge-3 {
    color: var(--tc-3);
    background: #ecfccb;
}

.table-badge-4 {
    color: var(--tc-4);
    background: #d1fae5;
}

.table-badge-5 {
    color: var(--tc-5);
    background: #cffafe;
}

.table-badge-6 {
    color: var(--tc-6);
    background: #dbeafe;
}

.table-badge-7 {
    color: var(--tc-7);
    background: #e0e7ff;
}

.table-badge-8 {
    color: var(--tc-8);
    background: #ede9fe;
}

.table-badge-9 {
    color: var(--tc-9);
    background: #fce7f3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for fixed footer */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.table-info {
    display: inline-block;
    background: #DBEAFE;
    color: #1E3A8A;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

.table-info-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* Drink List */
.drink-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.drink-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.1s;
}

.drink-card:active {
    transform: scale(0.98);
}

.drink-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.drink-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border);
}

.btn-circle.add {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.count-display {
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Floating Action Button / Footer */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 16px;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.order-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.order-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 200;
}

.toast.show {
    opacity: 1;
}

/* Service Page Specifics */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    /* For swipe */
    touch-action: pan-y;
    transition: transform 0.2s ease-out, opacity 0.2s;
}

.order-item.swiping {
    transition: none;
}

/* Background for swipe visual cue */
.order-item-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--success);
    /* Green for done */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 24px;
    color: white;
    font-weight: bold;
    z-index: 0;
    border-radius: 12px;
}

.order-content {
    position: relative;
    background: var(--card-bg);
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.order-details {
    font-weight: 600;
    font-size: 1.125rem;
}

.burger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.history-panel {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

.history-panel.open {
    transform: translateX(0);
}

.close-history {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}