/* Alidah Schedule - Global Styles */

:root {
  --color-mityanna: #e3f2fd;
  --color-alicia: #fff3e0;
  --color-grandma: #f3e5f5;
  --color-angie: #e8f5e9;
  --color-nicole: #fafafa;
  --color-gap: #ffcdd2;
  --color-gap-text: #b71c1c;
  --color-draft: #fff9c4;
  --color-bg: #fdfcfb;
  --color-text: #3d3d3d;
  --color-text-soft: #6b6b6b;
  --color-accent: #e8a87c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

/* Background photo - subtle watermark */
.bg-photo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
}

.bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) blur(2px);
}

/* Header with photo */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.header-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.header-text h1 {
  margin: 0;
  font-size: 1.75em;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  margin-bottom: 5px;
}

h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 500;
}

.subtitle {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 1.1em;
  font-weight: 400;
}

/* Navigation tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 0.9em;
  color: var(--color-text-soft);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.tab:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: var(--color-text);
}

.tab.active {
  background: var(--color-text);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tab.draft::after {
  content: " (DRAFT)";
  font-size: 0.8em;
  opacity: 0.8;
}

/* Archive dropdown */
.archive-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95em;
  background: white;
}

/* Schedule tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

th, td {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.85em;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: #f8f8f7;
  font-weight: 500;
  color: var(--color-text-soft);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td:first-child {
  font-weight: 500;
  background: #fafaf9;
  width: 50px;
  color: var(--color-text-soft);
}

/* Helper colors */
.mityanna { background: var(--color-mityanna); }
.alicia { background: var(--color-alicia); }
.grandma { background: var(--color-grandma); }
.angie { background: var(--color-angie); }
.nicole { background: var(--color-nicole); }
.gap { background: var(--color-gap); color: var(--color-gap-text); font-weight: bold; }

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  font-size: 0.75em;
}

.legend a {
  text-decoration: none;
}

.legend a:hover span {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.legend span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  color: var(--color-text-soft);
  transition: all 0.15s ease;
}

/* Notes and info boxes */
.notes-box {
  background: white;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 0.85em;
  color: var(--color-text-soft);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-left: 3px solid var(--color-accent);
}

.notes-box strong {
  color: var(--color-text);
}

.notes-box p {
  margin: 4px 0;
}

.week-note {
  color: var(--color-text-soft);
  font-style: italic;
  margin-bottom: 12px;
  font-size: 0.9em;
}

/* Draft indicator */
.draft-banner {
  background: var(--color-draft);
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.draft-banner strong {
  color: #f9a825;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 10px;
}

.status-locked {
  background: #c8e6c9;
  color: #2e7d32;
}

.status-open {
  background: var(--color-draft);
  color: #f57f17;
}

/* Footer / contact info */
.footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  color: var(--color-text-soft);
  font-size: 0.85em;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.subtle-links {
  margin-top: 12px;
}

.subtle-links a {
  color: #bbb;
  font-size: 0.8em;
  margin: 0 10px;
  text-decoration: none;
}

.subtle-links a:hover {
  color: var(--color-text-soft);
}

/* Loading state */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Error state */
.error {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

/* Caregiver guide link banner */
.caregiver-link {
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9em;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.caregiver-link a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.caregiver-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    margin: 20px auto;
    padding: 0 15px;
  }

  th, td {
    padding: 4px 3px;
    font-size: 0.8em;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    text-align: center;
  }
}
