* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #111;
  color: #fff;
  padding: 24px;
}

.sidebar a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
}

.main {
  margin-left: 240px;
  padding: 32px;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
}

textarea {
  min-height: 120px;
}

textarea.big {
  min-height: 260px;
  font-family: monospace;
}

button {
  margin-top: 16px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.logout {
  background: #444;
}

.alert {
  padding: 12px;
  border-radius: 10px;
  margin: 16px 0;
}

.alert-error {
  background: #ffe5e5;
  color: #9b0000;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.card,
.panel {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin-bottom: 24px;
}

.google-preview {
  background: #fff;
  border: 1px solid #ddd;
  padding: 18px;
  border-radius: 12px;
  max-width: 720px;
}

.google-preview h3 {
  color: #1a0dab;
  margin: 0 0 6px;
  font-size: 20px;
}

.google-preview span {
  color: #006621;
  font-size: 14px;
}

.google-preview p {
  color: #545454;
  font-size: 15px;
}

.user-summary {
  color: #ddd;
  line-height: 1.4;
  margin: 12px 0 20px;
}

.user-summary small {
  color: #aaa;
  text-transform: uppercase;
  font-size: 11px;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.alert-success {
  background: #e7f8ec;
  color: #176b2c;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.button-link,
.secondary-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.button-link {
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
}

.secondary-link {
  margin-left: 12px;
  color: #444;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.data-table th {
  font-size: 13px;
  text-transform: uppercase;
  color: #555;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions form {
  display: inline;
}

.actions button,
.danger {
  margin-top: 0;
  padding: 8px 12px;
}

.danger {
  background: #9b0000;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.form-panel {
  max-width: 760px;
}


.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.option-list {
  border: 1px solid #eee;
  border-radius: 12px;
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
}

.option-list .checkbox-label {
  margin: 8px 0;
  font-weight: 400;
}

.muted {
  color: #666;
  font-size: 14px;
}

.taxonomy-picker {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .two-columns,
  .cards {
    grid-template-columns: 1fr;
  }
}
