/* ============================================
   Shine Detail - Booking & Admin Stylesheet
   Retro vintage theme: deep red + cream + serif
   ============================================ */

:root {
  --red: #C0392B;
  --red-dark: #9c2e22;
  --cream: #F5F0E8;
  --charcoal: #1A1A1A;
  --gray: #6b6660;
  --border: #e3dccc;
  --white: #FFFFFF;
  --green: #2e7d32;
  --amber: #b9770e;
  --radius: 8px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Footer ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--cream);
  padding: 36px 0;
  text-align: center;
  border-bottom: 4px solid var(--red);
}

.site-header .brand {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 6px;
}

.site-header .tagline {
  font-size: 0.95rem;
  color: #cfc8bb;
}

.site-footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ---------- Card / Layout ---------- */
main.container {
  padding-top: 36px;
  padding-bottom: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.06);
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--red);
}

.muted {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Form ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--charcoal);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

/* ---------- Services checkboxes ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-option:hover {
  border-color: var(--red);
}

.service-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.service-option span {
  flex: 1;
}

.service-option .price {
  flex: none;
  font-weight: 700;
  color: var(--red);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 22px 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.total-row span:last-child {
  color: #f0c419;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: transparent;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--red);
  color: var(--cream);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Messages ---------- */
.confirmation {
  text-align: center;
  padding: 28px;
  background: #eaf5ec;
  border: 1px solid #bfe0c4;
  border-radius: var(--radius);
  color: #1f5d2a;
  font-size: 1.05rem;
}

.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fbeaea;
  border: 1px solid #f0c2c2;
  border-radius: var(--radius);
  color: var(--red-dark);
  font-size: 0.9rem;
}

/* ---------- Admin: Login ---------- */
.login-card {
  max-width: 380px;
  margin: 60px auto 0;
}

/* ---------- Admin: Dashboard ---------- */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 1000px;
}

thead th {
  background: var(--charcoal);
  color: var(--cream);
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-heading);
  font-weight: 400;
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: #fbf8f3;
}

.status-select {
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.status-new { background: #fdf3e7; color: var(--amber); }
.status-confirmed { background: #e7f1fd; color: #1c5d99; }
.status-completed { background: #e7f5e9; color: var(--green); }
.status-cancelled { background: #fbeaea; color: var(--red-dark); }

.payment-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .site-header .brand {
    font-size: 2rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
