/* =============== Global Reset =============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(120deg, #e8ebf0, #f8fafc);
  color: #222;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* =============== Layouts =============== */
.topbar, .adminbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky; top: 0;
}

.topbar .brand, .adminbar strong {
  font-weight: 600;
  font-size: 1.1rem;
  color: #0b132b;
  display: flex; align-items: center;
}
.topbar img {
  width: 34px; height: 34px; border-radius: 8px; margin-right: 10px;
}

.container, .admin {
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* =============== Auth =============== */
body.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b132b, #1c2541);
  color: #fff;
}
.auth-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 40px 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
}
.auth-card label {
  display: block;
  margin-bottom: 10px;
  color: #e0e0e0;
}
.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  margin-top: 4px;
}
.auth-card input:focus {
  outline: 2px solid #2ec4b6;
}
.auth-card .btn {
  width: 100%;
  padding: 10px;
  background: #2ec4b6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.auth-card .btn:hover {
  background: #1fa896;
}

/* =============== Cards / Buttons =============== */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); }

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: #2ec4b6;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: #239f94; }

/* =============== Reader UI =============== */
.reader {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  line-height: 1.7;
  font-size: 18px;
  color: #1c2541;
}
.reader h1, .reader h2 {
  color: #0b132b;
  margin-top: 20px;
  border-left: 4px solid #2ec4b6;
  padding-left: 10px;
}
.reader p { margin-bottom: 14px; }

/* =============== Tables =============== */
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.table th {
  background: #f9fafb;
  font-weight: 600;
}

/* =============== Footer =============== */
.footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}
