/**
 * Check Reservation Page Styles
 */

/* Google Fonts - Modern Professional 配對 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Subtitle */
.subtitle {
  color: var(--gray-600);
  font-size: 16px;
  margin-top: 12px;
  font-weight: 400;
}

/* Check Section */
.check-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.check-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Action Links */
.action-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  color: var(--gray-800);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
}

.link-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.link-btn .material-symbols-outlined {
  font-size: 20px;
  text-decoration: none;
}

/* Result Section */
.result-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.reservation-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 32px;
}

.status-badge .material-symbols-outlined {
  font-size: 24px;
}

.status-badge.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-badge.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.status-cancelled {
  background: #e2e3e5;
  color: #383d41;
}

/* Reservation Details */
.reservation-details {
  margin-bottom: 32px;
}

.detail-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .material-symbols-outlined {
  color: var(--secondary-color);
  font-size: 24px;
  margin-top: 4px;
}

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 16px;
  color: var(--gray-800);
  font-weight: 500;
}

/* Reservation Actions */
.reservation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Button Danger Style */
.btn-danger {
  background: #dc3545;
  color: var(--white);
  border: none;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-danger:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* List Section */
.list-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.list-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.reservation-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.reservation-card-item {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.reservation-card-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reservation-card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.status-badge-small {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
}

.status-badge-small.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge-small.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-badge-small.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.status-badge-small.status-cancelled {
  background: #e2e3e5;
  color: #383d41;
}

.reservation-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--gray-800);
  margin: 0;
}

.card-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.modal-body {
  padding: 28px;
}

.modal-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .check-section,
  .result-section,
  .list-section {
    padding: 12px;
  }

  .check-form,
  .reservation-card {
    padding: 24px 20px;
  }
  
  .reservation-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .action-links {
    flex-direction: column;
  }

  .link-btn {
    width: 100%;
    justify-content: center;
  }

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

  .reservation-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
