/* style.css - C:\Users\Admin\.gemini\antigravity\scratch\garage-manager\style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #060913;
  --bg-gradient: radial-gradient(circle at top right, #1e1b4b, #030712 60%);
  --panel-bg: rgba(15, 23, 42, 0.55);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Accent neon colors */
  --color-primary: #06b6d4;     /* Electric Cyan */
  --color-primary-glow: rgba(6, 182, 212, 0.35);
  --color-success: #10b981;     /* Emerald Green */
  --color-success-glow: rgba(16, 185, 129, 0.3);
  --color-warning: #f59e0b;     /* Amber Orange */
  --color-warning-glow: rgba(245, 158, 11, 0.3);
  --color-danger: #f43f5e;      /* Rose Red */
  --color-danger-glow: rgba(244, 63, 94, 0.3);
  --color-purple: #8b5cf6;      /* Violet */
  --color-purple-glow: rgba(139, 92, 246, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --sidebar-width: 280px;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism Panel Class */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--panel-glow);
  transition: var(--transition-normal);
}

/* App Container */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--panel-border);
  background: rgba(10, 15, 28, 0.7);
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.05);
}

.nav-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header Area */
.header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--panel-border);
}

.header-title h1 {
  font-size: 1.75rem;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-dark);
  box-shadow: 0 4px 14px var(--color-primary-glow);
}
.btn-primary:hover {
  background: #22d3ee;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--color-success);
  color: var(--text-dark);
  box-shadow: 0 4px 14px var(--color-success-glow);
}
.btn-success:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--text-main);
  box-shadow: 0 4px 14px var(--color-danger-glow);
}
.btn-danger:hover {
  background: #fb7185;
  transform: translateY(-1px);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
}

/* Tabs Content View (Hidden by default) */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stats-card.primary::before { background: var(--color-primary); }
.stats-card.success::before { background: var(--color-success); }
.stats-card.warning::before { background: var(--color-warning); }
.stats-card.danger::before { background: var(--color-danger); }

.stats-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-value {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.stats-card.primary .stats-icon { color: var(--color-primary); background: rgba(6, 182, 212, 0.1); }
.stats-card.success .stats-icon { color: var(--color-success); background: rgba(16, 185, 129, 0.1); }
.stats-card.warning .stats-icon { color: var(--color-warning); background: rgba(245, 158, 11, 0.1); }
.stats-card.danger .stats-icon { color: var(--color-danger); background: rgba(244, 63, 94, 0.1); }

/* Dashboard Columns */
.dashboard-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.section-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tables styling */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.875rem;
  color: var(--text-main);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-info { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Quick Status List */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
}

.status-info-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.car-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.car-details h4 {
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.car-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Forms styling */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

input, select, textarea {
  background: rgba(10, 15, 28, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Digital Scan Section in Intake */
.scan-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px dashed rgba(6, 182, 212, 0.3);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.scan-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; text-shadow: 0 0 15px var(--color-primary-glow); }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Detail views / Vehicle Cards in list */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vehicle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.plate-number {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-block;
  font-family: monospace;
}

.vin-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 0.35rem;
}

.vehicle-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
}

.info-label {
  color: var(--text-muted);
}

.info-value {
  font-weight: 500;
}

.vehicle-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.vehicle-card-actions .btn {
  flex: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-danger);
}

/* Detail Sections inside Repair Detail modal */
.repair-step-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.repair-step-section h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.parts-selector-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.parts-list-items {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
}

.part-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.part-item-row:last-child {
  border-bottom: none;
}

.part-item-info {
  display: flex;
  flex-direction: column;
}

.part-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.part-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.selected-parts-table {
  width: 100%;
  margin-top: 0.5rem;
}

.selected-parts-table th, .selected-parts-table td {
  padding: 0.5rem;
}

/* Labor Rate Form Styles */
.labor-rate-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.labor-rate-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: var(--transition-fast);
}

.labor-rate-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.labor-rate-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--color-purple);
  color: var(--color-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.labor-inputs-pane {
  display: none;
  background: rgba(0, 0, 0, 0.15);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 0.5rem;
}

.labor-inputs-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Invoice Bill Print Layout (Styled inside modal) */
.invoice-print {
  background: #ffffff;
  color: #1e293b;
  padding: 2.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: width 0.3s ease;
  margin: 0 auto;
}

/* Khổ in A4 / A5 */
.invoice-print.print-a4 {
  width: 100%;
  max-width: 760px;
  min-height: 900px;
}

.invoice-print.print-a5 {
  width: 100%;
  max-width: 740px;
  min-height: 500px;
  font-size: 0.8rem !important;
  padding: 1.5rem !important;
}
.invoice-print.print-a5 td, .invoice-print.print-a5 th {
  padding: 0.4rem !important;
}

.invoice-print h2, .invoice-print h3, .invoice-print h4 {
  color: #0f172a;
}

.invoice-print-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.invoice-company-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #0f172a;
}

.invoice-title {
  text-align: right;
}

.invoice-title h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.invoice-print-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.invoice-print-info div p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.invoice-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.invoice-print-table th {
  background: #f1f5f9;
  color: #475569;
  border-bottom: 2px solid #cbd5e1;
  padding: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.invoice-print-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem;
  color: #334155;
}

.invoice-total-row {
  display: flex;
  justify-content: flex-end;
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 2px solid #cbd5e1;
  padding-top: 1rem;
}

.invoice-total-row span {
  width: 200px;
  text-align: right;
}

.invoice-signature {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.invoice-signature-box {
  text-align: center;
  width: 200px;
}

.invoice-signature-box p:last-child {
  margin-top: 4rem;
  font-weight: 600;
}

/* Material Disassembly List UI */
.disassembled-part-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.disassembled-part-row input {
  flex: 2;
}

.disassembled-part-row select {
  flex: 1.5;
}

/* Dynamic category list configuration rows in tab inventory */
#category-manager-container ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
#category-manager-container ul li:hover {
  background: rgba(255,255,255,0.02);
}

/* Interactive Cầu nâng (Car lifts) status grid for dashboard */
.lifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lift-card {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lift-status-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lift-card.occupied .lift-status-icon {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-danger);
}

.lift-card.free .lift-status-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.lift-info h4 {
  font-size: 0.875rem;
}

.lift-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Simple Notification Banner */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  border: 1px solid transparent;
}

.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: #030712;
  border-color: #34d399;
}

.toast-info {
  background: rgba(6, 182, 212, 0.95);
  color: #030712;
  border-color: #22d3ee;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utility classes */
.flex-row-space {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-gap-1 {
  display: flex;
  gap: 0.5rem;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

.font-mono {
  font-family: monospace;
}

/* Custom Checkbox styles for filters */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--text-dark);
  border-color: var(--color-primary);
}

/* ==========================================
   PRINT STYLES (@media print)
   ========================================== */
@media print {
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
  }
  
  /* Ẩn hoàn toàn tất cả thành phần giao diện chính */
  .app-container,
  .sidebar,
  .main-content,
  .header-area,
  .btn,
  .modal-overlay:not(.active),
  .glass-panel:not(.invoice-print) {
    display: none !important;
  }

  /* Định hình lại Modal hoạt động để hiển thị in */
  .modal-overlay.active {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    z-index: auto !important;
  }

  .modal-content {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  /* Định dạng bản in A4 / A5 */
  .invoice-print {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .invoice-print.print-a4 {
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: always;
  }

  .invoice-print.print-a5 {
    width: 148mm !important;
    height: 210mm !important;
    page-break-after: always;
  }
}

/* Responsive grid layouts */
@media (max-width: 1024px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
  }
  .sidebar-logo {
    margin-bottom: 1.5rem;
  }
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .nav-link {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .labor-rate-options {
    grid-template-columns: repeat(2, 1fr);
  }
  #category-manager-container {
    grid-template-columns: 1fr !important;
  }
}

/* Feng Shui Themes */
body.theme-kim {
  --color-primary: #eab308;
  --color-primary-glow: rgba(234, 179, 8, 0.35);
  --bg-gradient: radial-gradient(circle at top right, #334155, #060913 60%);
}
body.theme-thuy {
  --color-primary: #06b6d4;
  --color-primary-glow: rgba(6, 182, 212, 0.35);
  --bg-gradient: radial-gradient(circle at top right, #1e1b4b, #060913 60%);
}
body.theme-moc {
  --color-primary: #10b981;
  --color-primary-glow: rgba(16, 185, 129, 0.35);
  --bg-gradient: radial-gradient(circle at top right, #064e3b, #060913 60%);
}
body.theme-hoa {
  --color-primary: #f43f5e;
  --color-primary-glow: rgba(244, 63, 94, 0.35);
  --bg-gradient: radial-gradient(circle at top right, #4c0519, #060913 60%);
}
body.theme-tho {
  --color-primary: #f59e0b;
  --color-primary-glow: rgba(245, 158, 11, 0.35);
  --bg-gradient: radial-gradient(circle at top right, #451a03, #060913 60%);
}

#tab-settings .glass-panel[onclick] {
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
#tab-settings .glass-panel[onclick]:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary) !important;
}
#tab-settings .glass-panel[onclick].active {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

