* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
.glass-effect { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 28px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.container { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }
.auth-card { background: rgba(255, 255, 255, 0.98); border-radius: 32px; padding: 32px 24px; max-width: 500px; width: 100%; box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2); animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.logo-area { text-align: center; margin-bottom: 24px; }
.logo-area i { font-size: 48px; color: #667eea; }
.auth-tabs { display: flex; gap: 12px; margin-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.tab-btn { padding: 12px; flex: 1; background: none; border: none; font-weight: 600; cursor: pointer; color: #64748b; transition: 0.3s; }
.tab-btn.active { color: #667eea; border-bottom: 2px solid #667eea; }
.auth-tab { display: none; animation: fadeIn 0.4s; }
.auth-tab.active { display: block; }
.form-group { display: flex; align-items: center; gap: 12px; background: #f8fafc; border-radius: 20px; padding: 8px 16px; margin-bottom: 16px; border: 1px solid #e2e8f0; transition: 0.2s; }
.form-group:focus-within { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.2); }
.form-group i { color: #94a3b8; width: 24px; }
.form-group input, .form-group textarea { border: none; background: transparent; width: 100%; font-size: 1rem; outline: none; }
.btn { padding: 14px 24px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.4); }
.btn-block { width: 100%; justify-content: center; display: flex; gap: 8px; }
.message { margin-top: 16px; padding: 12px; border-radius: 16px; text-align: center; }
.message.success { background: #dcfce7; color: #166534; }
.message.error { background: #fee2e2; color: #991b1b; }
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 280px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 2px 0 12px rgba(0,0,0,0.05); transition: transform 0.3s ease; position: fixed; height: 100%; z-index: 100; overflow-y: auto; }
.main-content { flex: 1; margin-left: 280px; padding: 24px; transition: margin 0.3s; }
.mobile-menu-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 101; background: white; padding: 12px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; }
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-toggle { display: block; }
}
.store-brand { padding: 24px; text-align: center; font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid #e2e8f0; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: #475569; text-decoration: none; transition: 0.2s; }
.nav-menu a:hover, .nav-menu a.active { background: #f1f5f9; color: #667eea; border-left: 3px solid #667eea; }
.logout-btn { margin-top: auto; padding: 20px; border-top: 1px solid #e2e8f0; }
.logout-btn a { display: flex; align-items: center; gap: 12px; color: #dc2626; text-decoration: none; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; padding: 16px 24px; background: rgba(255,255,255,0.95); border-radius: 28px; backdrop-filter: blur(10px); }
.tab-pane { display: none; animation: fadeIn 0.4s; }
.tab-pane.active { display: block; }
.material-card { background: rgba(255,255,255,0.95); border-radius: 28px; padding: 24px; margin-bottom: 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: 0.3s; backdrop-filter: blur(10px); }
.material-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.kpi-card { background: linear-gradient(135deg, #ffffff, #f8f9ff); border-radius: 24px; padding: 20px; text-align: center; transition: 0.3s; cursor: pointer; }
.kpi-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px; text-align: left; border-bottom: 1px solid #edf2f7; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-warning { background: #fef3c7; color: #d97706; animation: pulse 2s infinite; }
.badge-danger { background: #fee2e2; color: #dc2626; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.4); } 70% { box-shadow: 0 0 0 10px rgba(102,126,234,0); } 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar input, .filter-bar select { flex: 1; min-width: 120px; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .pos-grid { grid-template-columns: 1fr; } }
.bulk-row { display: flex; gap: 8px; margin-top: 8px; }
#currentCart div { padding: 8px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.cart-footer { margin-top: 16px; border-top: 2px solid #e2e8f0; padding-top: 16px; display: flex; gap: 12px; align-items: center; }
#searchResults div { padding: 12px; border: 1px solid #e2e8f0; margin: 8px 0; border-radius: 16px; cursor: pointer; transition: 0.2s; }
#searchResults div:hover { background: #f1f5f9; transform: scale(1.01); }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: rgba(255,255,255,0.98); border-radius: 32px; padding: 32px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; backdrop-filter: blur(10px); }
.toast { position: fixed; bottom: 24px; right: 24px; background: #1f2937; color: white; padding: 12px 24px; border-radius: 100px; z-index: 1500; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }