/* VectorFlow Demo — Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 16px 24px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e94560;
}

.badge {
  font-size: 0.7rem;
  color: #1a1a2e;
  background: #e94560;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

.tagline {
  font-size: 0.78rem;
  color: #666;
}

.header-links {
  display: flex;
  gap: 14px;
}

.header-links a {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.header-links a:hover {
  color: #e94560;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* File Inputs */
.file-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #16213e;
  border-radius: 8px;
  border: 1px solid #0f3460;
}

.file-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  white-space: nowrap;
}

.file-input-group input[type="file"] {
  font-size: 0.8rem;
  color: #ccc;
}

.file-name {
  font-size: 0.75rem;
  color: #666;
}

#load-btn {
  padding: 8px 20px;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-left: auto;
}

#load-btn:hover:not(:disabled) {
  background: #c73550;
}

#load-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* SVG Viewport */
.svg-viewport {
  flex: 1;
  min-height: 300px;
  background: #0f0f23;
  border-radius: 8px;
  border: 1px solid #0f3460;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.svg-viewport svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.placeholder {
  color: #444;
  font-size: 1rem;
  text-align: center;
}

.placeholder-hint {
  margin-top: 8px;
  font-size: 0.8rem;
}

.placeholder-hint a {
  color: #e94560;
  text-decoration: none;
}

.placeholder-hint a:hover {
  text-decoration: underline;
}

/* Status Bar */
.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #16213e;
  border-radius: 8px;
  border: 1px solid #0f3460;
  font-size: 0.85rem;
}

.status-label {
  color: #888;
  font-weight: 600;
}

.status-value {
  color: #e94560;
  font-weight: 500;
  margin-right: 16px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #16213e;
  border-radius: 8px;
  border: 1px solid #0f3460;
  min-height: 52px;
}

.action-buttons:empty::before {
  content: 'No actions loaded';
  color: #444;
  font-size: 0.85rem;
}

.action-btn {
  padding: 8px 18px;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #1a4a8a;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #1a4a8a;
  border-color: #2a6ad0;
}

.action-btn.active {
  background: #e94560;
  border-color: #e94560;
  color: white;
}

.stop-btn {
  padding: 8px 18px;
  background: #600;
  color: #ff6b6b;
  border: 1px solid #900;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.stop-btn:hover {
  background: #800;
  border-color: #c00;
}

/* Error Display */
.error-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #3d0000;
  border: 1px solid #800;
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 0.85rem;
}

.error-icon {
  font-size: 1.2rem;
}

.error-message {
  flex: 1;
}

.error-close {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.error-close:hover {
  color: #fff;
}

/* Footer */
footer {
  padding: 12px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  border-top: 1px solid #0f3460;
  background: #16213e;
}

footer a {
  color: #e94560;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
