/* OPTION 1: Sunset Surf - Dark navy with warm orange accents */
* { box-sizing: border-box; }
:root {
  --bg: #0a1628;          /* deep navy blue */
  --panel: #152238;       /* lighter navy panel */
  --muted: #1e3a52;       /* muted blue-grey */
  --accent: #ff6b35;      /* vibrant sunset orange */
  --accent-strong: #ff4500; /* deep orange */
  --text: #e8f4f8;        /* light blue-white */
  --ok: #4ecdc4;          /* turquoise */
  --warn: #ffa500;        /* orange warn */
  --input-bg: #1e3a52;    /* muted blue input */
  --input-border: #2d4a62; /* lighter border */
  --card-border: #2d4a62;
}
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.app-header, .app-footer { position: sticky; left: 0; right: 0; background: var(--panel); padding: 10px 14px; display: flex; align-items: center; gap: 12px; z-index: 10; border-bottom: 2px solid var(--accent); }
.app-header { top: 0; justify-content: space-between; }
.app-footer { bottom: 0; justify-content: space-between; font-size: 12px; opacity: 0.8; border-top: 2px solid var(--accent); border-bottom: none; }
.brand { font-weight: 700; letter-spacing: 0.5px; color: var(--accent); }
.tabs { display: flex; gap: 8px; }
.tabs a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 6px; background: transparent; transition: all 0.2s ease; }
.tabs a:hover { background: var(--muted); }
.tabs a.active { background: var(--accent); color: #fff; font-weight: 600; }
main { padding: 12px; display: block; }
.page { display: none; }
.page.active { display: block; }
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 8px; }
label { display: grid; gap: 6px; font-size: 13px; }
.hidden { display: none !important; }
input, select, textarea, button { border-radius: 8px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); padding: 10px 12px; transition: all 0.2s ease; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #243b54; box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1); }
input::placeholder, textarea::placeholder { color: #7a9bb5; }
button { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); color: #fff; font-weight: 600; border: none; box-shadow: 0 4px 6px rgba(255, 107, 53, 0.3); cursor: pointer; }
button:active { transform: translateY(2px); box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3); }
button:hover { filter: brightness(1.1); }
.tabs a { transition: all 0.2s ease; }
.tabs a:active { transform: translateY(1px); }
.card, .cards .card { transition: transform 0.2s ease; }
.card:hover { transform: translateY(-2px); }

textarea { resize: vertical; }
.checkbox { align-items: center; grid-template-columns: 20px 1fr; }
.actions { display: flex; gap: 8px; }
.duration-inputs { display: flex; align-items: center; gap: 6px; }
.duration-inputs input { width: 70px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.card, .cards .card { background: var(--panel); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.table { width: 100%; overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--card-border); font-size: 13px; }
.table th { color: var(--accent); font-weight: 600; }
.hint { color: #7a9bb5; opacity: 0.9; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--muted); font-weight: 600; }
.badge.platinum { background: linear-gradient(90deg, #e5e4e2, #b8b8b8); color: #000; font-weight: 700; }
.badge.gold { background: linear-gradient(90deg, #ffd700, #ffb700); color: #000; }
.badge.silver { background: linear-gradient(90deg, #c0c0c0, #9e9e9e); color: #000; }
.badge.bronze { background: linear-gradient(90deg, #cd7f32, #b8722c); color: #fff; }
.badge.participant { background: var(--ok); color: #003534; }
.badge.observer { background: #8892b0; color: #0b132b; }
pre { white-space: pre-wrap; word-wrap: break-word; }

/* Toasts */
.toast-container { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--panel); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 8px; }
.toast.success { border-color: var(--ok); background: #0d2a27; }
.toast.warn { border-color: var(--warn); background: #2a2306; }
.toast.error { border-color: #ff4444; background: #2a0e12; }
.toast .close { margin-left: auto; opacity: .8; cursor: pointer; }

/* Live status */
.live { color: var(--ok); font-weight: 600; }

/* Edit icons and links */
.table .edit-link { color: var(--accent); text-decoration: underline; cursor: pointer; }
.table .edit-link:hover { color: var(--accent-strong); }

h2, h3 { color: var(--accent); }
