/* User-facing bookings page styling */

/* === Confirmation Dialog === */
.acfbs-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.acfbs-confirm-overlay.acfbs-confirm-show {
  opacity: 1;
}

.acfbs-confirm-dialog {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 24px;
  min-width: 400px;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.acfbs-confirm-show .acfbs-confirm-dialog {
  transform: scale(1);
}

.acfbs-confirm-message {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

.acfbs-confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.acfbs-confirm-cancel,
.acfbs-confirm-ok {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.acfbs-confirm-cancel {
  background: #6c757d;
  color: white;
}

.acfbs-confirm-cancel:hover {
  background: #5a6268;
}

.acfbs-confirm-ok {
  background: #0073aa;
  color: white;
}

.acfbs-confirm-ok:hover {
  background: #005a87;
}

#acfbs-my-bookings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#acfbs-my-bookings-container h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

#acfbs-user-bookings-loading,
#acfbs-user-bookings-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

#acfbs-user-bookings-list table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#acfbs-user-bookings-list table thead {
    background: #0073aa;
    color: white;
}

#acfbs-user-bookings-list table th,
#acfbs-user-bookings-list table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#acfbs-user-bookings-list table tr:hover {
    background: #f5f5f5;
}

.acfbs-user-cancel-btn {
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
}

.acfbs-user-cancel-btn:hover {
    background: #d32f2f;
}

.acfbs-user-cancel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#acfbs-user-booking-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #acfbs-my-bookings-container {
        padding: 10px;
    }

    #acfbs-user-bookings-list table {
        font-size: 12px;
    }

    #acfbs-user-bookings-list table th,
    #acfbs-user-bookings-list table td {
        padding: 8px;
    }
}
