:root {
  --accent: #0d6efd;
  --muted: #6c757d;
  --console-bg: #0f1720;
  --console-fg: #e6fff6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons & Inputs */
.btn, .form-control, .form-check-input {
  transition: all 0.2s ease;
}

.btn-primary:disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

input:invalid {
  border-color: #dc3545;
}
input:valid:not([value=""]) {
  border-color: #28a745;
}
.is-invalid {
  border-color: #dc3545 !important;
}

/* Card */
.card {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

/* Console */
#console {
  background: var(--console-bg);
  color: var(--console-fg);
  border-radius: 8px;
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #1e293b var(--console-bg);
}

#console::-webkit-scrollbar {
  width: 8px;
}
#console::-webkit-scrollbar-thumb {
  background-color: #1e293b;
  border-radius: 4px;
}
#console::-webkit-scrollbar-thumb:hover {
  background-color: #334155;
}

/* Log colors */
.log-error { color: #ff6b6b; font-weight: 600; }
.log-warn  { color: #facc15; }
.log-ok    { color: #4ade80; }

/* Info Display */
.info-display {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-family: "Courier New", monospace;
}
.info-display > div {
  display: flex;
  justify-content: space-between;
  padding: .25rem 0;
}
.info-display .label {
  font-weight: 600;
  color: #374151;
}
.info-display span:last-child {
  font-family: "Courier New", monospace;
  color: #212529;
}

/* Drag & Drop Styles */
.drop-zone {
  border: 2px dashed #0d6efd;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}
.drop-zone:hover {
  background: #e9ecef;
  border-color: #0b5ed7;
}
.drop-zone.dragover {
  background: #cfe2ff;
  border-color: #0b5ed7;
  border-style: solid;
  transform: scale(1.02);
}
.drop-zone.has-file {
  border-color: #28a745;
  background: #d1e7dd;
}
.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.drop-zone-text {
  color: #6c757d;
  margin: 0;
}
.file-input-hidden {
  display: none;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: #e9f2ff;
  color: #0d6efd;
}

/* Special SID metadata fields */
#sidAuthor,
#sidCopyright {
  background: #334155;
  color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
}

/* Labels */
.label {
  display: inline-block;
  width: 120px;
  font-weight: 600;
}
