/* YKONOS VIII — Estilos cyber-themed */
:root.ykonos-mode {
  --yc-bg: #030c0f;
  --yc-surface: #071318;
  --yc-border: #0d2d38;
  --yc-cyber: #00c49a;
  --yc-plasma: #a855f7;
  --yc-acid: #a3e635;
  --yc-danger: #f87171;
  --yc-text: #c8e6e0;
  --yc-muted: #5a8a80;
}

.ykonos-section {
  background-color: #030c0f;
  color: #c8e6e0;
  font-family: 'Rajdhani', sans-serif;
}

.ykonos-section .card {
  background: #071318;
  border: 1px solid #0d2d38;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ykonos-section .card:hover {
  border-color: rgba(0,196,154,0.3);
  box-shadow: 0 0 20px rgba(0,196,154,0.08);
}

.ykonos-section .card-glow {
  box-shadow: 0 0 30px rgba(0,196,154,0.12), inset 0 1px 0 rgba(0,196,154,0.1);
}

.ykonos-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #00ffc8;
  text-shadow: 0 0 20px rgba(0,196,154,0.6), 0 0 40px rgba(0,196,154,0.3);
}

.ykonos-section .nav-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a8a80;
}

.ykonos-section .nav-btn:hover,
.ykonos-section .nav-btn.active {
  background: rgba(0,196,154,0.1);
  border-color: rgba(0,196,154,0.4);
  color: #00c49a;
}

.ykonos-section .nav-btn.active {
  color: #00c49a;
  box-shadow: 0 0 12px rgba(0,196,154,0.2);
}

.ykonos-section .section {
  display: none;
}

.ykonos-section .section.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  0% { max-height: 0; opacity: 0; }
  100% { max-height: 500px; opacity: 1; }
}

@keyframes slideUp {
  0% { max-height: 500px; opacity: 1; }
  100% { max-height: 0; opacity: 0; }
}

.ykonos-section .badge-hl7 {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  color: #c084fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.ykonos-section .badge-dicom {
  background: rgba(0,196,154,0.12);
  border: 1px solid rgba(0,196,154,0.35);
  color: #00c49a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.ykonos-section .badge-ai {
  background: rgba(163,230,53,0.1);
  border: 1px solid rgba(163,230,53,0.3);
  color: #bef264;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.ykonos-section .flow-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,196,154,0.06);
  border-bottom: 2px solid rgba(0,196,154,0.2);
  padding: 12px 16px;
  color: #00c49a;
}

.ykonos-section .flow-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13,45,56,0.8);
  font-size: 0.92rem;
}

.ykonos-section .counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #00c49a;
  text-shadow: 0 0 20px rgba(0,196,154,0.5);
}

.ykonos-section .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(0,196,154,0.1);
  border: 1px solid rgba(0,196,154,0.3);
  color: #00c49a;
  padding: 2px 8px;
  border-radius: 4px;
}

.ykonos-section .error-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ykonos-section .error-btn:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 15px rgba(239,68,68,0.2);
}

.ykonos-section .error-btn.selected {
  background: rgba(239,68,68,0.2);
  border-color: #f87171;
  box-shadow: 0 0 20px rgba(239,68,68,0.3);
}

.ykonos-section .check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.ykonos-section .check-item:hover {
  background: rgba(0,196,154,0.05);
}

.ykonos-section .check-item.checked {
  background: rgba(0,196,154,0.08);
  border-color: rgba(0,196,154,0.2);
}

.ykonos-section .check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #5a8a80;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all 0.2s;
}

.ykonos-section .check-item.checked .check-icon {
  background: #00c49a;
  border-color: #00c49a;
  color: #000;
}

.ykonos-section .progress-bar {
  height: 6px;
  background: rgba(0,196,154,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.ykonos-section .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c49a, #00e5b2);
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(0,196,154,0.5);
}

.ykonos-section .dicom-item {
  border-left: 3px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.ykonos-section .dicom-item:hover {
  border-left-color: #00c49a;
  background: rgba(0,196,154,0.05);
}

.ykonos-section .dicom-item.expanded {
  border-left-color: #00c49a;
  background: rgba(0,196,154,0.08);
}

.ykonos-section .dicom-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

.ykonos-section .dicom-detail.show {
  max-height: 600px;
  opacity: 1;
}

.ykonos-section pre {
  background: #030c0f;
  border: 1px solid #0d2d38;
  color: #00c49a;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8rem;
}

.ykonos-section .copy-btn {
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.ykonos-section pre:hover .copy-btn {
  opacity: 1;
}

.ykonos-section .copy-btn-script {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,196,154,0.08);
  border: 1px solid rgba(0,196,154,0.3);
  color: #5a8a80;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Rajdhani', sans-serif;
  opacity: 0;
}

.ykonos-section div:has(> pre):hover .copy-btn-script {
  opacity: 1;
}

.ykonos-section .copy-btn-script:hover {
  background: rgba(0,196,154,0.15);
  border-color: rgba(0,196,154,0.5);
  color: #00c49a;
  box-shadow: 0 0 12px rgba(0,196,154,0.15);
}

.ykonos-section .ykonos-chevron {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.ykonos-section input,
.ykonos-section textarea,
.ykonos-section select {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ykonos-section input:focus,
.ykonos-section textarea:focus,
.ykonos-section select:focus {
  outline: none;
  border-color: rgba(0,196,154,0.5);
  box-shadow: 0 0 12px rgba(0,196,154,0.15);
}

.ykonos-section .btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}

.ykonos-section .btn-agent {
  background: rgba(0,196,154,0.15);
  border: 1px solid rgba(0,196,154,0.3);
  color: #00c49a;
}

.ykonos-section .btn-agent:hover {
  background: rgba(0,196,154,0.25);
  border-color: rgba(0,196,154,0.5);
  box-shadow: 0 0 15px rgba(0,196,154,0.2);
}

.ykonos-section .btn-agent:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════
   HL7 TRAINING STYLES
   ══════════════════════════════════════════════════════ */

.hl7-training-section {
  background-color: #0a0e1a;
  color: #c8e6e0;
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
}

.hl7-header-top {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(0, 196, 154, 0.2);
}

.hl7-header-top h1 {
  font-size: 2rem;
  color: #00ffc8;
  text-shadow: 0 0 20px rgba(0, 196, 154, 0.6);
  margin: 0 0 8px;
  font-weight: 700;
}

.hl7-subtitle {
  color: #5a8a80;
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Space Mono', monospace;
}

/* Day Navigation */
.hl7-day-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(7, 19, 24, 0.8);
  border: 1px solid rgba(0, 196, 154, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.hl7-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: transparent;
  border: 2px solid rgba(0, 196, 154, 0.2);
  border-radius: 6px;
  color: #5a8a80;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.hl7-day-btn:hover {
  border-color: rgba(0, 196, 154, 0.4);
  background: rgba(0, 196, 154, 0.05);
  color: #00c49a;
}

.hl7-day-btn.active {
  border-color: rgba(0, 196, 154, 0.6);
  background: rgba(0, 196, 154, 0.1);
  color: #00ffc8;
  box-shadow: 0 0 15px rgba(0, 196, 154, 0.2);
}

.hl7-day-icon {
  font-size: 1.5rem;
}

.hl7-day-label {
  text-align: center;
  line-height: 1.3;
}

.hl7-day-label small {
  display: block;
  font-size: 0.7rem;
  color: inherit;
  opacity: 0.8;
  margin-top: 2px;
}

/* Content Container */
.hl7-content-container {
  animation: fadeIn 0.4s ease-out;
}

.hl7-header {
  margin-bottom: 28px;
}

.hl7-header h2 {
  font-size: 1.8rem;
  color: #00ffc8;
  text-shadow: 0 0 20px rgba(0, 196, 154, 0.5);
  margin: 0 0 12px;
  font-weight: 700;
}

.hl7-objective {
  font-size: 0.95rem;
  color: #5a8a80;
  margin: 0;
  padding: 12px 16px;
  background: rgba(0, 196, 154, 0.05);
  border-left: 3px solid rgba(0, 196, 154, 0.3);
  border-radius: 4px;
}

/* Concepts */
.hl7-concepts {
  margin-bottom: 28px;
}

.hl7-concepts h4 {
  color: #00c49a;
  font-size: 0.95rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hl7-concepts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hl7-concept-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 196, 154, 0.12);
  border: 1px solid rgba(0, 196, 154, 0.35);
  color: #00c49a;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.hl7-concept-tag:hover {
  background: rgba(0, 196, 154, 0.2);
  border-color: rgba(0, 196, 154, 0.5);
}

/* Theory */
.hl7-theory {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(7, 19, 24, 0.8);
  border: 1px solid rgba(0, 196, 154, 0.15);
  border-radius: 8px;
}

.hl7-theory h4 {
  color: #00c49a;
  font-size: 0.95rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hl7-theory-content h4 {
  color: #bef264;
  font-size: 0.9rem;
  margin: 16px 0 8px;
  font-weight: 600;
}

.hl7-theory-content h4:first-child {
  margin-top: 0;
}

.hl7-theory-content p {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #c8e6e0;
}

.hl7-theory-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.hl7-theory-content li {
  margin: 6px 0;
  font-size: 0.9rem;
}

.hl7-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.85rem;
}

.hl7-table th {
  background: rgba(0, 196, 154, 0.1);
  color: #00c49a;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid rgba(0, 196, 154, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.hl7-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13, 45, 56, 0.8);
}

.hl7-table tr:hover td {
  background: rgba(0, 196, 154, 0.02);
}

.hl7-code {
  display: block;
  background: rgba(3, 12, 15, 0.9);
  border: 1px solid rgba(0, 196, 154, 0.25);
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #bef264;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Exercises */
.hl7-exercises {
  margin-bottom: 28px;
}

.hl7-exercises h4 {
  color: #00c49a;
  font-size: 0.95rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hl7-exercises-list {
  display: grid;
  gap: 12px;
}

.hl7-exercise-card {
  background: rgba(7, 19, 24, 0.8);
  border: 1px solid rgba(0, 196, 154, 0.15);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
}

.hl7-exercise-card:hover {
  border-color: rgba(0, 196, 154, 0.3);
  box-shadow: 0 0 12px rgba(0, 196, 154, 0.08);
}

.hl7-exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 196, 154, 0.06);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 196, 154, 0.1);
}

.hl7-exercise-header h5 {
  color: #bef264;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.hl7-exercise-toggle {
  background: transparent;
  border: none;
  color: #00c49a;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  transition: all 0.2s;
}

.hl7-exercise-toggle:hover {
  color: #00ffc8;
}

.hl7-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hl7-exercise-body {
  padding: 16px;
  animation: slideDown 0.3s ease-out;
}

.hl7-exercise-body p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hl7-exercise-input {
  display: block;
  background: rgba(3, 12, 15, 0.9);
  border: 1px solid rgba(0, 196, 154, 0.2);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 10px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #c084fc;
  word-break: break-all;
  overflow-x: auto;
}

.hl7-show-answer-btn {
  background: rgba(0, 196, 154, 0.1);
  border: 1px solid rgba(0, 196, 154, 0.3);
  color: #00c49a;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s;
  margin: 10px 0;
}

.hl7-show-answer-btn:hover {
  background: rgba(0, 196, 154, 0.2);
  border-color: rgba(0, 196, 154, 0.5);
  box-shadow: 0 0 8px rgba(0, 196, 154, 0.15);
}

.hl7-answer-box {
  background: rgba(0, 196, 154, 0.08);
  border: 1px solid rgba(0, 196, 154, 0.25);
  border-left: 3px solid rgba(0, 196, 154, 0.5);
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c8e6e0;
  animation: slideDown 0.3s ease-out;
}

.hl7-answer-box strong {
  color: #bef264;
}

.hl7-answer-box p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

/* Agent Buttons */
.hl7-agent-buttons {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 196, 154, 0.1);
}

.hl7-agent-buttons h4 {
  color: #00c49a;
  font-size: 0.95rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hl7-agent-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #c8e6e0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hl7-agent-hl7 {
  border-color: rgba(200, 132, 252, 0.3);
  background: rgba(200, 132, 252, 0.05);
  color: #c084fc;
}

.hl7-agent-hl7:hover {
  border-color: rgba(200, 132, 252, 0.6);
  background: rgba(200, 132, 252, 0.12);
  box-shadow: 0 0 15px rgba(200, 132, 252, 0.15);
}

.hl7-agent-interview {
  border-color: rgba(190, 242, 100, 0.3);
  background: rgba(190, 242, 100, 0.05);
  color: #bef264;
}

.hl7-agent-interview:hover {
  border-color: rgba(190, 242, 100, 0.6);
  background: rgba(190, 242, 100, 0.12);
  box-shadow: 0 0 15px rgba(190, 242, 100, 0.15);
}

.hl7-btn-hint {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
