/*----- navbar css custom -----*/

.navbar {
  background-color: #ccffcc;
}

/*----- button css custom -----*/

.btn-header {
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: bold;
  transition:
    background-color 0.3s,
    color 0.3s;
  background-color: #003300;
  color: #fff;
}

.btn-header:hover {
  background-color: #008000;
  color: #fff;
}

.btn-logout {
  background-color: #ff6666;
  color: #fff;
}

.btn-logout:hover {
  background-color: #ff3333;
  color: #fff;
}

.btn-login {
  background-color: #ccffcc;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: #009900 1px solid;
}

.btn-login:hover {
  background-color: #009900;
}

.btn-back {
  background-color: #ffd9cc;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: #ff794d 1px solid;
}

.btn-back:hover {
  background-color: #ff794d;
}

.btn-open {
  background-color: #f6fff7;
  color: #000;
  border: 1px solid #d9f2dd;
}

.btn-open:hover {
  background-color: #d9f2dd;
}

/* ----- login css custom -----*/

.login-container {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 50px auto;
}

.login-container h3 {
  margin-bottom: 20px;
  color: #333;
}

.login-form input {
  border-radius: 8px;
}

.login-form input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

/* ----- table css custom -----*/
/* Card wrapper for tables */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Table general look */
.table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

/* Card-like container for tables */
.custom-table-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px;
  margin-bottom: 25px;
}

/* Table styling */
.custom-table th {
  font-weight: 600;
  color: #444;
  border: none !important;
  background: #f5f7fa;
  padding: 14px 12px;
  font-size: 0.9rem;
}

.custom-table td {
  background: #fff;
  border: none !important;
  vertical-align: middle;
  padding: 16px 12px;
  font-size: 0.9rem;
}

/* Row radius effect */
.custom-table tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.custom-table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Hover effect */
.custom-table tbody tr:hover td {
  background: #f9fbff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* Priority badges (pill style) */
.badge-priority {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  color: #fff;
}

.badge-low {
  background-color: #3498db;
}

.badge-medium {
  background-color: #17a2b8;
}

.badge-high {
  background-color: #e67e22;
}

.badge-critical {
  background-color: #20c997;
}

/* Fix rigid widths */
.section-card,
.card {
  max-width: 100%;
}

/* Tables scroll on small screens */
.table-responsive {
  overflow-x: auto;
}

/* Stack forms on mobile */
@media (max-width: 768px) {
  .row > .col-md-6 {
    margin-bottom: 0.75rem;
  }

  .feedback-actions {
    flex-direction: column;
  }

  .feedback-actions button,
  .feedback-actions a {
    width: 100%;
  }
}

/* Responsive navbar logos */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.9rem;
  }

  .navbar img {
    height: 32px;
  }
}

/* FullCalendar mobile fixes */
.calendar-container {
  width: 100%;
  min-height: 420px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#calendar {
  min-height: 420px;
}
#calendar .fc,
#calendar .fc-view-harness {
  min-height: 400px;
}
#calendar .fc-scroller {
  overflow: visible !important;
} /* prevent inner clipping */
@media (max-width: 575.98px) {
  #calendar .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  #calendar .fc-toolbar-title {
    font-size: 1rem;
  }
  #calendar .fc .fc-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Respond page */
.respond-page {
  max-width: 900px;
  margin: 0 auto;
}

.respond-page .respond-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  margin-bottom: 1.5rem;
}

.respond-page .respond-hero__eyebrow {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.respond-page .respond-hero__title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.respond-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.respond-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.respond-card__head .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.respond-card__head .value {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.respond-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b;
}

.respond-card__body {
  padding: 1.5rem;
}

/* Status dots */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-info {
  background: #0ea5e9;
}
.dot-warn {
  background: #f59e0b;
}
.dot-danger {
  background: #ef4444;
}
.dot-success {
  background: #10b981;
}

/* Status pills */
.status-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.status-pill.st-awaiting_admin {
  background: #dbeafe;
  color: #1e40af;
}
.status-pill.st-awaiting_dept {
  background: #fef3c7;
  color: #92400e;
}
.status-pill.st-action_required {
  background: #fed7d7;
  color: #c53030;
}
.status-pill.st-approved {
  background: #dcfce7;
  color: #166534;
}
.status-pill.st-cancelled {
  background: #f1f5f9;
  color: #64748b;
}

/* Card themes */
.respond-card.tone-info {
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.03), transparent);
}

.respond-card.tone-warn {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.03), transparent);
}

.respond-card.tone-danger {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.03), transparent);
}

.respond-card.tone-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.03), transparent);
}

/* Banners */
.respond-banner {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.respond-banner.warn {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.respond-banner.success {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.respond-banner.info {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), transparent);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: #0c4a6e;
}

.respond-banner.muted {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.action-buttons .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-secondary {
  color: #64748b;
  border-color: #cbd5e1;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #64748b;
  border-color: #64748b;
  color: white;
  transform: translateY(-1px);
}

/* Form styling */
.note-textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  font-size: 0.875rem;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.note-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Edit Booking Page Styling */
.edit-booking-container {
  max-width: 1000px;
  margin: 0 auto;
}

.edit-booking-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.edit-booking-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 2.5rem 1.5rem;
  border: none;
}

.edit-booking-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edit-booking-body {
  padding: 2.5rem;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.section-header::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.section-header h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.section-header .section-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

/* Form Controls */
.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* Radio and Checkbox styling */
.form-check {
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #d1d5db;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-check-label {
  font-weight: 500;
  color: #374151;
  margin-left: 0.5rem;
}

/* Room Selection Styling */
.room-selection-container {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.room-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.room-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.room-item.selected {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
}

/* Equipment sections */
.equipment-toggle {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.equipment-toggle.active {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
}

.equipment-details {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.building-section {
  margin-bottom: 1.5rem;
}

.building-title {
  font-size: 1rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Input groups for equipment */
.input-group-sm .input-group-text {
  font-size: 0.75rem;
  font-weight: 500;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #374151;
}

.input-group-sm .form-control {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

/* Alert styling */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(239, 68, 68, 0.05)
  );
  color: #dc2626;
  border-left: 4px solid #ef4444;
}

.alert-info {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1),
    rgba(14, 165, 233, 0.05)
  );
  color: #0369a1;
  border-left: 4px solid #0ea5e9;
}

/* Action buttons */
.action-buttons-container {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.btn {
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
  background: white;
  border-color: #d1d5db;
  color: #6b7280;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* File upload styling */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: #fafbfc;
  transition: all 0.2s ease;
}

.file-upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.02);
}

/* Footer Links Styling */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
  text-decoration: none;
}

/* Footer link icons */
.footer-links a:before {
  content: "→";
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.footer-links a:hover:before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact section email link */
.footer-links a[href^="mailto:"] {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.footer-links a[href^="mailto:"]:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Remove the arrow for email links */
.footer-links a[href^="mailto:"]:before {
  display: none;
}

/* Footer brand link */
.footer-brand {
  color: white !important;
  text-decoration: none !important;
}

.footer-brand:hover {
  color: white !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Footer bottom links if any */
.footer-bottom a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Terms modal theme tweaks */
#termsModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
#termsModal .modal-header,
#termsModal .modal-footer {
  border: none;
}
#termsModal .modal-body {
  color: #6c757d;
}
@media (max-width: 575.98px) {
  #termsModal .modal-dialog {
    max-width: 92%;
    margin: 1.5rem;
  }
}
