:root {
  --bg-1: #0b1020;
  --bg-2: #0f1724;
  --card: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.03);
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --muted: #9aa4b2;
  --success: #2dd4bf;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(124, 92, 255, 0.12), transparent),
    radial-gradient(600px 300px at 90% 90%, rgba(0, 212, 255, 0.08), transparent);
  pointer-events: none;
}
.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1;
  position: relative;
}
.container.wide {
  align-items: flex-start;
}

.layout {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
}

.side-nav {
  min-width: 170px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
  height: fit-content;
}
.side-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.side-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #e6eef8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}
.side-link:hover {
  border-color: rgba(124, 92, 255, 0.25);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.12);
}
.side-link.active {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.18);
}
.side-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--card), var(--glass));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.card h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.input-group label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input-group input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(3, 7, 18, 0.45);
  color: inherit;
  font-size: 14px;
  outline: none;
}
.input-group input:focus {
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.25);
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 74px;
}
.password-input.is-masked {
  -webkit-text-security: disc;
}
.password-toggle {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.password-toggle:hover {
  color: #e6eef8;
  background: rgba(255, 255, 255, 0.06);
}
.password-toggle:focus-visible {
  outline: none;
  color: #e6eef8;
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.18);
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #061223;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.12);
}
.btn.outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.btn.outline.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn.outline.danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}
.btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 4%), transparent);
}

/* Profile row layout and inputs */
.profile-row strong {
  width: 110px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.profile-row span {
  flex: 1;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
.profile-row input {
  flex: 1;
  max-width: 300px;
  margin-left: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font-size: 14px;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    transform 120ms ease;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.01);
}
.profile-row input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.profile-row input:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.32);
}

/* Make save button visually prominent */
#save-profile {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #061223;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.12);
  margin-right: 8px;
}
#cancel-edit {
  margin-right: 8px;
}

/* mobile adjustments for many profile rows */
@media (max-width: 480px) {
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-row strong {
    width: auto;
    margin-bottom: 6px;
  }
  .profile-row span,
  .profile-row input {
    width: 100%;
    text-align: left;
  }
  .profile-row input {
    max-width: 100%;
    margin-left: 0;
  }
}
.divider span {
  font-size: 12px;
  color: var(--muted);
}
.social {
  display: flex;
  justify-content: center;
}
.btn.google {
  background: linear-gradient(90deg, #fff 0%, #f1f5f9 100%);
  color: #0b1020;
}
.message {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.message.loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(124, 92, 255, 0.2);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
    border-radius: 12px;
  }
  .actions {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .container {
    padding: 16px;
  }
  .container.wide {
    align-items: flex-start;
    padding-top: 20px;
  }
  .layout {
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
  }
  .side-nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
  }
  .side-title {
    display: none;
  }
  .side-link {
    margin-bottom: 0;
    padding: 8px 14px;
    font-size: 14px;
  }
  .card {
    width: 100%;
    max-width: 100%;
  }
}

/* Responsive calendar for smaller screens */
@media (max-width: 640px) {
  .calendar {
    padding: 8px;
  }
  .cal-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .cal-title {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 16px;
  }
  .cal-title button {
    font-size: 10px;
    padding: 4px 8px;
  }
  .cal-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .cal-nav button {
    padding: 4px;
    font-size: 12px;
  }
  .cal-nav button.today-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  .cal-grid {
    gap: 4px;
  }
  .cal-weekday {
    font-size: 10px;
    padding: 2px;
  }
  .cal-cell {
    padding: 4px;
    border-radius: 6px;
    font-size: 11px;
  }
  .cal-cell .day {
    font-size: 12px;
    font-weight: 600;
  }
  .cal-cell .badge,
  .cal-cell .birthday-badge,
  .cal-cell .event-badge,
  .cal-cell .vacation-label {
    font-size: 9px;
    padding: 2px 4px;
    margin-top: 2px;
  }
  .group-stats {
    font-size: 9px;
    gap: 4px;
    margin-top: 3px;
  }
  .group-stats .stat {
    padding: 2px 4px;
  }
  .group-stats .stat .dot {
    width: 8px;
    height: 8px;
  }
}

/* Larger layout: widen the card on bigger screens so the calendar has room */
@media (min-width: 720px) {
  .card {
    max-width: 860px;
    padding: 32px;
  }
  /* allow calendar to fill available width inside the larger card */
  .calendar {
    max-width: 820px;
    margin: 0 auto;
  }
  .cal-grid {
    gap: 10px;
  }
}
.hidden {
  display: none;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  align-items: center;
}

/* Calendar styles */
.calendar {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 12px;
  border-radius: 10px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-nav button {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.cal-nav button.today-btn {
  margin-right: 8px;
  padding: 6px 12px;
  font-size: 13px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent);
}
.cal-nav button.today-btn:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.4);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-weekday {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.cal-cell {
  /* make cells square by using aspect-ratio; width comes from the grid column */
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  cursor: default;
}
.cal-cell.inactive {
  opacity: 0.28;
}
.cal-cell.available {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.12);
}
.cal-cell .day {
  font-weight: 600;
  color: inherit;
}
.cal-cell .badge {
  margin-top: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.cal-cell .choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-cell .choice .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.cal-cell.choice-present .dot {
  background: #10b981;
}
.cal-cell.choice-later .dot {
  background: #f59e0b;
}
.cal-cell.choice-no .dot {
  background: #ef4444;
}

/* group stats (counts of other users' choices) */
.group-stats {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
  font-size: 12px;
}
.group-stats.none {
  color: rgba(255, 255, 255, 0.28);
}
.group-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
.group-stats .stat .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.group-stats .stat.present .dot {
  background: #10b981;
}
.group-stats .stat.later .dot {
  background: #f59e0b;
}
.group-stats .stat.no .dot {
  background: #ef4444;
}

/* popup options */
.cal-popup {
  position: fixed;
  z-index: 1000;
  /* darker, more opaque background so controls are easier to read */
  background: rgba(6, 18, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 8px;
}
.cal-popup button {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}
.cal-popup button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.5);
}

/* Avatar / photo */
.profile-photo-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 12px;
}
.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
  cursor: pointer;
}
.profile-photo.hidden {
  display: none;
}

/* edit visibility is controlled per field in profile.js */
.card.editing .profile-row input.hidden {
  display: none;
}
.card.editing .profile-row input:not(.hidden) {
  display: block;
}

/* Members grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.member-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.5);
  transition: all 180ms ease;
}
.member-card:hover {
  border-color: rgba(124, 92, 255, 0.25);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.15);
  transform: translateY(-2px);
}
.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
  margin-bottom: 10px;
}
.member-name {
  font-weight: 700;
}
.member-title {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

/* Turf page */
.turf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.turf-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.5);
}
.turf-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
  margin-bottom: 8px;
}
.turf-name {
  font-weight: 700;
}
.turf-title {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}
.turf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.turf-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e6eef8;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.turf-btn:hover {
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.16);
}
.turf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.turf-value {
  min-width: 36px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
}

/* Quotes page styles */
.quotes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.quotes-header h1 {
  margin: 0;
}

.quotes-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-bar {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 7, 18, 0.45);
  color: inherit;
  font-size: 14px;
  outline: none;
}
.search-bar:focus {
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.25);
}
.sort-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.55), rgba(3, 7, 18, 0.45));
  color: #e6eef8;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all 180ms ease;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.4);
}
.sort-select:hover {
  border-color: rgba(124, 92, 255, 0.25);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.12);
}
.sort-select:focus {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.18);
}
.sort-select option {
  background: #0f1724;
  color: #e6eef8;
  padding: 8px;
}

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.5);
}
.quote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.04);
}
.quote-info {
  flex: 1;
}
.quote-name {
  font-weight: 700;
}
.quote-date {
  color: var(--muted);
  font-size: 13px;
}
.quote-text {
  margin-bottom: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.quote-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.like-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.like-btn:hover {
  border-color: rgba(124, 92, 255, 0.25);
}
.heart {
  color: #9aa4b2;
  font-size: 18px;
}
.heart.liked {
  color: #ef4444;
}
.btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  cursor: pointer;
}
.btn-small:hover {
  border-color: rgba(124, 92, 255, 0.25);
}
.btn-small.danger:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  width: 90%;
  max-width: 500px;
  background: linear-gradient(180deg, var(--card), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}
.modal-content h2 {
  margin: 0 0 14px;
}
.modal-content textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 7, 18, 0.45);
  color: inherit;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  margin-bottom: 14px;
}
.modal-content textarea:focus {
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.25);
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn {
  flex: 1;
}

/* vacation styling (Dec 20 - Jan 4) */
.cal-cell.vacation {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.cal-cell.vacation .day {
  color: #f59e0b;
}
.cal-cell.vacation .vacation-label {
  margin-top: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.06);
  color: #f59e0b;
}
.cal-cell.today {
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
.birthday-badge {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.25);
  margin-top: 4px;
  text-align: left;
  line-height: 1.3;
}
.event-badge {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  margin-top: 2px;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-badge.borrel {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.event-badge.vacation {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.event-badge.event {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent);
}

/* Whole-day event coloring */
.cal-cell.event-vacation {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.cal-cell.event-vacation .day {
  color: #f59e0b;
}

.cal-cell.event-borrel {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.18);
}
.cal-cell.event-borrel .day {
  color: #22c55e;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}
.form-group input,
.form-group select {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6eef8;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}
.form-group select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-2);
  color: #e6eef8;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.1);
  background: rgba(124, 92, 255, 0.08);
}
.form-group select:focus {
  background: rgba(124, 92, 255, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
.form-group select:hover {
  border-color: rgba(124, 92, 255, 0.2);
  background: rgba(124, 92, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.modal-actions button {
  flex: 1;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e6eef8;
}
.error-message {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.form-group select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
