@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/regular.woff2') format('woff2'),
       url('fonts/regular.woff') format('woff'),
       url('fonts/regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/bold.woff2') format('woff2'),
       url('fonts/bold.woff') format('woff'),
       url('fonts/bold.ttf') format('truetype');
}

body {
  font-family: LucidaSans, Arial, sans-serif;
  font-size: 13px;
  color: #34260a;
  margin: 0;
  background: #f2f2f2;
}

.calendar-app .app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #698d9a;
  color: white;
}

.calendar-app header h1 {
  flex: 1;
  margin: 0;
  font-family: 'Vollkorn', serif;
  font-size: 1.4rem;
  font-weight: bold;
}

.auth-controls button, .app-header button {
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 3px;
  background: #8cb0bd;
  color: #34260a;
  font-family: LucidaSans, Arial, sans-serif;
}

.auth-controls button:hover, .app-header button:hover {
  background: #6f1d01;
  color: #fff;
}

.date-slider-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #e6e6e6;
  border-bottom: 1px solid #cfcfcf;
}

.date-slider {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  cursor: pointer;
}

.weekday-row, .month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekday {
  text-align: center;
  font-weight: bold;
  color: #34260a;
  padding: 0.5rem;
}

.day-cell {
  min-height: 100px;
  border: 1px solid #ddd;
  padding: 0.25rem;
  cursor: pointer;
  background: #fff;
}

.day-cell.empty {
  background: #f0f0f0;
  cursor: default;
}

.day-number {
  font-weight: bold;
  font-size: 0.85rem;
  color: #34260a;
}

.event-chip {
  position: relative;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 2px 4px;
  margin-top: 2px;
  color: white;
}

.event-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  width: 220px;
  margin-top: 4px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #34260a;
  color: #fff;
  font-size: 0.75rem;
  white-space: normal;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.event-chip:hover .event-tooltip {
  display: block;
}

.tooltip-row {
  margin-bottom: 0.25rem;
}

.tooltip-row:last-child {
  margin-bottom: 0;
}

.status-confirmed { background: #698d9a; }
.status-tentative { background: #cc9933; color: #34260a; }
.status-canceled { background: #999; text-decoration: line-through; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(52, 38, 10, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal {
  background: #fff;
  color: #34260a;
  padding: 1.5rem;
  border-radius: 8px;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-family: 'Vollkorn', serif;
}

.field {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.field input, .field textarea, .field select {
  padding: 0.4rem;
  font-family: LucidaSans, Arial, sans-serif;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.modal-actions button {
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 3px;
  background: #698d9a;
  color: #fff;
}

.modal-actions button:hover {
  background: #6f1d01;
}

.modal-actions button:disabled {
  background: #b0bfc5;
  cursor: default;
}

.modal-errors {
  margin-bottom: 0.75rem;
}

.modal-error {
  color: #6f1d01;
  background: #f6e6e0;
  border: 1px solid #d9b8ac;
  border-radius: 3px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
}

.banner-error {
  color: #6f1d01;
  background: #f6e6e0;
  border-bottom: 1px solid #d9b8ac;
  padding: 0.5rem 1rem;
}
