/* TexERP - Bhagwati Impex - Gold-Silver Jewellery Manufacturing ERP */
:root {
    --primary: #D4A843;
    --primary-dark: #b8912e;
    --primary-light: #f0dca8;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --dark-medium: #0f3460;
    --bg: #f5f5f7;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 60px;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* App Layout */
.app-layout { display: flex; min-height: 100vh; }
.main-wrapper { flex: 1; margin-left: var(--sidebar-width); transition: var(--transition); min-height: 100vh; display: flex; flex-direction: column; }
.app-layout.sidebar-collapsed .main-wrapper { margin-left: var(--sidebar-collapsed); }

/* Sidebar */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width); background: var(--dark);
    color: #ccc; z-index: 100; transition: var(--transition);
    overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
}
.app-layout.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }

.sidebar-brand {
    padding: 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1); min-height: 70px;
}
.sidebar-brand .brand-icon {
    width: 36px; height: 36px; background: var(--primary);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--dark); font-size: 16px; flex-shrink: 0;
}
.sidebar-brand .brand-text { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; transition: var(--transition); }
.app-layout.sidebar-collapsed .sidebar-brand .brand-text { opacity: 0; width: 0; overflow: hidden; }

.sidebar-nav { flex: 1; padding: 10px 0; }

.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 20px;
    color: #adb5bd; text-decoration: none; transition: var(--transition);
    cursor: pointer; border: none; background: none; width: 100%; font-size: 13px; font-family: var(--font);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--primary); background: rgba(212,168,67,0.1); border-right: 3px solid var(--primary); }
.nav-link .nav-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 16px; }
.nav-link .nav-text { white-space: nowrap; transition: var(--transition); }
.nav-link .nav-arrow { margin-left: auto; transition: transform 0.3s; font-size: 10px; }
.nav-link .nav-arrow.open { transform: rotate(90deg); }
.app-layout.sidebar-collapsed .nav-link .nav-text,
.app-layout.sidebar-collapsed .nav-link .nav-arrow { opacity: 0; width: 0; overflow: hidden; }

.nav-submenu {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.15);
}
.nav-submenu.open { max-height: 500px; }
.nav-submenu .nav-link { padding-left: 52px; font-size: 12.5px; }

.nav-section-title {
    padding: 15px 20px 5px; font-size: 11px; text-transform: uppercase;
    letter-spacing: 1px; color: #666; font-weight: 600;
}
.app-layout.sidebar-collapsed .nav-section-title { display: none; }

/* Header */
.top-header {
    position: sticky; top: 0; z-index: 90; height: var(--header-height);
    background: var(--white); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 24px; gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-toggle {
    background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 6px 10px; cursor: pointer; font-size: 18px; color: var(--text);
    transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--bg); border-color: var(--primary); }
.header-title { font-size: 16px; font-weight: 600; color: var(--dark); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.branch-select {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; background: var(--white); color: var(--text); cursor: pointer;
    outline: none; transition: var(--transition);
}
.branch-select:focus { border-color: var(--primary); }

.notification-bell {
    position: relative; cursor: pointer; font-size: 20px; padding: 4px;
    transition: var(--transition);
}
.notification-bell:hover { transform: scale(1.1); }
.notif-count {
    position: absolute; top: -4px; right: -6px; background: var(--danger);
    color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 10px;
    min-width: 18px; text-align: center; font-weight: 600;
}
.notif-count:empty, .notif-count[data-count="0"] { display: none; }

.user-menu {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 4px 8px; border-radius: var(--radius-sm); transition: var(--transition);
}
.user-menu:hover { background: var(--bg); }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark); font-weight: 700; font-size: 13px;
}
.user-name { font-size: 13px; font-weight: 500; }

/* Main Content */
.main-content {
    flex: 1; padding: 24px; transition: opacity 0.15s ease, transform 0.15s ease;
}
.page-enter { opacity: 0; transform: translateY(8px); }
.page-enter-active { opacity: 1; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease; }
.page-exit { opacity: 0; transform: translateY(-4px); transition: opacity 0.12s ease; }

/* Page Header */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--dark); }
.page-subtitle { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; }

/* Cards */
.card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--border-light); transition: var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 15px;
}
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border-light); background: #fafafa; }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); border-left: 4px solid var(--primary);
    transition: var(--transition); cursor: pointer;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.info { border-left-color: var(--info); }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--dark); line-height: 1.2; }
.stat-card .stat-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border: none; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition);
    text-decoration: none; font-family: var(--font); line-height: 1.5;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover:not(:disabled) { background: #545b62; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #218838; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c82333; }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-outline {
    background: transparent; border: 1px solid var(--border); color: var(--text);
}
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { padding: 6px 10px; }
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
.btn-group { display: flex; gap: 0; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Forms */
.form-group { margin-bottom: 16px; position: relative; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font);
    transition: var(--transition); background: var(--white); color: var(--text);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 11px; color: var(--danger); margin-top: 3px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* Tables */
.table-container { overflow-x: auto; border-radius: var(--radius-sm); }
.data-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table thead th {
    background: #f8f9fa; padding: 12px 16px; text-align: left;
    font-weight: 600; color: var(--text-light); border-bottom: 2px solid var(--border);
    white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: default; user-select: none;
}
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { color: var(--primary); }
.data-table thead th .sort-icon { margin-left: 4px; font-size: 10px; }
.data-table tbody td {
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #f8f9fc; }
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table tbody tr:nth-child(even):hover { background: #f0f2f5; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .actions { white-space: nowrap; }
.data-table .actions .btn { margin-right: 4px; }

.table-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; gap: 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border-light);
}
.table-search {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 12px; background: var(--white); transition: var(--transition);
}
.table-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.table-search input {
    border: none; outline: none; padding: 8px 0; font-size: 13px;
    font-family: var(--font); min-width: 200px;
}
.table-search .search-icon { color: var(--text-muted); }
.table-filters { display: flex; gap: 8px; align-items: center; }
.table-filters select { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; }

.table-pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; font-size: 13px; color: var(--text-light);
    border-top: 1px solid var(--border-light);
}
.pagination-info { font-size: 12px; }
.pagination-buttons { display: flex; gap: 4px; }
.pagination-buttons button {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: var(--white); cursor: pointer; font-size: 12px; transition: var(--transition);
}
.pagination-buttons button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-buttons button.active { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.pagination-buttons button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Badges */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-draft { background: #e9ecef; color: #495057; }
.badge-confirmed, .badge-blue { background: #d1ecf1; color: #0c5460; }
.badge-progress, .badge-yellow { background: #fff3cd; color: #856404; }
.badge-done, .badge-success, .badge-green { background: #d4edda; color: #155724; }
.badge-closed, .badge-dark { background: #343a40; color: #fff; }
.badge-danger, .badge-red { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-dialog {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    width: 90%; max-width: 600px; max-height: 85vh; overflow: hidden;
    display: flex; flex-direction: column;
    transform: scale(0.95) translateY(10px); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-dialog { transform: scale(1) translateY(0); }
.modal-dialog.modal-lg { max-width: 900px; }
.modal-dialog.modal-sm { max-width: 400px; }
.modal-header {
    padding: 16px 24px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 600; }
.modal-close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--text-light); transition: var(--transition); line-height: 1; padding: 0 4px;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 12px 24px; border-top: 1px solid var(--border-light);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* Toast Notifications */
#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
    background: var(--white); border-radius: var(--radius-sm); padding: 12px 20px;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    min-width: 300px; max-width: 450px; pointer-events: auto;
    transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--success);
}
.toast.show { transform: translateX(0); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info { border-left-color: var(--info); }
.toast .toast-icon { font-size: 18px; flex-shrink: 0; }
.toast .toast-message { font-size: 13px; flex: 1; }
.toast .toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 0; }

/* Loader */
.loader-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.8);
    z-index: 3000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.loader-overlay.active { opacity: 1; pointer-events: auto; }
.loader-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs); min-height: 16px;
}
.skeleton-row { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.skeleton-cell { flex: 1; height: 16px; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-card { padding: 20px; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--border-light); margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--text-light); transition: var(--transition); font-family: var(--font);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
    border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .timeline-date { font-size: 11px; color: var(--text-muted); }
.timeline-item .timeline-content { font-size: 13px; margin-top: 2px; }

/* Grid helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex helpers */
.flex { display: flex; } .flex-center { align-items: center; } .flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }

/* Spacing */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; } .p-20 { padding: 20px; } .p-24 { padding: 24px; }

/* Text helpers */
.text-center { text-align: center; } .text-right { text-align: right; }
.text-muted { color: var(--text-muted); } .text-success { color: var(--success); }
.text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.text-primary { color: var(--primary); } .text-sm { font-size: 12px; } .text-lg { font-size: 16px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }

/* Quick Actions */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-action-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
    font-size: 13px; font-weight: 500; color: var(--text);
}
.quick-action-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.quick-action-btn .qa-icon { font-size: 18px; }

/* Empty State */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 15px; }

/* Tree View */
.tree-item { padding-left: 20px; }
.tree-item-header {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border-radius: var(--radius-xs); cursor: pointer; transition: var(--transition);
}
.tree-item-header:hover { background: #f0f2f5; }
.tree-toggle { width: 16px; text-align: center; font-size: 10px; transition: transform 0.2s; }
.tree-toggle.open { transform: rotate(90deg); }
.tree-children { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tree-children.open { max-height: 2000px; }

/* Alert boxes */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Scan input */
.scan-input-wrapper {
    position: relative; background: var(--dark); border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; gap: 16px;
}
.scan-input {
    flex: 1; padding: 14px 20px; font-size: 18px; border: 2px solid var(--primary);
    border-radius: var(--radius-sm); background: var(--white); outline: none;
    font-family: 'Courier New', monospace; letter-spacing: 2px;
    transition: var(--transition);
}
.scan-input:focus { box-shadow: 0 0 0 4px rgba(212,168,67,0.3); }
.scan-status { color: var(--primary); font-size: 13px; font-weight: 500; }

/* Price breakdown */
.price-breakdown { font-size: 13px; }
.price-breakdown .price-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.price-breakdown .price-row.total { font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--dark); margin-top: 4px; padding-top: 8px; }
.price-breakdown .price-label { color: var(--text-light); }
.price-breakdown .price-value { font-weight: 500; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Login Page */
.login-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark-medium) 100%);
}
.login-card {
    background: var(--white); border-radius: var(--radius); padding: 40px;
    width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand .brand-logo {
    width: 64px; height: 64px; margin: 0 auto 12px; background: var(--primary);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: var(--dark);
}
.login-brand h1 { font-size: 22px; color: var(--dark); }
.login-brand p { font-size: 13px; color: var(--text-light); }
.login-error { background: #f8d7da; color: #721c24; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; display: none; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%); z-index: 200;
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 199; display: none;
    }
    .sidebar-backdrop.active { display: block; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12 { grid-column: span 1; }
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
    .sidebar, .top-header, .page-actions, .table-toolbar, .table-pagination, .btn { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .main-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
