/* === DASHBOARD === */

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.dash-nav-link:hover { color: var(--cyan); }

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dash-nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.dash-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Form section */
.dash-form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.dash-form-header {
  margin-bottom: 1.5rem;
}

.dash-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.dash-form-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.watch-form {}

.form-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr auto;
  gap: 0.75rem;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--name { /* no special style needed */ }

.field-label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.optional {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.field-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.field-input::placeholder { color: var(--text-muted); }

.field-input:focus {
  border-color: var(--border-active);
}

.btn-add {
  background: var(--cyan);
  color: #080c14;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

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

.form-error {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  min-height: 1.2rem;
}

.form-success {
  color: var(--green);
  font-size: 0.82rem;
  margin-top: 0.6rem;
  min-height: 1.2rem;
}

/* Dash sections */
.dash-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dash-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-count-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  gap: 0.75rem;
}

.empty-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.empty-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 320px;
}

/* Watch rows */
.watch-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watch-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.watch-row:hover { border-color: rgba(255,255,255,0.12); }

.watch-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.watch-status.fresh { background: var(--amber); }
.watch-status.changed { background: var(--green); }

.watch-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.watch-url {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-url:hover { color: var(--cyan); }

.watch-host {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.watch-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.watch-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.btn-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.btn-delete:hover {
  color: var(--red);
  background: rgba(248,113,113,0.1);
}

/* Change rows */
.change-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.change-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.change-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.change-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.change-url {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.change-url:hover { color: var(--cyan); }

.change-summary {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.change-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .dash-container {
    padding: 2rem 1rem;
  }

  .dash-nav {
    padding: 1rem 1.5rem;
  }
}