:root {
    --primary: #3b82f6;
    --success: #22c55e;
    --dark: #0f172a;
    --gray: #64748b;
    --bg: #f1f5f9;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    margin: 0; 
    font-family: -apple-system, system-ui, sans-serif; 
    background-color: var(--bg); 
    color: var(--dark);
}

.app-header {
    background: var(--dark);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h2 { margin: 0; font-size: 1.1rem; flex: 1; text-align: center; }
.btn-close { color: white; text-decoration: none; font-size: 1.5rem; padding: 0 10px; }

.main-content { padding: 12px; max-width: 500px; margin: 0 auto; }

/* Start Screen */
.start-card {
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-top: 50px;
}

/* Order Info Bar */
.order-info {
    background: #dbeafe;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #1e40af;
    display: flex;
    justify-content: space-between;
}

/* Scanner */
#scanner-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
}

/* Form Card */
.form-card {
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    margin-bottom: 80px;
}

.field { margin-bottom: 15px; }
label { display: block; font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; margin-bottom: 5px; }
input { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 16px; }

/* Item List */
.item-row {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}

/* Buttons */
.btn { width: 100%; padding: 16px; border-radius: 12px; border: none; font-size: 1rem; font-weight: 700; cursor: pointer; }
.btn-start { background: var(--primary); color: white; }
.btn-scan { background: var(--dark); color: white; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-save { background: var(--success); color: white; }
.btn-done { background: #6366f1; color: white; position: fixed; bottom: 20px; left: 20px; right: 20px; width: calc(100% - 40px); }