/* Reset și setări generale */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #1a202c;
  line-height: 1.5;
  font-size: 14px;
}

/* Pagina de login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  color: #2d3748;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-header p {
  color: #718096;
  font-size: 14px;
}

.login-form {
  margin-bottom: 20px;
}

.login-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #718096;
}

/* Layout cu Sidebar */
body.has-sidebar {
  background: #f7fafc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container pentru sidebar + content */
.app-wrapper {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  color: #2d3748;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .logo-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.sidebar .logo h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #2d3748;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.sidebar.collapsed .logo h2,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-details {
  opacity: 0;
  display: none;
}

.sidebar-toggle {
  background: transparent;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.sidebar-toggle span {
  width: 14px;
  height: 2px;
  background: #718096;
  border-radius: 1px;
  transition: all 0.3s;
}

/* User Info */
.user-info {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f7fafc;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.user-details h4 {
  font-size: 14px;
  margin: 0 0 4px 0;
  font-weight: 600;
  color: #2d3748;
}

.user-details p {
  font-size: 12px;
  margin: 0 0 6px 0;
  color: #718096;
}

.user-details .badge {
  font-size: 10px;
  padding: 2px 8px;
}

/* Currency Selector in Sidebar */
.currency-selector-sidebar {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.currency-selector-sidebar label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.currency-selector-sidebar select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #2d3748;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-selector-sidebar select:hover {
  border-color: #667eea;
  background: #f7fafc;
}

.currency-selector-sidebar select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #718096;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 2px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: #f7fafc;
  color: #4a5568;
}

.nav-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid #e2e8f0;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #e53e3e;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #feb2b2;
}

.btn-logout:hover {
  background: #fff5f5;
  border-color: #fc8181;
}

/* Top Bar pentru mobile */
.top-bar {
  display: none;
  background: white;
  color: #2d3748;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: #4a5568;
  border-radius: 1px;
}

.top-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-selector {
  display: flex;
  align-items: center;
}

.currency-selector select {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #2d3748;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-selector select:hover {
  border-color: #667eea;
  background: #f7fafc;
}

.currency-selector select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.top-bar-user {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* Main Content Area */
.main-content {
  background: white;
  border-radius: 8px;
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  transition: margin-left 0.3s ease;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.main-content.expanded {
  margin-left: 70px;
}

.content-header {
  margin-bottom: 24px;
}

.content-header h1 {
  font-size: 24px;
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 4px;
}

.subtitle {
  color: #718096;
  font-size: 14px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.kpi-card.kpi-primary::before {
  background: #667eea;
}
.kpi-card.kpi-warning::before {
  background: #ed8936;
}
.kpi-card.kpi-success::before {
  background: #48bb78;
}
.kpi-card.kpi-info::before {
  background: #4299e1;
}

.kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.kpi-icon {
  font-size: 32px;
  opacity: 0.9;
  line-height: 1;
}

.kpi-content {
  flex: 1;
}

.kpi-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.kpi-content p {
  font-size: 13px;
  color: #718096;
  margin: 0;
  font-weight: 500;
}

.kpi-trend,
.kpi-info {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

.trend-up {
  color: #48bb78;
}
.trend-down {
  color: #f56565;
}
.kpi-info {
  color: #718096;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.chart-card.chart-full {
  grid-column: 1 / -1;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.chart-header h2 {
  font-size: 16px;
  color: #2d3748;
  margin: 0;
  font-weight: 600;
}

.chart-period {
  font-size: 12px;
  color: #718096;
  background: #f7fafc;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.chart-container {
  position: relative;
  height: 280px;
}

.chart-full .chart-container {
  height: 320px;
}

/* Data Tables */
.data-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.section h2,
.section h3 {
  font-size: 16px;
  color: #2d3748;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

/* Formulare */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #4a5568;
  font-weight: 500;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
  color: #2d3748;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.filter-form {
  background: white;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

/* Butoane */
.btn {
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 1px solid #cbd5e0;
}

.btn-secondary:hover {
  background: #f7fafc;
  border-color: #a0aec0;
}

.btn-success {
  background: #48bb78;
  color: white;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 600;
}

.btn-success:hover {
  background: #38a169;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-edit {
  background: #ed8936;
  color: white;
  border: 1px solid transparent;
}

.btn-edit:hover {
  background: #dd6b20;
  box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.btn-delete {
  background: #f56565;
  color: white;
  border: 1px solid transparent;
}

.btn-delete:hover {
  background: #e53e3e;
  box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.btn-info {
  background: #4299e1;
  color: white;
  border: 1px solid transparent;
}

.btn-info:hover {
  background: #3182ce;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* Tabele */
.table-responsive {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

table thead {
  background: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
}

table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #2d3748;
}

table tbody tr {
  transition: background 0.15s;
}

table tbody tr:hover {
  background: #f7fafc;
}

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

td.actions {
  white-space: nowrap;
}

td.actions form {
  margin: 0;
  display: inline;
}

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

/* Badge-uri */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.badge-combustibil {
  background: #fef5e7;
  color: #d68910;
  border: 1px solid #f9e79f;
}
.badge-reparatii {
  background: #fadbd8;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}
.badge-intretinere {
  background: #d6eaf8;
  color: #1f618d;
  border: 1px solid #aed6f1;
}
.badge-asigurare {
  background: #d5f4e6;
  color: #0e6655;
  border: 1px solid #a9dfbf;
}
.badge-rovinieta {
  background: #e8daef;
  color: #6c3483;
  border: 1px solid #d7bde2;
}
.badge-taxe {
  background: #fdebd0;
  color: #b9770e;
  border: 1px solid #fad7a0;
}
.badge-piese {
  background: #d0ece7;
  color: #0b5345;
  border: 1px solid #a2d9ce;
}
.badge-anvelope {
  background: #d5d8dc;
  color: #34495e;
  border: 1px solid #aeb6bf;
}
.badge-alte {
  background: #f5eef8;
  color: #7d3c98;
  border: 1px solid #e8daef;
}
.badge-admin {
  background: #fadbd8;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}
.badge-info {
  background: #d6eaf8;
  color: #1f618d;
  border: 1px solid #aed6f1;
}

/* Alerte */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
}

.alert-success {
  background: #f0fff4;
  color: #22543d;
  border-color: #9ae6b4;
}

.alert-error {
  background: #fff5f5;
  color: #742a2a;
  border-color: #fc8181;
}

/* Progress bar */
.progress-bar {
  position: relative;
  height: 24px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s;
  border-radius: 6px;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 11px;
  color: #2d3748;
}

.highlight {
  color: #667eea;
  font-weight: 600;
}

/* Footer */
.main-footer {
  background: white;
  padding: 16px 24px;
  margin-left: 260px;
  text-align: center;
  color: #718096;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
  transition: margin-left 0.3s ease;
  margin-top: auto;
}

.main-footer.expanded {
  margin-left: 70px;
}

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

  .data-tables-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.has-sidebar {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: 260px;
  }

  .sidebar.collapsed .logo h2,
  .sidebar.collapsed .nav-text,
  .sidebar.collapsed .user-details {
    opacity: 1;
    display: block;
  }

  .top-bar {
    display: flex;
  }

  .main-content {
    background: white;
    border-radius: 8px;
    margin-left: 0;
    margin-top: 60px;
    padding: 16px;
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .main-footer {
    margin-left: 0;
    margin-top: 16px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .data-tables-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 240px;
  }

  .sidebar-toggle {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .content-header h1 {
    font-size: 20px;
  }
}

/* Print styles */
@media print {
  .sidebar,
  .top-bar,
  .main-footer,
  .btn,
  .form-group,
  .filter-form {
    display: none !important;
  }

  body.has-sidebar {
    background: white;
  }

  .main-content {
    background: white;
    border-radius: 8px;
    margin-left: 0;
    padding: 0;
  }
}

/* ===== SUBMENIU CONFIGURARE ===== */
.nav-item-group {
  position: relative;
}

.nav-submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.nav-item-group:hover .nav-submenu {
  display: flex;
}

.nav-subitem {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin: 2px 0;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.nav-subitem .nav-icon {
  margin-right: 10px;
  font-size: 1.1em;
}

.nav-subitem:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #333;
  transform: translateX(5px);
}

.nav-subitem.active {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
  font-weight: 500;
}

.nav-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.7em;
  opacity: 0.6;
}

.nav-item-group:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Stats Grid - Rapoarte */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 3em;
  opacity: 0.9;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  margin: 0 0 5px 0;
  font-size: 2em;
  font-weight: bold;
  color: white;
}

.stat-content p {
  margin: 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Header with Actions */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title {
  flex: 1;
}

.page-title h1 {
  margin: 0;
  margin-bottom: 4px;
}

.page-title p {
  margin: 0;
  color: #718096;
  font-size: 14px;
}

.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    width: 100%;
  }
}

/* Upload Section - Drag & Drop */
.upload-section {
  margin-bottom: 30px;
}

.drop-zone {
  border: 3px dashed #cbd5e0;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  background: #f7fafc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover {
  border-color: #667eea;
  background: #edf2f7;
}

.drop-zone.drag-over {
  border-color: #667eea;
  background: #e6f0ff;
  transform: scale(1.02);
}

.drop-zone-content svg {
  color: #667eea;
  margin-bottom: 20px;
}

.drop-zone-content h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 18px;
}

.drop-zone-content p {
  color: #718096;
  margin-bottom: 16px;
}

.drop-zone-content .btn {
  margin: 16px 0;
}

.drop-zone-content .file-info {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 12px;
}

/* Upload Progress */
.upload-progress {
  padding: 30px;
  text-align: center;
}

.loading-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.progress-text {
  color: #718096;
  font-size: 14px;
}

/* Preview Section */
.preview-section {
  margin-top: 30px;
  animation: fadeIn 0.3s ease;
}

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

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.preview-header h3 {
  color: #2d3748;
  font-size: 20px;
  margin: 0;
}

.file-details {
  background: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.file-details p {
  margin: 8px 0;
  color: #4a5568;
  font-size: 14px;
}

.file-details strong {
  color: #2d3748;
}

/* Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #667eea;
}

.data-table thead th {
  background: #667eea;
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #5568d3;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 0.2s;
}

.data-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.data-table tbody tr:hover {
  background: #edf2f7;
}

.data-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}

/* Preview Actions */
.preview-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Filtered Section */
.filtered-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 3px solid #e2e8f0;
  animation: fadeIn 0.4s ease;
}

.filtered-header {
  margin-bottom: 20px;
}

.filtered-header h3 {
  color: #2d3748;
  font-size: 18px;
  margin: 0 0 8px 0;
}

.filtered-header p {
  color: #718096;
  font-size: 14px;
  margin: 0;
}

.column-mapping-info {
  margin-top: 20px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.column-mapping-info p {
  margin: 0 0 12px 0;
  color: #2d3748;
  font-size: 14px;
}

.column-mapping-info p:last-child {
  margin-bottom: 0;
}

.missing-columns {
  margin-top: 12px;
}

.warning-text {
  color: #d69e2e;
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  background: #fefcbf;
  border-radius: 6px;
  border-left: 3px solid #d69e2e;
}

.success-text {
  color: #38a169;
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  background: #c6f6d5;
  border-radius: 6px;
  border-left: 3px solid #38a169;
}

.info-text {
  color: #2c5282;
  font-size: 13px;
  margin: 0 0 8px 0;
  padding: 8px 12px;
  background: #bee3f8;
  border-radius: 6px;
  border-left: 3px solid #3182ce;
}

/* Import Results */
.import-results {
  padding: 30px;
  background: white;
  border-radius: 12px;
}

.results-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.results-header h3 {
  margin: 0;
  color: #2d3748;
  font-size: 24px;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-stat {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  gap: 15px;
}

.success-stat {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

.warning-stat {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.info-stat {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
}

.error-stat {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

.new-stat {
  background: #e7e8ff;
  border-left: 4px solid #667eea;
}

.stat-icon {
  font-size: 2.5em;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #2d3748;
  line-height: 1;
}

.stat-label {
  font-size: 0.9em;
  color: #718096;
  margin-top: 5px;
}

.result-details {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.result-details h4 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 16px;
}

.result-details ul {
  margin: 0;
  padding-left: 25px;
  color: #4a5568;
  font-size: 14px;
}

.result-details li {
  margin-bottom: 8px;
}

.result-details.error-details {
  background: #fff5f5;
  border-left: 3px solid #dc3545;
}

.result-details small {
  display: block;
  margin-top: 10px;
  color: #718096;
  font-size: 13px;
}

.result-details a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.result-details a:hover {
  text-decoration: underline;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .preview-actions {
    flex-direction: column;
  }

  .preview-actions .btn {
    width: 100%;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }
}
