/* Energy Sector Styles - Dashboard and Charts Only */

/* Energy Efficiency Cards */
.efficiency-card {
  background: var(--gradient-card);
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.efficiency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-energy);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.efficiency-card:hover::before {
  transform: scaleY(1);
}

.efficiency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Energy Metrics Display */
.energy-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
}

.energy-metric:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.energy-metric-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--bg-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.energy-metric-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.energy-metric-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* NILM Technology Showcase */
.nilm-showcase {
  background: var(--bg-secondary);
  padding: 4rem 0;
  position: relative;
}

.nilm-appliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.nilm-appliance {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nilm-appliance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-energy);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nilm-appliance:hover::before {
  width: 100%;
}

.nilm-appliance:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.nilm-appliance-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.nilm-appliance:hover .nilm-appliance-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.nilm-appliance-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* EV Management Section */
.ev-management {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%);
  padding: 4rem 0;
}

.ev-feature {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.ev-feature:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.ev-feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-energy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  flex-shrink: 0;
}

.ev-feature-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.ev-feature-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Client Logo Grid */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.client-logo:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.client-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

/* Process Flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0;
  position: relative;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 1;
  transform: translateY(-50%);
}

.process-step {
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.2);
}

/* Call-to-Action Sections */
.cta-energy {
  background: var(--gradient-energy);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.cta-energy::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 1;
}

.cta-energy .cta-content {
  position: relative;
  z-index: 2;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .energy-metric {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .ev-feature {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .process-flow {
    flex-direction: column;
    gap: 2rem;
  }
  
  .process-flow::before {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  
  .nilm-appliance-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  
  .client-logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
}



/* Enhanced gradient text for energy section */
.energy-gradient-text {
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Chart container glow effect */
.chart-container-glow {
  position: relative;
}

.chart-container-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #3b82f6, #22c55e, #f59e0b);
  border-radius: 18px;
  opacity: 0.1;
  filter: blur(8px);
  z-index: -1;
}

/* Loading state for chart */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.8) 0%, 
    rgba(241, 245, 249, 0.8) 100%);
  border-radius: 16px;
}

.chart-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Enterprise AI Platform Visualization */
.enterprise-ai-visualization {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1000px;
}

.platform-interface {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
  position: relative;
}

.carousel-layer.active .platform-interface {
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.carousel-layer.prev .platform-interface,
.carousel-layer.next .platform-interface {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.enterprise-ai-visualization:hover .platform-interface {
  transform: rotateY(-2deg) rotateX(2deg) translateZ(20px);
}

/* Interface Header */
.interface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, #334155 0%, #475569 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-dot-red { background: #ef4444; }
.control-dot-yellow { background: #f59e0b; }
.control-dot-green { background: #10b981; }

.header-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 12px;
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Interface Tabs */
.interface-tabs {
  display: flex;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
  flex: 1;
  padding: 12px 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.tab:hover:not(.active) {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
}

/* Interface Content */
.interface-content {
  padding: 20px;
  background: #0f172a;
  position: relative;
  min-height: 400px;
  height: 400px;
  overflow: hidden;
}

/* Carousel Container and Layers */
.carousel-container {
  position: relative;
  height: 100%;
  min-height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: visible;
}

.carousel-layer {
  position: absolute;
  width: 90%;
  height: 90%;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.carousel-layer.active {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  z-index: 3;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.carousel-layer.prev {
  opacity: 0.6;
  transform: translateX(-15%) translateY(5%) scale(0.9);
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.carousel-layer.next {
  opacity: 0.6;
  transform: translateX(15%) translateY(-5%) scale(0.9);
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Layer transition animations */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0.4;
    transform: translateX(-80%) scale(0.9);
  }
}

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

@keyframes slideOutToRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0.4;
    transform: translateX(80%) scale(0.9);
  }
}

/* Professional carousel animations */
@keyframes slideInToActive {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes slideToBackground {
  from {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  to {
    opacity: 0.6;
    transform: translateX(-15%) translateY(5%) scale(0.9);
  }
}

@keyframes slideToForeground {
  from {
    opacity: 0.6;
    transform: translateX(15%) translateY(-5%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.carousel-layer {
  will-change: transform, opacity;
}

.carousel-layer.active {
  animation: slideInToActive 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Content */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Data Cards */
.data-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.data-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.data-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.card-header i {
  font-size: 12px;
  color: #3b82f6;
  /* Prevent layout shift while Font Awesome loads */
  min-width: 12px;
  min-height: 12px;
  display: inline-block;
  /* Add subtle loading animation */
  animation: iconFadeIn 0.3s ease-in;
}

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

.card-value {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.card-trend {
  font-size: 10px;
  font-weight: 600;
}

.card-trend.positive {
  color: #10b981;
}

.card-trend.negative {
  color: #ef4444;
}

.card-trend.negative::before {
  border-top: 4px solid #ef4444;
}

/* AI Predictions */
.ai-predictions {
  margin-bottom: 16px;
}

.ai-predictions h5 {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.prediction-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.prediction-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.prediction-icon {
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  flex-shrink: 0;
  /* Prevent layout shift while Font Awesome loads */
  min-width: 20px;
  min-height: 20px;
}

.prediction-icon i {
  /* Ensure icon is properly sized */
  display: inline-block;
  width: 10px;
  height: 10px;
  line-height: 1;
}

.prediction-icon.warning {
  background: #f59e0b;
}

.prediction-content {
  flex: 1;
}

.prediction-text {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.prediction-time {
  color: #94a3b8;
  font-size: 10px;
}

/* System Status */
.system-status {
  margin-top: 8px;
}

.system-status h5 {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-item.online .status-dot {
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.status-item.warning .status-dot {
  background: #f59e0b;
  animation: pulse 1s ease-in-out infinite;
}



/* Analytics Tab Styles */
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.analytics-header h4 {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.time-range:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Compact Analytics Content */
.analytics-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-chart {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

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

.chart-header h5 {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

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

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 10px;
}

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

.chart-placeholder {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 8px 0;
}

.chart-line {
  flex: 1;
  background: linear-gradient(to top, #3b82f6, #10b981);
  border-radius: 2px;
  animation: chartAnimation 2s ease-in-out infinite;
}

.chart-line:nth-child(1) { height: 60%; animation-delay: 0s; }
.chart-line:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.chart-line:nth-child(3) { height: 45%; animation-delay: 0.4s; }
.chart-line:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.chart-line:nth-child(5) { height: 70%; animation-delay: 0.8s; }

@keyframes chartAnimation {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Key Metrics */
.key-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.3);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.metric-header i {
  font-size: 12px;
  color: #3b82f6;
}

.metric-value {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.metric-trend {
  font-size: 10px;
  font-weight: 600;
}

.metric-trend.positive {
  color: #10b981;
}

.metric-trend.negative {
  color: #ef4444;
}

/* Quick Insights */
.quick-insights {
  margin-top: 8px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.insight-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.insight-icon {
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
}

.insight-title {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.insight-text {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.3;
}

/* Reports Tab Styles */
.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reports-header h4 {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.report-actions {
  display: flex;
  gap: 8px;
}

.report-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.report-list {
  margin-bottom: 20px;
}

.report-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.report-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.report-icon {
  width: 32px;
  height: 32px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 14px;
  flex-shrink: 0;
}

.report-content {
  flex: 1;
}

.report-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.report-meta {
  color: #94a3b8;
  font-size: 11px;
}

.report-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.report-status.completed {
  background: #10b981;
  color: white;
}

.report-status.warning {
  background: #f59e0b;
  color: white;
}

.report-status.processing {
  background: #3b82f6;
  color: white;
}

.processing-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.quick-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border-color: rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .enterprise-ai-visualization {
    max-width: 420px;
  }
  
  .platform-interface {
    transform: rotateY(-3deg) rotateX(3deg);
  }
  
  .data-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  

}

@media (max-width: 768px) {
  .enterprise-ai-visualization {
    max-width: 100%;
  }
  
  .platform-interface {
    transform: none;
  }
  
  .enterprise-ai-visualization:hover .platform-interface {
    transform: none;
  }
  

  
  /* Mobile carousel optimizations */
  .carousel-container {
    min-height: 320px;
    perspective: 800px;
    padding: 10px;
  }
  
  .carousel-layer {
    width: 95%;
    height: 95%;
    min-height: 280px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  .carousel-layer.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) !important;
    z-index: 3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
  
  .carousel-layer.prev {
    opacity: 0.7;
    transform: translateX(-12%) translateY(4%) scale(0.92) !important;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .carousel-layer.next {
    opacity: 0.7;
    transform: translateX(12%) translateY(-4%) scale(0.92) !important;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .dashboard-content,
  .analytics-content {
    min-height: 240px;
    max-height: 240px;
    overflow-y: auto;
  }
  
  /* Ensure all tabs have same content height */
  .data-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .data-card {
    padding: 8px;
  }
  
  .card-value {
    font-size: 14px;
  }
  
  .ai-predictions {
    margin-bottom: 12px;
  }
  
  .prediction-item {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  .system-status {
    margin-top: 6px;
  }
  
  .status-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  .status-item {
    padding: 4px;
    font-size: 9px;
  }
  
  /* Analytics mobile fixes */
  .key-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .metric-card {
    padding: 8px;
  }
  
  .metric-value {
    font-size: 14px;
  }
  
  .mini-chart {
    padding: 8px;
    margin-bottom: 12px;
  }
  
  .chart-placeholder {
    height: 60px;
  }
  
  /* Reports mobile fixes */
  .report-list {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .report-item {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  /* Critical hero section frame fixes */
  .hero-section {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .enterprise-ai-visualization {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    z-index: 10 !important;
    isolation: isolate !important;
  }
  
  .platform-interface {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Force clean rendering */
  .hero-section *,
  .enterprise-ai-visualization *,
  .platform-interface * {
    box-sizing: border-box !important;
  }
  
  /* CRITICAL: Force mobile spacing fixes */
  .hero-section {
    padding-top: 120px !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-content .inline-block {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  

  
  .enterprise-ai-visualization {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}
