/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.25_@babel+core@7.29.7_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.25_@babel+core@7.29.7_@types+node@22.20.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  background: #eef2ff;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
}

.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}

.btn:hover:not(:disabled) {
  border-color: var(--primary);
}

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

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.btn-approve {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

.btn-decline {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.btn-close {
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.1rem 0.5rem;
}

/* Sign-in / disabled pages */
.signin-page,
.disabled-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.signin-card {
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signin-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem;
}

/* App shell */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.app-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.user-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.user-switcher select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.legend-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legend-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.25rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text);
}

.legend-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chip-color, #888);
  display: inline-block;
}

.legend-chip-off {
  opacity: 0.4;
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 0.5rem;
}

/* Layout */
.app-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-gap: 1.25rem;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .app-body {
    grid-template-columns: 1fr;
  }
}

.calendar-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.side-column {
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Month view */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.month-view {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
  gap: 4px;
}

.month-grid-header {
  margin-bottom: 4px;
}

.weekday-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.day-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  cursor: pointer;
  text-align: left;
  min-height: 60px;
}

.day-cell:hover {
  border-color: var(--primary);
}

.day-cell-empty {
  border: none;
  background: transparent;
  cursor: default;
}

.day-cell-selected {
  background: #dbeafe;
  border-color: var(--primary);
}

.day-number {
  font-size: 0.8rem;
  font-weight: 600;
}

.day-trips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: auto;
}

.day-trip-bar {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  border: 2px solid;
  padding: 0;
}

.day-trip-more {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Agenda + trip lists */
.agenda-list,
.request-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-item,
.request-item-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  text-align: left;
}

.request-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.request-item-actions {
  display: flex;
  gap: 0.5rem;
  padding-left: 1.4rem;
}

.agenda-family-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agenda-main {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-width: 0;
}

.agenda-title {
  font-weight: 600;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color, #888) 15%, white);
  color: var(--chip-color, #333);
  border: 1px solid var(--chip-color, #888);
  white-space: nowrap;
}

/* Request panel */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font: inherit;
}

.violation-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.violation {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.violation-error {
  background: #fee2e2;
  color: #991b1b;
}

.violation-warning {
  background: #fef3c7;
  color: #92400e;
}

.violation-ok {
  background: #dcfce7;
  color: #166534;
}

.request-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Trip detail */
.trip-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.trip-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 0.25rem 0.75rem;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.trip-meta dt {
  color: var(--muted);
}

.trip-meta dd {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.decline-row {
  display: flex;
  gap: 0.5rem;
}

.decline-row input {
  flex: 1 1;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.comments h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comment {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
}

.comment-author {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font: inherit;
}

