/* booking.css */

/* 1. Variables & Reset */
:root {
  --primary: #8B0000;      /* Standard Maroon */
  --header-bg: #600000;    /* Deep Maroon for Header */
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-main: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --focus-ring: rgba(139, 0, 0, 0.25);
  --header-height: 72px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
}

/* 2. Header & Nav (PUP Dark Maroon Style) */
.site-header {
  background: var(--header-bg);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Brand/Logo Area */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.brand-img--clinic {
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #ffffff; /* White text */
}

.brand-subtitle {
  font-size: 11px;
  color: #e0e0e0; /* Light gray text */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg path { stroke: #ffffff; }

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.2s;
}

.nav-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff; /* White background for mobile menu */
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
  }
  .nav-list.show { display: flex; }
  .nav-list a {
    color: var(--text-main); /* Dark text for mobile menu */
    padding: 8px 0;
    font-size: 16px;
  }
  .brand-img {
    width: 42px;
    height: 42px;
  }
  .brand-text { display: none; } /* Hide text on small screens if crowded */
}

/* 3. Layout & Main Content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding-top: 40px;
  padding-bottom: 60px;
}

h1 { font-size: 28px; margin-bottom: 8px; color: var(--header-bg); }
.small { font-size: 14px; color: var(--text-light); margin-top: 0; }

.page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .page-grid { grid-template-columns: 1fr; }
}

/* 4. Cards & Forms */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 24px;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* 5. Buttons */
.actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  background: var(--primary);
  color: white;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: #600000; }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: #f7fafc;
  color: var(--text-main);
  border-color: #cbd5e0;
}

/* 6. Appointments List (Side Panel) */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-item {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.2s;
}

.app-item:hover { border-color: #cbd5e0; }

.app-item strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}

.app-item span {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}

.app-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.btn-sm {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  background: #edf2f7;
  color: var(--text-main);
  border: none;
}
.btn-sm:hover { background: #e2e8f0; }
.btn-sm.delete:hover { background: #fee2e2; color: #c53030; }
