.metrics-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a5faa;
}

/* ===== Results & Boxes ===== */
#results {
  margin-top: 30px;
}

.box {
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.box.green { background: #064e3b; box-shadow: 0 4px 12px rgba(6,78,59,0.6); }
.box.yellow { background: #78350f; box-shadow: 0 4px 12px rgba(120,53,15,0.6); }
.box.red { background: #7f1d1d; box-shadow: 0 4px 12px rgba(127,29,29,0.6); }

.box:hover {
  transform: translateY(-2px);
}

/* ===== Streaming Targets ===== */
.targets {
  background: #1f2937;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.targets h2 {
  margin-top: 0;
  color: #3b82f6;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 10px;
}

.targets p {
  font-size: 1rem;
  text-align: center;
  margin: 4px 0;
}

/* ===== Error Messages ===== */
.error-msg {
  color: #f87171;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ===== Smooth Transitions ===== */
* {
  transition: all 0.2s ease-in-out;
}

/* ===== Drag & Drop Area ===== */
.drop-area {
  border: 2px dashed #3b82f6;
  border-radius: 12px;
  padding: 50px 20px;        /* taller */
  text-align: center;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  margin-bottom: 20px;
  min-height: 180px;          /* ensures height even with no text */
}

.drop-area p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.drop-area.dragover {
  background: #1e293b;
  border-color: #60a5fa;
  color: #fff;
}

/* Hide the real file input */
.drop-area input[type="file"] {
  display: none;
}



#analyze-section {
    display: none; /* hidden initially */
}

.consultation {
    border: 1px dashed #3b82f6;
    padding: 16px;
    margin: 16px 0;
    background: #111827;     /* DARK */
    border-radius: 8px;
    color: #e5e7eb;          /* readable light text */
}

.consultation h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #60a5fa;
    font-size: 1.2rem;
    text-align: left;
}

.consultation h2 {
    margin-top: 0;
    color: #1a5faa;
}
.consultation p {
    margin: 8px 0;
    text-align: left;
    color: #e5e7eb;
}

.consultation em {
    color: #9ca3af;
}
.consultation p strong {
    color: #fbbf24; /* amber accent */
}

/* Container for evaluation strategy */
.evaluation-strategy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #eee; /* Light text for dark background */
}

/* Individual strategy card */
.strategy-card {
  border: 1px solid #444;        /* Darker border */
  border-radius: 8px;
  padding: 12px 16px;
  background-color: #222;        /* Dark card bg */
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: background 0.2s ease;
}

.strategy-card:hover {
  background-color: #333;        /* Slightly lighter hover */
}

/* Title of strategy */
.strategy-title {
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #fff;
}

/* Explanation / details */
.strategy-explanation {
  margin: 0;
  font-style: italic;
  color: #ccc;
  font-size: 0.9rem;
}

/* AES alignment badge */
.aes-badge {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.aes-badge.yes {
  color: #1de9b6;
  background-color: #004d40;
}

.aes-badge.no {
  color: #ff8a65;
  background-color: #4e342e;
}



/* --- Confidence Bar --- */
.confidence-container {
    margin-bottom: 1em;
}

.confidence-bar-wrapper {
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 24px;
}

.confidence-bar {
    height: 100%;
    width: 0%;
    background: #4caf50; /* default green */
    transition: width 0.5s, background 0.5s;
}

.confidence-text {
    margin-top: 0.3em;
}

/* --- Export Button --- */
.export-buttons {
    margin-top: 20px;
}

/* Hide by default */
.hidden {
    display: none;
}

/* Track cards - dark theme */
.track-card {
  border: 1px solid #333;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  background: #1f2937;        /* Dark background */
  color: #eee;                /* Light text */
  transition: transform 0.2s, box-shadow 0.2s;
}

.track-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.track-header {
  padding: 12px 16px;
  font-weight: bold;
  background: #111827;         /* Slightly darker than card */
  color: #fff;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.track-header::after {
  content: "▼";
  float: right;
  transition: transform 0.3s ease;
  color: #aaa;
}

.track-body {
  padding: 10px 16px;
  display: none;
  overflow: hidden;
  background: #1f2937;       /* Same as card background */
  border-top: 1px solid #333;
  color: #eee;               /* Light text */
}

/* Rotate arrow when expanded */
.track-body[style*="display: block"] + .track-header::after {
  transform: rotate(180deg);
}

/* Optional: batch summary styling */
.batch-summary {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #111827;
  color: #eee;
}



/* ===== Responsive ===== */
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  button, input[type="file"] { max-width: 100%; }
  .targets h2 { font-size: 1.3rem; }
  .button-group {
	  flex-wrap: wrap !important;            /* wrap on small screens */
	}
}

/* ===== Spinner ==== */
.hidden {
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #14b8a6; /* Tailwind teal-500 */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
