/* Thermex Branded Styles */
/* Color Palette:
   Primary Dark: #000000 / #212121
   Primary Green: #8FA68E
   Primary Gold: #D4A574 / #C4965A
   Light: #F5F5F5 / #F8F8F8
   Gray: #666666 / #777777
   Light Gray: #E0E0E0
*/

/* Import Fonts - Using Inter as Klavika alternative */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-dark: #212121;
  --primary-darker: #000000;
  --primary-green: #8FA68E;
  --primary-gold: #D4A574;
  --primary-gold-dark: #C4965A;
  --light-bg: #F8F8F8;
  --light-bg-alt: #F5F5F5;
  --gray: #777777;
  --gray-dark: #666666;
  --light-gray: #E0E0E0;
  --success: #8FA68E;
  --warning: #D4A574;
  --danger: #E57373;
  --info: #64B5F6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-dark);
  color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  border: 3px solid var(--light-gray);
  border-top: 3px solid var(--primary-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation Header */
.nav-header {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  border-bottom: 2px solid var(--primary-green);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(33, 33, 33, 0.95);
}

.logo-container {
  position: relative;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 15px rgba(143, 166, 142, 0.3);
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--light-bg);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--primary-green);
  font-weight: 500;
}

.data-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: 25px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 166, 142, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(143, 166, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 166, 142, 0); }
}

.data-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--light-gray);
  color: var(--light-bg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: rotate(180deg);
}

.export-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

/* Filters Section */
.filters-section {
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.95) 0%, rgba(33, 33, 33, 0.85) 100%);
  border-bottom: 1px solid rgba(224, 224, 224, 0.1);
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.reset-btn {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--light-gray);
  color: var(--light-bg);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Quick Presets */
.quick-presets {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(143, 166, 142, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(143, 166, 142, 0.2);
}

.preset-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
}

.preset-btn {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preset-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-1px);
}

/* Filter Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  row-gap: 24px;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 70px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
}

.filter-select,
.filter-input {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: var(--light-bg);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  height: 44px;
  width: 100%;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary-green);
  background: rgba(143, 166, 142, 0.1);
  box-shadow: 0 0 0 3px rgba(143, 166, 142, 0.1);
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 14px;
}

.search-input {
  padding-left: 36px;
}

.filter-action {
  display: flex;
  align-items: flex-end;
  min-height: 70px;
}

.apply-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #7a8f7a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 166, 142, 0.3);
}

/* Active Filters */
.active-filters {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 4px 12px;
  background: rgba(143, 166, 142, 0.2);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.no-filters {
  color: var(--gray);
  font-size: 14px;
  font-style: italic;
}

/* Dashboard Main */
.dashboard-main {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #1a1a1a 100%);
  min-height: 100vh;
}

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

.kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-green);
}

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

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.kpi-icon.revenue {
  background: linear-gradient(135deg, var(--primary-green) 0%, #6b806b 100%);
}

.kpi-icon.orders {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
}

.kpi-icon.quantity {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray) 100%);
}

.kpi-icon.average {
  background: linear-gradient(135deg, #7a8f7a 0%, var(--primary-green) 100%);
}

.kpi-trend {
  padding: 4px 8px;
  background: rgba(143, 166, 142, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-green);
}

.kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--light-bg);
  margin-bottom: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent text flicker for currency values */
#totalRevenue, #avgOrderValue {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  will-change: auto;
  transition: none !important;
  animation: none !important;
}

.kpi-progress {
  height: 4px;
  background: rgba(224, 224, 224, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  border-radius: 2px;
  transition: width 1.5s ease;
  width: 0;
}

/* Alerts */
.alerts-container {
  margin-bottom: 24px;
}

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  animation: slideIn 0.3s ease;
  position: relative;
}

.alert-warning {
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
}

.alert-info {
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
}

.alert-error {
  background: rgba(229, 115, 115, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.alert-close:hover {
  opacity: 1;
}

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

.chart-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: 16px;
  padding: 24px;
  animation: fadeInUp 0.6s ease;
}

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

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.chart-controls {
  display: flex;
  gap: 8px;
}

.chart-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chart-btn.active,
.chart-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

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

.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-label {
  font-size: 13px;
  color: var(--gray);
}

/* Performers */
.performers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.performer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: 16px;
  padding: 24px;
  animation: fadeInUp 0.7s ease;
}

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

.performer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.performer-badge {
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.performer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.performer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(224, 224, 224, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  animation: fadeInLeft 0.5s ease forwards;
  opacity: 0;
}

.performer-item:hover {
  background: rgba(143, 166, 142, 0.1);
  border-color: var(--primary-green);
  transform: translateX(5px);
}

.performer-rank {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 14px;
}

.performer-info {
  flex: 1;
}

.performer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-bg);
  margin-bottom: 2px;
}

.performer-meta {
  font-size: 12px;
  color: var(--gray);
}

.performer-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-gold);
}

/* Insights */
.insights-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease;
}

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

.insights-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: rotate(180deg);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.insight-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(224, 224, 224, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insight-card:hover::before {
  opacity: 1;
}

.insight-card:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(143, 166, 142, 0.08) 0%, rgba(212, 165, 116, 0.05) 100%);
  border-color: rgba(143, 166, 142, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.insight-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}

.insight-success .insight-icon { 
  background: linear-gradient(135deg, var(--primary-green) 0%, #7A9A79 100%); 
}
.insight-warning .insight-icon { 
  background: linear-gradient(135deg, var(--primary-gold) 0%, #B8935A 100%); 
}
.insight-danger .insight-icon { 
  background: linear-gradient(135deg, #E57373 0%, #D32F2F 100%); 
}
.insight-primary .insight-icon { 
  background: linear-gradient(135deg, #5E92F3 0%, #1565C0 100%); 
}
.insight-secondary .insight-icon { 
  background: linear-gradient(135deg, var(--gray) 0%, var(--gray-dark) 100%); 
}
.insight-accent .insight-icon { 
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%); 
}
.insight-info .insight-icon { 
  background: linear-gradient(135deg, #64B5F6 0%, #1976D2 100%); 
}
.insight-opportunity .insight-icon { 
  background: linear-gradient(135deg, #BA68C8 0%, #7B1FA2 100%); 
}

.insight-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--light-bg);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
  background: linear-gradient(90deg, var(--light-bg) 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.insight-text {
  font-size: 14px;
  color: #B8B8B8;
  line-height: 1.65;
  letter-spacing: 0.2px;
  font-weight: 400;
}

/* Highlight "Action:" keyword in insights */
.insight-card .insight-text {
  position: relative;
}

.insight-success .insight-title {
  background: linear-gradient(90deg, var(--primary-green) 0%, #A5C5A4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.insight-warning .insight-title {
  background: linear-gradient(90deg, var(--primary-gold) 0%, #E5C590 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.insight-danger .insight-title {
  background: linear-gradient(90deg, #E57373 0%, #FF8A80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Data Table */
.table-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 224, 224, 0.1);
  border-radius: 16px;
  padding: 24px;
  animation: fadeInUp 0.9s ease;
}

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

.table-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.record-count {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  margin-left: 12px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.table-search {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: var(--light-bg);
  border-radius: 6px;
  font-size: 13px;
  width: 200px;
  transition: all 0.3s ease;
}

.table-search:focus {
  outline: none;
  border-color: var(--primary-green);
  background: rgba(143, 166, 142, 0.1);
  width: 250px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.page-info {
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(224, 224, 224, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: rgba(143, 166, 142, 0.1);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(143, 166, 142, 0.2);
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.data-table th.sortable:hover {
  color: var(--primary-gold);
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(224, 224, 224, 0.05);
  transition: all 0.3s ease;
}

.data-table tbody tr:hover {
  background: rgba(143, 166, 142, 0.05);
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--light-bg-alt);
}

.table-row {
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.country-badge {
  padding: 4px 8px;
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid rgba(143, 166, 142, 0.3);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.product-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.revenue-cell {
  font-weight: 600;
  color: var(--primary-gold);
}

.no-data {
  text-align: center;
  padding: 32px;
  color: var(--gray);
  font-style: italic;
}

/* Footer */
.dashboard-footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, var(--primary-darker) 100%);
  border-top: 1px solid rgba(143, 166, 142, 0.2);
  margin-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.footer-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(224, 224, 224, 0.1);
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--primary-dark);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  color: var(--light-bg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-color: var(--primary-green);
  background: linear-gradient(135deg, rgba(143, 166, 142, 0.2) 0%, rgba(143, 166, 142, 0.1) 100%);
}

.toast-error {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(229, 115, 115, 0.2) 0%, rgba(229, 115, 115, 0.1) 100%);
}

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

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

@keyframes fadeInLeft {
  from { 
    opacity: 0;
    transform: translateX(-20px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Light Theme */
body.light-theme {
  background: var(--light-bg);
  color: var(--primary-dark);
}

body.light-theme .nav-header {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-alt) 100%);
  border-bottom-color: var(--primary-green);
  background-color: rgba(248, 248, 248, 0.95);
}

body.light-theme .brand-title {
  color: var(--primary-dark);
}

body.light-theme .filters-section {
  background: linear-gradient(180deg, rgba(248, 248, 248, 0.95) 0%, rgba(245, 245, 245, 0.85) 100%);
}

body.light-theme .section-title {
  color: var(--primary-dark);
}

body.light-theme .filter-select,
body.light-theme .filter-input {
  background: white;
  border-color: var(--light-gray);
  color: var(--primary-dark);
}

body.light-theme .dashboard-main {
  background: linear-gradient(180deg, var(--light-bg-alt) 0%, white 100%);
}

body.light-theme .kpi-card,
body.light-theme .chart-card,
body.light-theme .performer-card,
body.light-theme .insights-card,
body.light-theme .table-card {
  background: white;
  border-color: var(--light-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .kpi-value,
body.light-theme .performer-name,
body.light-theme .chart-title,
body.light-theme .performer-title,
body.light-theme .insights-title,
body.light-theme .table-title,
body.light-theme .insight-title {
  color: var(--primary-dark);
}

body.light-theme .data-table tbody tr:hover {
  background: rgba(143, 166, 142, 0.1);
}

body.light-theme .data-table td {
  color: var(--primary-dark);
}

body.light-theme .toast {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Prevent Layout Shifts */
.kpi-card * {
  transition: none;
}

.kpi-card[data-animate="false"] .kpi-value {
  transition: none !important;
}

.filter-grid {
  min-height: 160px;
}

.search-wrapper {
  width: 100%;
}

.search-input {
  width: 100%;
}

/* Fix overlapping issues */
.filters-section {
  position: relative;
  z-index: 50;
}

.quick-presets {
  flex-wrap: wrap;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-header {
    padding: 16px;
  }
  
  .brand-title {
    font-size: 20px;
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .performers-grid {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .nav-header,
  .filters-section,
  .theme-toggle,
  .export-btn,
  .refresh-btn,
  .alert-close,
  .chart-controls,
  .pagination,
  .table-search,
  .dashboard-footer {
    display: none !important;
  }
  
  .kpi-card,
  .chart-card,
  .performer-card,
  .insights-card,
  .table-card {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* Quick Guide Modal Styles */
.quick-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-guide-modal.show {
  opacity: 1;
}

.guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.guide-content {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%);
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(143, 166, 142, 0.2);
  animation: slideUp 0.4s ease;
}

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

.guide-header {
  background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-darker);
  display: flex;
  align-items: center;
}

.guide-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--primary-darker);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.guide-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.guide-body {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

.guide-steps {
  min-height: 400px;
  position: relative;
}

/* Shop Modal Styles */
.shop-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.shop-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.shop-modal-content {
  background: var(--primary-dark);
  border-radius: 16px;
  width: 95vw;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--primary-green);
  animation: slideUp 0.3s ease;
}

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

.shop-modal-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-modal-close {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: var(--primary-darker);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.shop-modal-close:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: rotate(90deg);
}

.shop-modal-body {
  padding: 25px 30px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

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

.shop-stat-card {
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.shop-stat-card:hover {
  background: rgba(143, 166, 142, 0.2);
  transform: translateY(-2px);
}

.shop-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 5px;
}

.shop-stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.shop-section {
  background: rgba(33, 33, 33, 0.8);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 20px;
}

.shop-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-trend-chart {
  height: 300px;
  margin-bottom: 20px;
}

.shop-category-list {
  max-height: 300px;
  overflow-y: auto;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(143, 166, 142, 0.2);
}

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

.category-name {
  font-weight: 500;
  color: var(--light-bg);
}

.category-stats {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--gray);
}

.category-revenue {
  color: var(--primary-gold);
  font-weight: 600;
}

.category-quantity {
  color: var(--primary-green);
}

.shop-performance-indicators {
  margin-top: 20px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.performance-indicator {
  background: rgba(143, 166, 142, 0.1);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.indicator-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.indicator-good {
  background: var(--success);
  color: var(--primary-darker);
}

.indicator-warning {
  background: var(--warning);
  color: var(--primary-darker);
}

.indicator-danger {
  background: var(--danger);
  color: white;
}

.indicator-content {
  flex: 1;
}

.indicator-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-bg);
}

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

/* Orders Overview Styles */
.orders-section {
  margin-top: 20px;
}

.orders-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.orders-search {
  padding: 8px 12px;
  background: rgba(33, 33, 33, 0.8);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  color: var(--light-bg);
  font-size: 0.9rem;
  width: 250px;
}

.orders-search::placeholder {
  color: var(--gray);
}

.orders-filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.orders-sort-select {
  padding: 8px 12px;
  background: rgba(33, 33, 33, 0.8);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  color: var(--light-bg);
  font-size: 0.9rem;
}

.orders-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.order-stat-item {
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.order-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 5px;
}

.order-stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.orders-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(33, 33, 33, 0.8);
}

.orders-table th,
.orders-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(143, 166, 142, 0.2);
  font-size: 0.9rem;
}

.orders-table th {
  background: rgba(143, 166, 142, 0.2);
  font-weight: 600;
  color: var(--primary-green);
  position: sticky;
  top: 0;
  z-index: 10;
}

.orders-table td {
  color: var(--light-bg);
}

.orders-table tbody tr:hover {
  background: rgba(143, 166, 142, 0.1);
}

.order-date {
  color: var(--gray);
  font-size: 0.85rem;
}

.order-product {
  font-weight: 500;
  color: var(--light-bg);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-revenue {
  color: var(--primary-gold);
  font-weight: 600;
}

.order-quantity {
  color: var(--primary-green);
  font-weight: 500;
}

.order-category {
  background: rgba(143, 166, 142, 0.2);
  color: var(--primary-green);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.order-type {
  background: rgba(212, 165, 116, 0.2);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 10px 0;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--gray);
}

.pagination-controls {
  display: flex;
  gap: 5px;
}

.pagination-btn {
  padding: 8px 12px;
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(143, 166, 142, 0.2);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--primary-green);
  color: var(--primary-darker);
}

@media (max-width: 768px) {
  .orders-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .orders-search {
    width: 100%;
  }
  
  .orders-filter-group {
    justify-content: space-between;
  }
  
  .orders-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .orders-table th,
  .orders-table td {
    padding: 8px 4px;
    font-size: 0.8rem;
  }
  
  .order-product {
    max-width: 150px;
  }
}

/* Category Distribution Styles */
.category-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.view-toggle-btn {
  padding: 8px 16px;
  background: rgba(143, 166, 142, 0.1);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-toggle-btn:hover {
  background: rgba(143, 166, 142, 0.2);
  transform: translateY(-1px);
}

.view-toggle-btn.active {
  background: var(--primary-green);
  color: var(--primary-darker);
  font-weight: 600;
}

.category-distribution {
  position: relative;
  min-height: 200px;
}

.category-chart-view,
.category-grid-view {
  display: none;
}

.category-chart-view.active,
.category-grid-view.active {
  display: block;
}

.category-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.shop-category-card {
  background: rgba(33, 33, 33, 0.8);
  border: 1px solid var(--primary-green);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.shop-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(143, 166, 142, 0.2);
}

.shop-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143, 166, 142, 0.2);
}

.shop-category-name {
  font-weight: 600;
  color: var(--primary-green);
  font-size: 1rem;
}

.shop-category-total {
  font-size: 0.9rem;
  color: var(--primary-gold);
  font-weight: 500;
}

.category-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.category-breakdown-name {
  font-size: 0.9rem;
  color: var(--light-bg);
  flex: 1;
}

.category-breakdown-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.category-breakdown-revenue {
  color: var(--primary-gold);
  font-weight: 500;
}

.category-breakdown-quantity {
  color: var(--primary-green);
}

.category-breakdown-percentage {
  color: var(--gray);
  min-width: 35px;
  text-align: right;
}

.category-breakdown-bar {
  width: 100%;
  height: 4px;
  background: rgba(143, 166, 142, 0.2);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.category-breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-gold));
  border-radius: 2px;
  transition: width 0.8s ease;
}

.no-categories {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  padding: 40px 20px;
}

/* Category Summary Table */
.category-summary-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(33, 33, 33, 0.8);
  border-radius: 8px;
  overflow: hidden;
}

.category-summary-table th,
.category-summary-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(143, 166, 142, 0.2);
}

.category-summary-table th {
  background: rgba(143, 166, 142, 0.2);
  font-weight: 600;
  color: var(--primary-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-summary-table td {
  color: var(--light-bg);
  font-size: 0.9rem;
}

.category-summary-table tbody tr:hover {
  background: rgba(143, 166, 142, 0.1);
}

.category-name-cell {
  font-weight: 500;
  color: var(--primary-green);
}

.category-shops-cell {
  color: var(--gray);
}

.category-revenue-cell {
  color: var(--primary-gold);
  font-weight: 600;
}

.category-quantity-cell {
  color: var(--primary-green);
  font-weight: 500;
}

.category-orders-cell {
  color: var(--light-bg);
}

.category-avg-cell {
  color: var(--primary-gold);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .category-comparison-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .category-view-toggle {
    flex-direction: column;
    gap: 5px;
  }
  
  .view-toggle-btn {
    justify-content: center;
  }
  
  .category-summary-table th,
  .category-summary-table td {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .category-breakdown-stats {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
}

/* Clickable Shop Names */
.clickable-shop {
  cursor: pointer;
  color: var(--primary-green);
  transition: all 0.3s ease;
  position: relative;
}

.clickable-shop:hover {
  color: var(--primary-gold);
  text-decoration: underline;
  transform: scale(1.02);
}

.clickable-shop:after {
  content: '🔍';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.8rem;
}

.clickable-shop:hover:after {
  opacity: 1;
}

@media (max-width: 768px) {
  .shop-modal-content {
    width: 98vw;
    max-height: 95vh;
    border-radius: 8px;
  }
  
  .shop-sections {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .shop-overview {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .performance-grid {
    grid-template-columns: 1fr;
  }
}

.guide-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.guide-step.active {
  display: block;
}

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

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-darker);
  box-shadow: 0 10px 30px rgba(143, 166, 142, 0.3);
}

.step-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-bg);
  margin-bottom: 20px;
}

.step-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.step-highlight {
  background: rgba(143, 166, 142, 0.1);
  border-left: 4px solid var(--primary-green);
  padding: 15px 20px;
  border-radius: 10px;
  margin: 25px auto;
  max-width: 600px;
  color: var(--light-bg);
  font-size: 1.05rem;
}

.step-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.step-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.step-list li:hover {
  background: rgba(143, 166, 142, 0.1);
  transform: translateX(5px);
}

.step-list i {
  color: var(--primary-gold);
  font-size: 1.2rem;
  width: 25px;
}

.step-tip {
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 12px 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-gold);
}

.step-instructions {
  max-width: 650px;
  margin: 0 auto;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.instruction-item:hover {
  background: rgba(143, 166, 142, 0.1);
  transform: translateX(5px);
}

.instruction-number {
  background: var(--primary-green);
  color: var(--primary-darker);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-example {
  margin: 25px auto;
  max-width: 500px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
}

.step-example img {
  width: 100%;
  border-radius: 8px;
}

.dashboard-sections {
  max-width: 700px;
  margin: 0 auto;
}

.section-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.section-item:hover {
  background: rgba(143, 166, 142, 0.1);
  transform: translateX(5px);
}

.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.section-icon.kpi {
  background: rgba(143, 166, 142, 0.2);
  color: var(--primary-green);
}

.section-icon.chart {
  background: rgba(212, 165, 116, 0.2);
  color: var(--primary-gold);
}

.section-icon.table {
  background: rgba(100, 181, 246, 0.2);
  color: #64B5F6;
}

.analysis-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.tip-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tip-card:hover {
  background: rgba(143, 166, 142, 0.1);
  border-color: rgba(143, 166, 142, 0.3);
  transform: translateY(-5px);
}

.tip-card i {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.tip-card h4 {
  color: var(--light-bg);
  margin-bottom: 8px;
  font-weight: 600;
}

.tip-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(143, 166, 142, 0.1);
  transform: translateY(-3px);
}

.feature-item > i {
  font-size: 1.5rem;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.shortcut-list {
  list-style: none;
  margin-top: 8px;
}

.shortcut-list li {
  color: var(--gray);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.shortcut-list kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--light-bg);
}

.guide-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-nav-btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  color: var(--primary-darker);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.guide-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(143, 166, 142, 0.3);
}

.guide-nav-btn.prev {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-bg);
}

.guide-nav-btn.prev:hover {
  background: rgba(255, 255, 255, 0.15);
}

.guide-dots {
  display: flex;
  gap: 10px;
}

.guide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-dot.active {
  background: var(--primary-green);
  transform: scale(1.3);
}

.guide-dot:hover {
  background: rgba(143, 166, 142, 0.5);
}

.guide-action {
  text-align: center;
  margin-top: 30px;
}

.try-now-btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  color: var(--primary-darker);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(143, 166, 142, 0.3);
}

.try-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(143, 166, 142, 0.4);
}

.quick-guide-btn {
  background: rgba(143, 166, 142, 0.2);
  color: var(--primary-green);
  border: 1px solid rgba(143, 166, 142, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quick-guide-btn:hover {
  background: rgba(143, 166, 142, 0.3);
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

/* View Switcher Styles */
.view-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 4px;
  gap: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-btn:hover {
  color: var(--light-bg);
  background: rgba(255, 255, 255, 0.1);
}

.view-btn.active {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  color: var(--primary-darker);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(143, 166, 142, 0.3);
}

/* Shop View Styles */
.shop-view-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.view-mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.toggle-label {
  color: var(--light-bg);
  font-weight: 600;
  font-size: 0.95rem;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-bg);
  transform: translateY(-2px);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-gold) 100%);
  color: var(--primary-darker);
  border-color: var(--primary-green);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(143, 166, 142, 0.4);
}

.shop-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 2rem;
}

.shop-comparison-grid .span-2 {
  grid-column: span 2;
}

.shop-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(143, 166, 142, 0.1);
  transition: all 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(143, 166, 142, 0.2);
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.shop-count {
  background: rgba(143, 166, 142, 0.2);
  color: var(--primary-green);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.shop-item.success {
  border-left-color: var(--primary-green);
}

.shop-item.attention {
  border-left-color: var(--primary-gold);
}

.shop-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

.shop-rank {
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.shop-info {
  flex: 1;
}

.shop-name {
  font-weight: 600;
  color: var(--light-bg);
  font-size: 1rem;
  margin-bottom: 4px;
}

.shop-location {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.shop-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 6px;
}

.primary-stat {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.secondary-stat {
  color: var(--gray);
  font-size: 0.85rem;
}

.shop-categories {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-badge {
  background: rgba(212, 165, 116, 0.2);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.orders-count {
  color: var(--gray);
  font-size: 0.75rem;
}

.shop-performance {
  display: flex;
  align-items: center;
}

.performance-indicator {
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.performance-indicator.success {
  background: rgba(143, 166, 142, 0.2);
}

.performance-indicator.attention {
  background: rgba(212, 165, 116, 0.2);
}

/* Shop Table Styles */
.shop-table-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(143, 166, 142, 0.1);
  margin-top: 2rem;
}

.shop-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.shop-table-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-bg);
  display: flex;
  align-items: center;
}

.shop-table-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.sort-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-bg);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.shop-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

.shop-comparison-table th {
  background: rgba(143, 166, 142, 0.1);
  color: var(--light-bg);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s ease;
}

.shop-comparison-table th:hover {
  background: rgba(143, 166, 142, 0.2);
}

.shop-comparison-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gray);
}

.shop-row.excellent {
  background: rgba(143, 166, 142, 0.1);
}

.shop-row.good {
  background: rgba(100, 181, 246, 0.05);
}

.shop-row.poor {
  background: rgba(229, 115, 115, 0.1);
}

.shop-row.below {
  background: rgba(212, 165, 116, 0.1);
}

.shop-cell .shop-name {
  color: var(--light-bg);
  font-weight: 600;
}

.shop-cell .shop-id {
  color: var(--gray);
  font-size: 0.8rem;
}

.metric-subtitle {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: normal;
}

.category-count {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 2px;
}

.country-flag {
  margin-right: 6px;
}

.category-distribution {
  height: 300px;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .shop-comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-comparison-grid .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .shop-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-mode-toggle {
    flex-direction: column;
    gap: 10px;
  }
  
  .shop-stats {
    flex-direction: column;
    gap: 4px;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%);
  border: 1px solid rgba(143, 166, 142, 0.3);
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--light-bg);
  font-weight: 500;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  border-color: var(--primary-green);
}

.notification-success i {
  color: var(--primary-green);
}

.notification-info i {
  color: var(--info);
}