@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --accent: #db8402;
  --accent-hover: #b36d03;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #333333;
  --text-muted: #666666;
  --border: #dddddd;
  --success: #28a745;
  --danger: #dc3545;
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); }

h1, h2, h3 { font-family: var(--font-heading); }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.header { text-align: center; padding: 30px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.header img { max-height: 60px; }
.card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }

input[type="text"], input[type="password"], input[type="email"],
input[type="date"], input[type="time"], input[type="number"],
textarea, select {
  width: 100%; padding: 10px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; font-family: var(--font-body);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 2px rgba(219,132,2,0.15);
}

.btn { display: inline-block; padding: 12px 30px; border-radius: 25px;
       font-weight: 500; text-decoration: none; cursor: pointer;
       border: none; font-size: 15px; font-family: var(--font-body); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--bg-alt); font-weight: 600; font-size: 13px; }
.table-responsive { overflow-x: auto; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px;
         font-size: 12px; font-weight: 600; }
.badge-active { background: #d4edda; color: #155724; }
.badge-closed { background: #e2e3e5; color: #383d41; }

.alert { padding: 12px 20px; border-radius: 4px; margin-bottom: 15px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.vote-cell { cursor: pointer; text-align: center; min-width: 50px;
             user-select: none; transition: background 0.15s; }
.vote-cell.available { background: #d4edda; }
.vote-cell.unavailable { background: #f0f0f0; }
.vote-cell:hover { opacity: 0.8; }

.link-copy { display: flex; gap: 8px; align-items: center; }
.link-copy input { flex: 1; background: var(--bg-alt); }

.footer { text-align: center; padding: 20px; color: var(--text-muted);
          font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }

@media (max-width: 768px) {
  .container { padding: 15px; }
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
  .btn { padding: 10px 20px; }
}
