:root {
    --bg-light: #ffffff;
    --bg-card: #f8fafc;
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --secondary: #2563eb;
    --secondary-hover: #1d4ed8;
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 70px;
}

.app-header {
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-content h1 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; }

.user-profile img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--primary); }

.main-content { padding: 20px; }
.view-section { display: none; animation: fadeIn 0.3s ease; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary);
}

.glass-card h2 { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary); }
.glass-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.grid-menu-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 10px; margin-bottom: 25px; }
.menu-item-small { display: flex; flex-direction: column; align-items: center; cursor: pointer; text-align: center; }
.menu-item-small .icon-box { width: 55px; height: 55px; border-radius: 16px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 8px; transition: transform 0.2s; }
.menu-item-small:active .icon-box { transform: scale(0.9); }
.menu-item-small span { font-size: 0.7rem; color: #475569; font-weight: 600; line-height: 1.2; max-width: 60px;}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
select, input, textarea {
    width: 100%; padding: 12px 15px; background: #fff;
    border: 1px solid #cbd5e1; border-radius: 8px; color: var(--text-main); font-family: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 80px; }

.btn-primary {
    width: 100%; padding: 14px; background: var(--primary); color: white;
    border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; margin-top: 10px;
}
.btn-primary:active { background: var(--primary-hover); }

.btn-secondary {
    width: 100%; padding: 12px; background: var(--secondary); color: white;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.btn-secondary:active { background: var(--secondary-hover); }

.product-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 15px; border-left: 4px solid var(--primary); }
.product-item h3 { font-size: 1rem; margin-bottom: 10px; color: var(--text-main); }
.qty-row { display: flex; gap: 10px; }
.pack-type { flex: 2; }
.qty-input { flex: 1; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
    background: #fff; border-top: 1px solid var(--glass-border);
    display: flex; justify-content: space-around; align-items: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 900;
}
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-muted); font-size: 0.75rem; gap: 4px; font-weight: 500;}
.nav-item.active { color: var(--primary); }
.nav-item .icon { font-size: 1.3rem; }

.mb-3 { margin-bottom: 1rem; } .mt-3 { margin-top: 1rem; }
.status-text { font-size: 0.85rem; color: var(--secondary); margin-top: 5px; font-weight: 500; }

.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #10b981; color: white; padding: 12px 20px; border-radius: 8px;
    font-weight: 600; z-index: 1000; transition: opacity 0.3s; box-shadow: var(--shadow);
}
.toast.hidden { opacity: 0; pointer-events: none; }
.image-preview { width: 100%; max-height: 200px; object-fit: cover; margin-top: 10px; border-radius: 8px; display: none; }

/* List Reports */
.report-card { border-left: 4px solid var(--secondary); padding: 15px; margin-bottom: 15px; background: #fff; border-radius: 8px; box-shadow: var(--shadow);}
.report-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-weight: bold;}
.report-date { font-size: 0.8rem; color: var(--text-muted); }
