/* ============================================
   Dashboard Page - Modern Stílusok
   Elsys CO2 dizájn mintájára
   ============================================ */

/* ==================== WELCOME SECTION - Elsys stílus ==================== */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl, 16px);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
}

.welcome-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0 0 0.25rem 0;
}

.welcome-content p {
  color: #0369a1;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* ==================== QUICK ACTIONS - Elsys stílus ==================== */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary, #1a1a1a);
  min-width: 100px;
}

.quick-action-btn:hover {
  background: var(--bg-hover, #f3f4f6);
  border-color: var(--accent-primary, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.action-icon {
  font-size: 1.5rem;
}

.action-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==================== STATS GRID - Elsys stílus ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Gradient top border hover */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: var(--accent-primary, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary, #3b82f6) 0%, #2563eb 100%);
  border-radius: var(--radius-md, 10px);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  margin-bottom: 0.5rem;
}

.stat-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.stat-content p {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-align: center;
}

/* ✅ FONTOS: stat-status is középre */
.stat-status {
  font-size: 0.75rem;
  color: var(--text-tertiary, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;  /* ← KÖZÉPRE */
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.25rem;
  text-align: center;  /* ← KÖZÉPRE */
}

.stat-status.positive {
  color: var(--success, #10b981);
}

.stat-status.negative {
  color: var(--danger, #ef4444);
}

/* ==================== CONTENT GRIDS ==================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch; /* ✅ Egyforma magasságú box-ok egy sorban */
}

.content-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch; /* ✅ Egyforma magasságú box-ok egy sorban */
}

/* ==================== STATUS PANEL - Elsys stílus ==================== */
.status-panel,
.activity-panel,
.alerts-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  /* ✅ Fix magasság az egyenletes megjelenéshez */
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: 380px;
}

.status-panel::before,
.activity-panel::before,
.alerts-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-panel:hover::before,
.activity-panel:hover::before,
.alerts-panel:hover::before {
  opacity: 1;
}

.status-panel:hover,
.activity-panel:hover,
.alerts-panel:hover {
  border-color: var(--accent-primary, #3b82f6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.panel-header h3 {
  color: var(--text-primary, #1a1a1a);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-primary, #3b82f6);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: var(--radius-sm, 8px);
}

.btn-link:hover {
  color: var(--primary-dark, #2563eb);
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

/* ==================== STATUS LIST ==================== */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* ✅ Scrollozható lista - explicit beállítások */
  flex: 1;
  min-height: 0; /* ✅ FONTOS: flexbox scroll működéséhez */
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
}

/* ✅ Szép scrollbar */
.status-list::-webkit-scrollbar {
  width: 6px;
}

.status-list::-webkit-scrollbar-track {
  background: var(--bg-secondary, #f1f5f9);
  border-radius: 6px;
}

.status-list::-webkit-scrollbar-thumb {
  background: var(--border, #cbd5e1);
  border-radius: 6px;
}

.status-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary, #64748b);
}

/* Firefox scrollbar */
.status-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border, #cbd5e1) var(--bg-secondary, #f1f5f9);
}

.status-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-secondary, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 10px);
  transition: all 0.2s ease;
}

.status-item:hover {
  background: var(--bg-hover, #f3f4f6);
  border-color: var(--accent-primary, #3b82f6);
  transform: translateX(4px);
}

.status-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.status-icon {
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-icon.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success, #10b981);
}

.status-icon.offline {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-tertiary, #9ca3af);
}

.status-details {
  flex: 1;
  min-width: 0;
}

.status-name {
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-info {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
}

.status-value {
  text-align: right;
  flex-shrink: 0;
}

.status-main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  line-height: 1;
}

.status-sub {
  font-size: 0.75rem;
  color: var(--text-secondary, #6b7280);
  margin-top: 0.25rem;
}

/* ==================== ACTIVITY LIST ==================== */
.activity-list,
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border, #e5e7eb) transparent;
}

.activity-list::-webkit-scrollbar,
.alerts-list::-webkit-scrollbar {
  width: 6px;
}

.activity-list::-webkit-scrollbar-track,
.alerts-list::-webkit-scrollbar-track {
  background: transparent;
}

.activity-list::-webkit-scrollbar-thumb,
.alerts-list::-webkit-scrollbar-thumb {
  background: var(--border, #e5e7eb);
  border-radius: 3px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--accent-primary, #3b82f6);
  border-radius: var(--radius-md, 10px);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: var(--bg-hover, #f3f4f6);
  transform: translateX(4px);
}

.activity-item.success {
  border-left-color: var(--success, #10b981);
}

.activity-item.warning {
  border-left-color: var(--warning, #f59e0b);
}

.activity-item.error {
  border-left-color: var(--danger, #ef4444);
}

.activity-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary, #3b82f6);
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  color: var(--text-primary, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.activity-time {
  color: var(--text-tertiary, #9ca3af);
  font-size: 0.75rem;
}

/* ==================== ALERTS ==================== */
.alert-badge {
  padding: 0.3rem 0.75rem;
  background: var(--danger, #ef4444);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.no-alerts {
  text-align: center;
  padding: 2rem;
  color: var(--success, #10b981);
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--warning, #f59e0b);
  border-radius: var(--radius-md, 10px);
  transition: all 0.2s ease;
}

.alert-item:hover {
  background: var(--bg-hover, #f3f4f6);
  transform: translateX(4px);
}

.alert-item.alert-critical {
  border-left-color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, 0.05);
}

.alert-item.alert-warning {
  border-left-color: var(--warning, #f59e0b);
}

.alert-icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-item.alert-critical .alert-icon {
  color: var(--danger, #ef4444);
}

.alert-item.alert-warning .alert-icon {
  color: var(--warning, #f59e0b);
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-title {
  color: var(--text-primary, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-message {
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
}

/* ==================== LOADING OVERLAY - Elsys stílus ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(15, 23, 42, 0.95);
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border, #e5e7eb);
  border-top-color: var(--accent-primary, #3b82f6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary, #6b7280);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==================== DARK MODE - Elsys stílus ==================== */
[data-theme="dark"] .welcome-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-color: #3b82f6;
}

[data-theme="dark"] .welcome-content h1 {
  color: #e0f2fe;
}

[data-theme="dark"] .welcome-content p {
  color: #93c5fd;
}

[data-theme="dark"] .quick-action-btn {
  background: var(--bg-card, #1f2937);
  border-color: var(--border, #374151);
  color: var(--text-primary, #f9fafb);
}

[data-theme="dark"] .quick-action-btn:hover {
  background: var(--bg-hover, #374151);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .status-panel,
[data-theme="dark"] .activity-panel,
[data-theme="dark"] .alerts-panel {
  background: var(--bg-card, #1f2937);
  border-color: var(--border, #374151);
}

[data-theme="dark"] .status-item,
[data-theme="dark"] .activity-item,
[data-theme="dark"] .alert-item {
  background: var(--bg-secondary, #111827);
  border-color: var(--border, #374151);
}

[data-theme="dark"] .status-item:hover,
[data-theme="dark"] .activity-item:hover,
[data-theme="dark"] .alert-item:hover {
  background: var(--bg-hover, #374151);
}

[data-theme="dark"] .alert-item.alert-critical {
  background: rgba(239, 68, 68, 0.1);
}

/* ==================== DARK MODE - Modal & Dropdown Fixes ==================== */
[data-theme="dark"] select,
[data-theme="dark"] .form-select,
[data-theme="dark"] .category-select {
  background-color: var(--bg-secondary, #1f2937) !important;
  color: var(--text-primary, #f9fafb) !important;
  border-color: var(--border, #374151) !important;
}

[data-theme="dark"] select option,
[data-theme="dark"] .form-select option,
[data-theme="dark"] .category-select option {
  background-color: #1f2937 !important;
  color: #f9fafb !important;
  padding: 0.5rem;
}

[data-theme="dark"] select:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .category-select:focus {
  border-color: var(--accent-primary, #3b82f6) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Modal háttér és tartalom sötét módban */
[data-theme="dark"] .modal,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .add-device-modal {
  background-color: var(--bg-card, #1f2937) !important;
  color: var(--text-primary, #f9fafb) !important;
  border-color: var(--border, #374151) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-footer {
  background-color: var(--bg-card, #1f2937) !important;
  color: var(--text-primary, #f9fafb) !important;
  border-color: var(--border, #374151) !important;
}

/* Form elemek sötét módban */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control {
  background-color: var(--bg-secondary, #111827) !important;
  color: var(--text-primary, #f9fafb) !important;
  border-color: var(--border, #374151) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-tertiary, #6b7280) !important;
}

[data-theme="dark"] label,
[data-theme="dark"] .form-label {
  color: var(--text-secondary, #9ca3af) !important;
}

/* ==================== RESPONSIVE - Mobile First ==================== */
@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  
  .quick-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .quick-action-btn {
    flex: 1;
    min-width: 100px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .content-grid,
  .content-grid-wide {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .status-panel,
  .activity-panel,
  .alerts-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .welcome-content h1 {
    font-size: 1.5rem;
  }
  
  .welcome-section {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-content h3 {
    font-size: 1.5rem;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-action-btn {
    width: 100%;
  }
  
  .status-panel,
  .activity-panel,
  .alerts-panel {
    padding: 1rem;
    /* ✅ Mobilon kisebb magasság */
    min-height: 200px;
    max-height: 320px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.status-panel,
.activity-panel,
.alerts-panel {
  animation: fadeIn 0.3s ease;
}

/* Stagger animation */
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

/* ==================== QR SCANNER ==================== */
.deveui-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.deveui-input-wrapper .form-control {
  flex: 1;
}

.btn-qr-scan {
  padding: 0.6rem 0.8rem;
  background: var(--accent-primary, #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-qr-scan:hover {
  background: var(--accent-hover, #0284c7);
  transform: scale(1.05);
}

.btn-qr-scan:active {
  transform: scale(0.95);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin-top: 0.25rem;
}

.qr-scanner-container {
  margin-top: 1rem;
  border: 2px solid var(--accent-primary, #0ea5e9);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary, #1e293b);
}

.qr-scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--accent-primary, #0ea5e9);
  color: white;
  font-weight: 600;
}

.btn-close-scanner {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-close-scanner:hover {
  background: rgba(255,255,255,0.3);
}

.qr-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 300px;
  background: #000;
}

.qr-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-frame {
  width: 200px;
  height: 200px;
  border: 3px solid var(--accent-primary, #0ea5e9);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
  animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { border-color: var(--accent-primary, #0ea5e9); }
  50% { border-color: #22d3ee; }
}

.qr-scanner-hint {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  background: var(--bg-tertiary, #0f172a);
}

/* Mobile optimalizáció */
@media (max-width: 640px) {
  .qr-frame {
    width: 180px;
    height: 180px;
  }
  
  .qr-video-wrapper {
    max-height: 250px;
  }
}

/* ==================== BULK IMPORT ==================== */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  display: none;
}

.file-upload-area {
  border: 2px dashed var(--border-color, #334155);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-tertiary, #0f172a);
}

.file-upload-area:hover {
  border-color: var(--accent-primary, #0ea5e9);
  background: rgba(14, 165, 233, 0.05);
}

.file-upload-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.file-upload-text {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 0.25rem;
}

.file-upload-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
}

.selected-file-name {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bulk-preview-table-wrapper {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--border-color, #334155);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.bulk-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.bulk-preview-table th,
.bulk-preview-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color, #334155);
}

.bulk-preview-table th {
  background: var(--bg-tertiary, #0f172a);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.bulk-preview-table tr:hover {
  background: rgba(14, 165, 233, 0.05);
}

.bulk-status-valid {
  color: #10b981;
  font-weight: 500;
}

.bulk-status-invalid {
  color: #ef4444;
  font-weight: 500;
}

.bulk-status-duplicate {
  color: #f59e0b;
  font-weight: 500;
}

/* Mobile bulk import */
@media (max-width: 640px) {
  .file-upload-area {
    padding: 1.5rem;
  }
  
  .file-upload-icon {
    font-size: 2rem;
  }
  
  .bulk-preview-table {
    font-size: 0.75rem;
  }
  
  .bulk-preview-table th,
  .bulk-preview-table td {
    padding: 0.4rem 0.5rem;
  }
}