@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Outfit:wght@300;400;500;600&display=swap');

* { box-sizing: border-box; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400; margin: 0; padding: 0;
  background: #faf9f7; color: #2c2c2c;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 2rem; background: #1a1a1a; color: #f5f0e8;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; }
.logout button {
  background: transparent; color: #f5f0e8; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.8rem; cursor: pointer; border-radius: 2px; font-family: inherit; font-size: 0.85rem;
}
.logout button:hover { background: rgba(255,255,255,0.08); }

/* Layout */
.main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }
h1 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600;
  margin: 0 0 0.25rem 0; color: #1a1a1a;
}
.meta { color: #6b6b6b; font-size: 0.9rem; margin-bottom: 1rem; font-weight: 300; }
.hint {
  background: #f5f2ed; padding: 0.75rem 1rem; border-radius: 2px;
  margin-bottom: 1.25rem; border-left: 3px solid #c9a962; font-size: 0.9rem; color: #3d3d3d;
}
.empty { font-size: 1rem; color: #555; }
.muted { color: #6b6b6b; font-size: 0.85rem; font-weight: 300; }

/* Admin topbar */
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.btn-small {
  font-size: 0.8rem; padding: 0.3rem 0.7rem; background: transparent; color: #6b6b6b;
  border: 1px solid #d0c9bc; border-radius: 2px; text-decoration: none; cursor: pointer;
}
.btn-small:hover { background: #f5f2ed; border-color: #c9a962; color: #3d3d3d; }

/* Summary bar */
.summary-bar {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem; padding: 0.6rem 1rem;
  background: #fff; border: 1px solid #e8e4dc; border-radius: 2px; font-size: 0.9rem;
}
.sum-ok strong { color: #2e7d32; }
.sum-refused strong { color: #c62828; }
.sum-pending strong { color: #9e9e9e; }

/* Category */
.cat-section { margin-bottom: 1.5rem; }
.cat-title {
  font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: #6b6b6b;
  margin: 0 0 0.5rem 0; padding-bottom: 0.3rem; border-bottom: 1px solid #e5e0d8;
}

/* Theme table */
.theme-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e8e4dc; border-radius: 2px; margin-bottom: 0.5rem;
}
.theme-table th {
  text-align: left; padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  color: #6b6b6b; background: #f8f6f2; border-bottom: 1px solid #e8e4dc;
}
.theme-table td {
  padding: 0.5rem 0.75rem; font-size: 0.9rem; border-bottom: 1px solid #f0ece4;
  vertical-align: middle;
}
.col-theme { width: 45%; }
.col-type { width: 12%; }
.col-choice { width: 30%; }
.col-status { width: 22%; }
.col-action { width: 25%; }
.admin-table .col-theme { width: 35%; }

.type-badge {
  display: inline-block; background: #f0ebe2; color: #5a5348; padding: 0.15rem 0.5rem;
  border-radius: 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em;
}

/* Row states */
.row-ok { background: #f6faf6; }
.row-refused { background: #fdf6f5; }

/* Status labels */
.status-ok { color: #2e7d32; font-weight: 500; font-size: 0.85rem; }
.status-refused { color: #c62828; font-weight: 500; font-size: 0.85rem; }
.status-pending { color: #9e9e9e; font-size: 0.85rem; }
.client-note { font-size: 0.8rem; color: #666; display: block; margin-top: 0.2rem; }

/* Radio */
.radio-label { margin-right: 1rem; cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.radio-label input { margin-right: 0.25rem; }

/* Comment row */
.comment-row td { padding: 0.25rem 0.75rem 0.5rem; background: #faf9f7; }
.comment-row textarea {
  width: 100%; padding: 0.4rem 0.6rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.85rem; background: #fff; resize: vertical; min-height: 40px;
}
.comment-row textarea:focus { outline: none; border-color: #c9a962; }
.comment-text { font-size: 0.85rem; color: #555; margin: 0; }

/* Admin replace input */
.replace-input {
  width: 60%; padding: 0.3rem 0.5rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.85rem; background: #fff; margin-right: 0.3rem;
}
.replace-input:focus { outline: none; border-color: #c9a962; }
.btn-replace {
  padding: 0.3rem 0.6rem; background: #1a1a1a; color: #f5f0e8; border: none;
  border-radius: 2px; cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 500;
}
.btn-replace:hover { background: #2d2d2d; }

/* Bottom bar */
.bottom-bar { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.bottom-hint { margin-top: 0.3rem; }

/* Buttons */
.btn {
  padding: 0.6rem 1.25rem; border-radius: 2px; border: none; cursor: pointer;
  font-size: 0.9rem; font-family: inherit; font-weight: 500; letter-spacing: 0.02em;
}
.btn-primary { background: #1a1a1a; color: #f5f0e8; }
.btn-primary:hover { background: #2d2d2d; }
.btn-primary:disabled { background: #999; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #3d3d3d; border: 1px solid #c0b8a8; }
.btn-secondary:hover { background: #f5f2ed; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f5f2ed; }
.login-box {
  background: #fff; padding: 2.5rem; border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); width: 100%; max-width: 340px; border: 1px solid #e8e4dc;
}
.login-box h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-top: 0; margin-bottom: 0.5rem; }
.login-subtitle { font-size: 0.85rem; color: #888; margin: 0 0 1.25rem 0; }
.login-box label { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: #3d3d3d; }
.login-box input {
  width: 100%; padding: 0.5rem 0.6rem; margin-top: 0.2rem; border: 1px solid #e0dbd2;
  border-radius: 2px; font-family: inherit; font-size: 0.95rem; background: #faf9f7;
}
.login-box button {
  margin-top: 1.5rem; width: 100%; padding: 0.6rem; background: #1a1a1a; color: #f5f0e8;
  border: none; border-radius: 2px; cursor: pointer; font-family: inherit; font-weight: 500;
}
.login-box button:hover { background: #2d2d2d; }
.login-box .error { color: #a44; font-size: 0.85rem; margin-top: 0.5rem; }

/* History table */
.history-table td { font-size: 0.85rem; }
.col-date { width: 15%; white-space: nowrap; font-size: 0.8rem; color: #888; }
.status-replaced { color: #e65100; font-weight: 500; font-size: 0.85rem; }
del { color: #999; text-decoration: line-through; }

/* Client logo */
.client-logo { display: block; max-height: 60px; margin-bottom: 1rem; }

/* Links */
a { color: #1a1a1a; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.15); }
a:hover { border-bottom-color: #c9a962; }
