/* 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;
}
