/* ===== Auth Pages ===== */
.auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1a1a2e;
}

.auth-wrapper {
  display: flex;
  justify-content: flex-end;
  min-height: 100vh;
}

.auth-panel {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 25, 50, 0.5);
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .auth-panel {
    max-width: 100%;
    background: rgba(15, 25, 50, 0.9);
  }
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.auth-card {
  border: none;
  border-radius: 12px;
}

.auth-card h2 {
  color: #0f3460;
}

/* ===== Dashboard ===== */
#calendar {
  min-height: 500px;
}

/* Grounded aircraft banner */
.grounded-banner {
  background: #dc3545;
  color: #fff;
  border: 2px solid #a71d2a;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  animation: groundedPulse 2s ease-in-out infinite;
}

.grounded-banner .grounded-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 0.5rem;
}

.grounded-banner .grounded-aircraft {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

@keyframes groundedPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4); }
  50%      { box-shadow: 0 2px 16px rgba(220, 53, 69, 0.7); }
}

/* Severity badges */
.badge-low       { background-color: #198754; }
.badge-medium    { background-color: #ffc107; color: #000; }
.badge-high      { background-color: #fd7e14; }
.badge-grounding { background-color: #dc3545; }

/* Issue list items */
.issue-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.issue-item .issue-info {
  flex: 1;
  min-width: 0;
}

.issue-item .issue-title {
  font-weight: 600;
  word-break: break-word;
}

.issue-item .issue-meta {
  font-size: 0.8rem;
  color: #6c757d;
}

.issue-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  #calendar {
    min-height: 350px;
    font-size: 0.85rem;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .fc .fc-toolbar-title {
    font-size: 1.1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

/* FullCalendar event colours per aircraft */
.fc-event {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
}

/* Reservation type colours */
.res-personal    { background-color: #0d6efd !important; }
.res-shared       { background-color: #0d6efd !important; }
.res-maintenance  { background-color: #6c757d !important; }

/* Completed reservation */
.ac-completed { background-color: #198754 !important; }
