/**
 * Classification-specific CSS
 * 
 * Styles specific to classification EDA report.
 */

/* ====================================
   GLOBAL MENUBAR
   ==================================== */
.global-menubar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(222, 226, 230, 0.5);
  padding: 12px 20px;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 0;
  display: block;
  order: -1;
}

.menubar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;  /* Match section width */
  margin: 0 auto;
}

.menubar-left, .menubar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menubar-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menubar-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.menubar-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.btn-expand:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  color: white;
}

.btn-collapse {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-color: #f093fb;
}

.btn-collapse:hover {
  background: linear-gradient(135deg, #e879f9 0%, #ef4444 100%);
  color: white;
}

.btn-theme {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border-color: #4facfe;
}

.btn-theme:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
}

/* ====================================
   NOTIFICATIONS
   ==================================== */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.notification-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-info {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.notification-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ====================================
   DARK CODE THEME
   ==================================== */
.dark-code-theme .code-panel {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

.dark-code-theme .code-tab-content pre {
  background: #1a202c !important;
  color: #e2e8f0 !important;
}

.dark-code-theme .code-tab-btn {
  background: #4a5568 !important;
  color: #e2e8f0 !important;
  border-color: #4a5568 !important;
}

.dark-code-theme .code-tab-btn.active {
  background: #667eea !important;
  color: white !important;
}

.dark-code-theme .code-tab-btn:hover {
  background: #5a67d8 !important;
  color: white !important;
}

/* ====================================
   CODE THEME TOGGLE
   ==================================== */
/* Dark theme for code blocks */
.dark-code-theme .code-panel {
  background-color: #1e1e1e !important;
  border: 1px solid #3c3c3c !important;
}

.dark-code-theme .code-tab-content {
  background-color: #1e1e1e !important;
  border: 1px solid #3c3c3c !important;
}

.dark-code-theme .code-tab-content pre {
  background-color: #1e1e1e !important;
  color: #d4d4d4 !important;
  border: 1px solid #3c3c3c !important;
}

.dark-code-theme pre {
  background-color: #1e1e1e !important;
  color: #d4d4d4 !important;
  border: 1px solid #3c3c3c !important;
}

/* Light theme for code blocks (default) */
.light-code-theme .code-panel {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
}

.light-code-theme .code-tab-content {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
}

.light-code-theme .code-tab-content pre {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border: 1px solid #e9ecef !important;
}

.light-code-theme pre {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border: 1px solid #e9ecef !important;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
  .global-menubar {
    padding: 8px 15px;
  }
  
  .menubar-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .menubar-left, .menubar-right {
    width: 100%;
    justify-content: center;
  }
  
  .menubar-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ====================================
   BREED CARDS
   ==================================== */
.breed-card {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.breed-card-header {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text, #1f2937);
}

.breed-card-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary, #3b82f6);
}

/* ====================================
   IMAGE GALLERY
   ==================================== */
.image-grid {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-item:hover img {
  transform: scale(1.05);
}

.image-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light, #6b7280);
}

/* ====================================
   SIMILARITY MATRIX
   ==================================== */
.similarity-matrix-container {
  min-height: 700px;
  position: relative;
}

.similarity-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  font-size: 0.875rem;
}

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

.similarity-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* ====================================
   FEATURE VISUALIZATION
   ==================================== */
.feature-plot-container {
  min-height: 500px;
  position: relative;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.plot-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.plot-control-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.plot-control-btn:hover {
  background: var(--color-bg-light, #f9fafb);
}

.plot-control-btn.active {
  background: var(--color-primary, #3b82f6);
  color: #ffffff;
  border-color: var(--color-primary, #3b82f6);
}

/* ====================================
   CLUSTER VISUALIZATION
   ==================================== */
.cluster-card {
  border-left-width: 4px;
  border-left-style: solid;
}

.cluster-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ====================================
   BALANCE INDICATORS
   ==================================== */
.balance-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.balance-indicator.balanced {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.balance-indicator.imbalanced {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* ====================================
   STATISTICS HIGHLIGHTS
   ==================================== */
.stat-highlight {
  background: var(--color-bg-light, #f9fafb);
  border-left: 3px solid var(--color-primary, #3b82f6);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.stat-highlight-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #3b82f6);
  margin-bottom: 5px;
}

.stat-highlight-label {
  font-size: 0.875rem;
  color: var(--color-text-light, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr !important;
  }
  
  .plot-controls {
    justify-content: center;
  }
  
  .similarity-legend {
    flex-direction: column;
    gap: 10px;
  }
}

