/* ==========================================
   AKS Cost Optimizer - Main CSS Entry Point
   Imports all modular CSS components
   ========================================== */

@import url('variables.css');
@import url('base.css');
@import url('sidebar.css');
@import url('header.css');
@import url('cards.css');
@import url('buttons.css');
@import url('forms.css');
@import url('animations.css');
@import url('implementation-plan.css');
@import url('alerts.css');

/* ==========================================
   Flash Messages
   ========================================== */

.flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
}

.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideInFromRight 0.3s ease-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-message span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-xs);
  margin-left: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Flash message types */
.flash-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
  color: white;
}

.flash-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  color: white;
}

.flash-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
  color: white;
}

.flash-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  color: white;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================
   Main Content Layout
   ========================================== */

/* Main Content Area */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents flex shrink issues */
  width: 100%;
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-md) var(--space-xl) var(--space-xl) var(--space-xl);
  width: 100%;
  box-sizing: border-box;
}

/* Dashboard Sections */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

/* Chart Metrics */
.chart-metrics {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .chart-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .metric-item {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}