/* Proton Magazine - Modern Theme */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
header {
  background: var(--primary);
  color: white;
  padding: 1.2rem 2rem;
  border-bottom: 3px solid var(--accent);
}
header h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; }
header h1 a { color: white; text-decoration: none; }
nav {
  background: var(--primary-light);
  padding: 0.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover { color: white; }
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.card h2 { margin-bottom: 1rem; font-size: 1.4rem; }
footer {
  background: var(--primary);
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}
footer a { color: #cbd5e1; margin: 0 0.75rem; text-decoration: none; }
footer a:hover { color: white; }

/* Forms */
input[type="text"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin: 0.4rem 0 1rem;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
button, .btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
button:hover, .btn:hover { background: var(--accent-hover); }
.btn-secondary { background: #64748b; }
.btn-danger { background: var(--danger); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th { text-align: left; padding: 0.75rem; background: #f1f5f9; font-weight: 600; }
td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: #f8fafc; }

/* Admin specific */
.login-box { max-width: 420px; margin: 4rem auto; }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Quill overrides */
.ql-toolbar { border-radius: 8px 8px 0 0 !important; border-color: var(--border) !important; }
.ql-container { border-radius: 0 0 8px 8px !important; border-color: var(--border) !important; min-height: 300px; }

@media (max-width: 768px) {
  nav { flex-direction: column; gap: 0.5rem; }
  .container { padding: 1rem; }
}
