/* fpv-heatmap — Global Styles */

:root {
  --bg-dark: #0a0e27;
  --bg-darker: #050812;
  --fg-light: #e0e0e0;
  --fg-lighter: #f5f5f5;
  --accent-cyan: #00d9ff;
  --accent-red: #ff4444;
  --border-dim: #333;
  --font-mono: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

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

body {
  background: var(--bg-dark);
  color: var(--fg-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: var(--bg-darker);
  color: var(--fg-light);
  border: 1px solid var(--border-dim);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--border-dim);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

.btn {
  background: var(--bg-darker);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

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

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: #00b3cc;
}

.btn-danger {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-danger:hover {
  background: var(--accent-red);
  color: white;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 12px;
}

.panel {
  background: var(--bg-darker);
  border: 1px solid var(--border-dim);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.panel h2, .panel h3 {
  font-size: 16px;
  margin-bottom: 0.75rem;
  color: var(--accent-cyan);
}

.panel p {
  margin-bottom: 0.75rem;
  color: #999;
  font-size: 13px;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

label input, label select, label textarea {
  display: block;
  margin-top: 0.25rem;
  width: 100%;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-dim);
}

.header h1 {
  font-size: 24px;
  color: var(--accent-cyan);
}

/* Utility */
.hidden {
  display: none !important;
}

.tagline {
  font-size: 12px;
  color: #666;
  margin-top: 0.25rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--font-mono);
}

table thead {
  border-bottom: 1px solid var(--border-dim);
}

table th {
  text-align: left;
  padding: 0.5rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

table td {
  padding: 0.5rem;
  border-bottom: 1px solid #222;
}

table tr:hover {
  background: rgba(0, 217, 255, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  border-radius: 3px;
  font-weight: 600;
}

.status-draft {
  background: rgba(255, 200, 0, 0.2);
  color: #ffc800;
}

.status-published {
  background: rgba(0, 200, 100, 0.2);
  color: #00c864;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  table {
    font-size: 12px;
  }

  table th, table td {
    padding: 0.25rem 0.5rem;
  }
}
