/* Base light theme + tokens */
*{box-sizing:border-box}
:root{
  --bg:#ffffff;
  --text:#1a1b21;
  --muted:#5f6570;
  --surface:#ffffff;
  --border:#e9eef3;
  --brand:#0a7c66;
  --brand-2:#c2a254; /* gold accent */
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 'Inter',system-ui,Segoe UI,Arial,sans-serif}

img{
  display:block;
  max-width:100%}

a{color:inherit;
  text-decoration:none}

.container{
  max-width:1120px;
  margin:32px auto;
  padding:0 16px}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px}

.btn{display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:500;
  cursor:pointer;
  transition:.15s}

.btn:hover{background:#f6f9fc}

.btn.solid{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:transparent;
  font-weight:600}

.btn.solid:hover{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  filter:brightness(1.07);
  box-shadow:0 4px 12px rgba(10,124,102,.25)}

.btn:active{transform:translateY(1px)}

.btn:disabled,.btn[disabled]{
  background:#f1f4f8;
  color:var(--muted);
  border-color:var(--border);
  box-shadow:none;
  cursor:not-allowed}

.btn:disabled:hover,.btn[disabled]:hover{background:#f1f4f8;filter:none;transform:none}

/* Book cards: the cover runs to the card edge, the body carries the padding. */
.book-card{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column}

.book-card img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  border:0;
  border-radius:0}

.book-card .bc-body{
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1}

.book-card .actions{
  display:flex;
  gap:8px;
  margin-top:auto;
  padding-top:10px}

.book-card .actions>.btn{flex:1;text-align:center}

.muted{color:var(--muted)}

.small{font-size:.9rem}

.form{display:grid;gap:12px}

.label{font-weight:600}

.input{
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  background:#fff}

.input:focus{
  box-shadow:0 0 0 3px rgba(10,124,102,.15);
  border-color:#cde7e1}

.row{display:flex;gap:8px}

.grid{display:grid;gap:16px}

/* Tables */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0}

.table th,.table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left}

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #f7c2c2;
  background:#fff3f3;
  color:#9b1c1c}

.footer-links {
  list-style: none;         
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 4px 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

