/* ═══════════════════════════════════════════
   CHALÔ DASHBOARD — Premium Design System 
   ═══════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --navy: #0a2540;
  --navy-light: #16385c;
  --navy-dark: #051628;
  --gold: #c9a84c;
  --gold-light: #e2c878;
  --gold-dark: #a38230;
  --cream: #fdfbf7;
  --cream-light: #fffefb;
  
  /* Layout Colors */
  --background: #f7f9fc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.75);
  
  /* Text */
  --text-main: #2c3e50;
  --text-muted: #8392a5;
  --border: #e8ecf1;
  
  /* State Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-color: #ef4444;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Soft Premium Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(10, 37, 64, 0.05), 0 2px 4px -1px rgba(10, 37, 64, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(10, 37, 64, 0.05), 0 4px 6px -2px rgba(10, 37, 64, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(10, 37, 64, 0.1), 0 10px 10px -5px rgba(10, 37, 64, 0.04);
  
  /* Fluid Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════ GLOBAL ANIMATIONS ═══════════════ */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════ LOGIN SCREEN ═══════════════ */
.login-screen {
  position: fixed;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1617038220319-276d3cfab638?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 22, 40, 0.95) 0%, rgba(10, 37, 64, 0.8) 100%);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 440px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-card p.subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 36px;
  font-weight: 300;
}

.login-card .input-group {
  text-align: left;
  margin-bottom: 24px;
}

.login-card label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.login-card input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-card input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.btn-primary.w-100 {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ═══════════════ DASHBOARD LAYOUT ═══════════════ */
.dashboard-container {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar (Glassmorphism) */
.sidebar {
  width: 270px;
  background: rgba(5, 22, 40, 0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  position: fixed;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
  padding: 0 12px 30px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header .logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  margin-top: 30px;
  flex: 1;
}

.menu-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-left: 12px;
  font-weight: 500;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.menu-item:hover, .menu-item.active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  transform: translateX(4px);
}

.menu-item i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Content */
.main-content {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}

/* Top Header */
.top-header {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 80px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(232, 236, 241, 0.5);
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Sidebar Search (Mobile & Desktop) */
.sidebar-search {
  position: relative;
  margin: 0 16px 20px 16px;
}

.sidebar-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.sidebar-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.search-bar input:focus + i {
  color: var(--gold);
}

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  color: var(--navy);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Views Container */
.views-container {
  padding: 40px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* Staggered Animations for items */
.view.active .stat-card:nth-child(1) { animation: fadeUpIn 0.5s ease-out 0.1s both; }
.view.active .stat-card:nth-child(2) { animation: fadeUpIn 0.5s ease-out 0.2s both; }
.view.active .stat-card:nth-child(3) { animation: fadeUpIn 0.5s ease-out 0.3s both; }
.view.active .stat-card:nth-child(4) { animation: fadeUpIn 0.5s ease-out 0.4s both; }
.view.active .sector:nth-child(1) { animation: fadeUpIn 0.6s ease-out 0.2s both; }
.view.active .sector:nth-child(2) { animation: fadeUpIn 0.6s ease-out 0.3s both; }
.view.active .kanban-column:nth-child(1) { animation: fadeUpIn 0.5s ease-out 0.1s both; }
.view.active .kanban-column:nth-child(2) { animation: fadeUpIn 0.5s ease-out 0.2s both; }
.view.active .kanban-column:nth-child(3) { animation: fadeUpIn 0.5s ease-out 0.3s both; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.gold-accent::before { background: var(--gold); }
.stat-card.warning-accent::before { background: var(--warning); }
.stat-card.danger-accent::before { background: var(--danger); }

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-header h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.stat-header i {
  font-size: 1.4rem;
  color: var(--navy-light);
  background: var(--background);
  padding: 10px;
  border-radius: 12px;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

.stat-trend {
  font-size: 0.85rem;
  font-weight: 500;
}

.stat-trend.positive { color: var(--success); }
.stat-trend.neutral { color: var(--text-muted); }

/* Sector & Tables */
.dashboard-sectors {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.sector {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  min-width: 0;
  max-width: 100%;
}

.sector:hover {
  box-shadow: var(--shadow-md);
}

.sector.full-width {
  grid-column: 1 / -1;
}

.mt-4 { margin-top: 32px; }

.sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sector-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-primary i {
  color: var(--gold);
  transition: var(--transition-fast);
}

.btn-primary:hover i {
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-outline:hover {
  background: var(--background);
  border-color: var(--text-muted);
}

.btn-danger {
  background: #ef4444 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
}

.btn-danger i {
  color: #ffffff !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

.btn-danger:hover i {
  color: #ffffff !important;
}

.btn-success {
  background: #10b981 !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
}

.btn-success i {
  color: #ffffff !important;
}

.btn-success:hover {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-success:hover i {
  color: #ffffff !important;
}

/* Data Table */
.table-responsive {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table th {
  background: var(--background);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
}

.data-table th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.data-table th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.data-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: rgba(244, 246, 249, 0.5);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
}

.badge.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge.neutral { background: rgba(131, 146, 165, 0.1); color: var(--text-muted); }

/* ═══════════════ KANBAN BOARD ═══════════════ */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .kanban-board { grid-template-columns: 1fr; }
  .dashboard-sectors { grid-template-columns: 1fr; }
}

.kanban-column {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 400px;
  border: 1px solid var(--border);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(232, 236, 241, 0.8);
}

.kanban-column-header h4 {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-aprovado h4 i { color: var(--success); }
.column-preparacao h4 i { color: var(--warning); }
.column-retirada h4 i { color: var(--navy-light); }

.column-count {
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.kanban-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: var(--transition-smooth);
}

.kanban-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.4);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.6;
  transform: scale(0.95);
  box-shadow: none;
}

.kanban-card.kanban-card-chosen {
  transform: scale(1.02) rotate(1deg);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  z-index: 10;
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.card-body strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 600;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ═══════════════ PRODUCT MODAL (POP-UP) ═══════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
  z-index: 1001;
  display: none;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes scaleIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 600;
}

.modal-close {
  background: var(--background);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

.modal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--background);
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Custom Checkbox */
.form-checkbox-group {
  margin-top: 10px;
  margin-bottom: 20px;
}

.custom-checkbox-container {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0 !important;
  vertical-align: middle;
}

.custom-checkbox-container input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-checkbox-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  box-sizing: border-box;
  flex-shrink: 0;
}

.custom-checkbox-container:hover .custom-checkbox-box {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.custom-checkbox-container input[type="checkbox"]:checked + .custom-checkbox-box {
  background-color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25);
}

.custom-checkbox-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0;
  cursor: pointer;
  line-height: 1.2;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ═══════════════ MOBILE RESPONSIVENESS ═══════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 22, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
  }

  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-search {
    display: none;
  }

  .kanban-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .kanban-column {
    min-width: 0;
    height: 400px;
    display: flex;
    flex-direction: column;
    padding: 12px;
  }
  
  .kanban-column:nth-child(1) {
    grid-column: 1 / -1;
  }
  
  .kanban-card {
    min-width: 0;
    word-break: break-word;
    padding: 12px;
  }

  .kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
  }
  
  /* Scrollbar styles for mobile kanban cards */
  .kanban-cards::-webkit-scrollbar {
    width: 4px;
  }
  .kanban-cards::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
}

@media (max-width: 768px) {
  .top-header {
    height: 70px;
    padding: 0 20px;
  }
  
  .page-title {
    font-size: 1.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
  }
  
  .header-actions {
    gap: 12px;
  }
  
  .views-container {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 20px 16px;
  }
  
  .stat-header {
    font-size: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  /* Kanban adjustments for very small screens */
  .kanban-column-header h4 {
    font-size: 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header h3 {
    font-size: 1.4rem;
  }
  
  .table-container {
    overflow-x: auto;
  }
}
