html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .dashboard-metric-card .card-body { padding-top: 1rem; padding-bottom: 1rem; }
}

/* Make chart cards match metric card sizing and behavior */
.dashboard-chart-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* allow chart cards to be same min height as metric cards */
  min-height: 160px;
  max-height: 400px;
  box-sizing: border-box;
}

.dashboard-chart-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 1 1 auto;
}

/* Ensure canvas fills available space while remaining responsive */
.dashboard-chart-card canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 320px;
}

@media (min-width: 1200px) {
  .dashboard-chart-card { min-height: 170px; }
}

/* Ensure chart row columns stretch so all chart cards match height */
.row.g-3.mt-1 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.row.g-3.mt-1 .dashboard-chart-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Make canvas fill available card body space while keeping aspect */
.dashboard-chart-card .card-body > canvas {
  flex: 1 1 auto;
  width: 100% !important;
  max-height: 320px;
}

/* Make metric cards have the same max height as chart cards */
.dashboard-metric-card {
  max-height: 400px !important;
  overflow: auto;
}

/* Metric-specific styling */
.dashboard-metric-card {
  border-left: 6px solid var(--app-orange);
  padding-left: 0.75rem;
}

.dashboard-metric-card .metric-header {
  align-items: center;
}

.dashboard-metric-card .metric-icon {
  font-size: 1.5rem;
  color: var(--app-orange-dark);
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.08);
  border-radius: 8px;
}

.dashboard-metric-card .metric-value {
  text-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  margin-top: 0.45rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #7cb6ff;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background: linear-gradient(160deg, #f8fbff 0%, #eef4ff 50%, #f7f9fc 100%);
  color: #1f2a44;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Branded login experience for default ASP.NET Identity UI */
main:has(#account) {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}

#account {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffd9c2;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(234, 88, 12, 0.16);
  padding: 1.75rem;
}


.login-panel {
  max-width: 360px;
}

.login-logo {
  width: 56px;
  height: 56px;
}
#account .form-control {
  border: 1px solid #fdba8c;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

#account .form-control:focus {
  border-color: var(--app-orange);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.2);
}

#account .btn-primary,
button[type="submit"].w-100 {
  background: linear-gradient(135deg, var(--app-orange), var(--app-orange-dark));
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
}

#account .btn-primary:hover,
button[type="submit"].w-100:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

#account + div,
#account ~ h2,
#account ~ hr,
#account ~ section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ffd9c2;
  border-radius: 14px;
  padding: 1.25rem;
}

#account a,
#account + div a,
#account ~ section a {
  color: var(--app-orange-dark);
}

#account a:hover,
#account + div a:hover,
#account ~ section a:hover {
  color: var(--app-orange);
}

h1,
h2 {
  letter-spacing: -0.02em;
}

:root {
  --text-primary: #1f2937;
  --text-muted: #6b7280;
  --border-subtle: #dbe3f0;
  --surface: #ffffff;
}

.holiday-calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.calendar-month {
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    background: var(--surface);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.calendar-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-month-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-month-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.calendar-day {
    position: relative;
    border-radius: 10px;
    min-height: 42px;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.35rem 0.4rem;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.calendar-day-number {
    font-weight: 600;
}

.calendar-day--empty {
    background: transparent;
}

.calendar-day.is-holiday {
    background: rgba(249, 115, 22, 0.2);
    color: #c2410c;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.5);
}

:root {
  --app-orange: #f97316;
  --app-orange-dark: #ea580c;
  --app-orange-soft: #fff1e8;
}

body {
  background: linear-gradient(160deg, #fff8f3 0%, #ffefe4 45%, #fffaf6 100%);
}

.app-navbar {
  background: linear-gradient(135deg, var(--app-orange), var(--app-orange-dark));
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: #fff !important;
}

.app-navbar .nav-link {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  transition: background-color 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.22);
}

.btn-primary {
  background-color: var(--app-orange);
  border-color: var(--app-orange);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--app-orange-dark);
  border-color: var(--app-orange-dark);
}

.card {
  border: 1px solid #ffd9c2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.nomination-modal-body {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.nomination-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.nomination-modal-list-wrapper {
  min-height: 0;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.table {
  border-radius: 10px;
  overflow: hidden;
}

.calendar-day.is-holiday {
  background: rgba(249, 115, 22, 0.22);
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.55);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #fdba8c;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--app-orange) !important;
  border-color: var(--app-orange) !important;
  color: #fff !important;
}

.app-login,
.app-logout {
  border-radius: 999px;
}

.app-navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.app-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.dataTables_wrapper .dataTables_length select {
  min-width: 88px;
  padding-right: 1.75rem;
}

.calendar-day--interactive {
  border: 0;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-day--interactive:hover,
.calendar-day--interactive:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(194, 65, 12, 0.5);
}

.calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px #c2410c;
}

.dashboard-hero {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #ffd9c2;
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

.dashboard-pill {
  background: linear-gradient(135deg, var(--app-orange), var(--app-orange-dark));
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25);
}

.dashboard-metric-card,
.dashboard-chart-card {
  overflow: hidden;
  position: relative;
}

.dashboard-metric-card::after,
.dashboard-chart-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -75% -30%;
  height: 180px;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 70%);
  pointer-events: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  animation: dashboardReveal 0.55s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes dashboardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
