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

:root {
    --primary: #8B1A4A;
    --primary-light: #A93366;
    --primary-dark: #6D1038;
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --bg: #F5F0EB;
    --card: #FFFFFF;
    --text: #2D2D2D;
    --text-light: #777;
    --border: #E0D8D0;
    --success: #2E7D32;
    --danger: #C62828;
    --whatsapp: #25D366;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 10px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}
.header-logo {
    height: 48px;
    width: auto;
    border-radius: 6px;
    background: white;
    padding: 3px 8px;
}
.header-text { flex: 1; }
.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.header-subtitle {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.3px;
}
.btn-icon {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-icon:active { background: rgba(255,255,255,0.15); }

/* Quick Menu */
.quick-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 150;
}
.quick-menu-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
}
.quick-menu-panel {
    position: absolute;
    top: 60px;
    right: 12px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 200px;
    overflow: hidden;
}
.quick-menu-panel button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.quick-menu-panel button:last-child { border-bottom: none; }
.quick-menu-panel button:active { background: var(--bg); }
.quick-menu-panel button svg { color: var(--primary); flex-shrink: 0; }

/* Screens */
.screen {
    display: none;
    padding: 16px;
    padding-bottom: 100px;
    max-width: 600px;
    margin: 0 auto;
}
.screen.active { display: block; }

.screen-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.screen-title h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
}
.order-num {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(139,26,74,0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.btn-back {
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text);
}
.btn-back:active { background: var(--border); }

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:active { background: var(--primary-dark); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.btn-secondary:active { background: var(--bg); }

.btn-large {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--whatsapp);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-whatsapp:active { background: #1DA851; }

.btn-scan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px;
    background: var(--gold);
    color: var(--text);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-scan:active { background: var(--gold-light); }
.scan-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.btn-manual {
    padding: 14px 16px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.btn-manual:active { background: var(--bg); }

/* Dashboard */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dashboard-header h2 { font-size: 22px; }

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.search-bar {
    margin-bottom: 12px;
}
.search-bar input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: white;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.order-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.1s;
    border-left: 4px solid var(--primary);
}
.order-card:active { transform: scale(0.98); }
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.order-card-num {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}
.order-card-total {
    font-weight: 700;
    font-size: 15px;
}
.order-card-customer {
    font-size: 15px;
    font-weight: 500;
}
.order-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    flex-wrap: wrap;
}
.order-card-balance {
    color: var(--danger);
    font-weight: 600;
}

.dashboard-actions {
    text-align: center;
    padding: 16px 0;
}

/* Photo capture */
.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    gap: 8px;
    overflow: hidden;
    position: relative;
}
.photo-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}
.photo-preview.has-photo {
    border-style: solid;
    border-color: var(--success);
    min-height: auto;
}
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.photos-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}
.photo-thumb-wrap {
    position: relative;
}
.photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(198, 40, 40, 0.85);
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-subtotal {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    padding: 8px 0 4px;
    border-top: 1.5px solid var(--border);
    margin-top: 4px;
}

/* Multiplier bar */
.multiplier-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    padding: 10px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 8px;
    cursor: pointer;
}
.multiplier-bar label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.multiplier-bar strong {
    font-size: 18px;
    color: var(--primary);
}
.mult-edit-hint {
    font-size: 11px;
    color: var(--text-light);
}
.multiplier-editor {
    background: var(--card);
    padding: 10px 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    margin-top: -8px;
    margin-bottom: 12px;
}
.multiplier-options {
    display: flex;
    gap: 6px;
    align-items: center;
}
.mult-btn {
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.mult-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.mult-input {
    width: 60px;
    padding: 6px 8px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Scan section */
.scan-section {
    margin-bottom: 12px;
}

/* Search results */
.search-results {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.search-result-item:active { background: var(--bg); }
.search-result-item:last-child { border-bottom: none; }
.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}
.search-result-img.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-barcode {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.search-result-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* Order sections */
.order-section {
    margin-bottom: 8px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--card);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.section-header h3 {
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.item-count {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}
.items-list {
    background: var(--card);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

/* Order item */
.order-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.order-item:last-child { border-bottom: none; }
.order-item-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}
.order-item-details {
    flex: 1;
    min-width: 0;
}
.order-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.order-item-top > div:first-child {
    min-width: 0;
    overflow: hidden;
}
.order-item-barcode {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}
.order-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.order-item-price {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.order-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:active { background: var(--border); }
.qty-value {
    width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: white;
    padding: 4px;
}
.stock-toggle {
    display: flex;
    gap: 4px;
}
.stock-btn {
    padding: 4px 8px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.stock-btn.active-stock { background: var(--success); color: white; border-color: var(--success); }
.stock-btn.active-order { background: var(--gold); color: var(--text); border-color: var(--gold); }
.order-item-note {
    width: 100%;
    margin-top: 4px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    resize: none;
}
.btn-edit-item {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
}
.btn-edit-item:active { opacity: 1; }
.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
}
.btn-remove:active { opacity: 1; }
.edit-item-photo-preview {
    width: 100%;
    height: 160px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    overflow: hidden;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}
.edit-item-photo-preview.has-photo {
    border-style: solid;
    border-color: var(--primary);
}
.edit-item-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Screen footer */
.screen-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 50;
    max-width: 600px;
    margin: 0 auto;
}
.order-quick-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}
.share-buttons {
    display: flex;
    gap: 8px;
}
.share-buttons .btn-primary,
.share-buttons .btn-whatsapp,
.share-buttons .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
    font-size: 14px;
}

/* Summary */
.summary-customer {
    font-size: 14px;
    line-height: 1.6;
}
.summary-customer strong { color: var(--primary); }
.summary-items {
    font-size: 14px;
}
.summary-item {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    gap: 4px 8px;
}
.summary-item:last-child { border-bottom: none; }
.summary-item-name { flex: 1; min-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item-qty { color: var(--text-light); min-width: 40px; text-align: center; }
.summary-item-price { font-weight: 600; min-width: 70px; text-align: right; }
.summary-item-ws { font-size: 11px; color: var(--text-light); }
.summary-item-note { font-size: 12px; color: var(--primary); font-style: italic; width: 100%; }

.summary-totals { margin-top: 8px; }
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}
.total-row input {
    width: 120px;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
    font-family: inherit;
}
.total-row select {
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}
.grand-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 4px;
    padding-top: 10px;
}
.balance-due {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
}
.scanner-modal #scannerView {
    width: 100%;
    aspect-ratio: 4/3;
    background: black;
}
.scanner-status {
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}
.scanner-manual {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
}
.scanner-manual input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.scanner-manual button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* View order */
#viewOrderContent .card { margin-bottom: 10px; }

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.empty-state svg { opacity: 0.3; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* Utility */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

/* OCR status */
.ocr-status {
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Crop modal */
.crop-modal { max-height: 95vh; }
.crop-container {
    position: relative;
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    touch-action: none;
}
.crop-container img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}
.crop-box {
    position: absolute;
    border: 2px solid white;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    cursor: move;
    min-width: 40px;
    min-height: 40px;
}
.crop-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    justify-content: flex-end;
}

@media (min-width: 601px) {
    .screen { padding: 24px; max-width: 800px; }
    .screen-footer { left: 50%; transform: translateX(-50%); max-width: 800px; }
    .summary-item-name { max-width: 50%; }
}
@media (min-width: 1024px) {
    .screen { max-width: 900px; }
    .screen-footer { max-width: 900px; }
    .order-item-name { font-size: 13px; }
    .search-result-name { font-size: 13px; }
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.login-logo {
    height: 72px;
    width: auto;
    border-radius: 10px;
    margin-bottom: 12px;
}
.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.login-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login-form input, .login-setup input {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.login-form input:focus, .login-setup input:focus {
    border-color: var(--primary);
}
.login-btn {
    padding: 13px !important;
    font-size: 16px !important;
    width: 100%;
    border-radius: var(--radius) !important;
    margin-top: 4px;
}
.login-error {
    color: var(--danger);
    font-size: 13px;
    min-height: 18px;
}
.login-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}

/* Dashboard filters */
.dashboard-filters {
    margin-bottom: 12px;
}
.filter-row {
    display: flex;
    gap: 8px;
}
.filter-row input, .filter-row select {
    flex: 1;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: white;
}
.dashboard-stats .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.dashboard-stats .stat-card {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.dashboard-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.dashboard-stats .stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User info in quick menu */
.quick-menu-user {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
