/* Confirmación header */
.booking-confirmation {
  text-align: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.booking-confirmation h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

/* Mensaje cuando no hay reservas */
.booking-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

.booking-no-results h3 {
  color: #059669;
  font-size: 24px;
  margin-bottom: 10px;
}

.booking-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  margin: 20px 0;
}

/* Estilos para las cards de reservas */
.booking-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 0 12px;
}

@media (min-width: 640px) {
  .booking-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .booking-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0;
  }
}

.booking-card {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

        .booking-card-header {
            background: #ffffff;
            color: #000000;
            padding: 20px;
            position: relative;
            border-bottom: 1px solid #e1e5e9;
        }.booking-card-header h3 {
  color: #000 !important;
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.booking-date {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 5px;
}

.booking-status {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
  border: 1px solid #cbd5e1;
}

.booking-card-body {
  padding: 10px;
}

/* Resumen de la reserva */
.booking-summary {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.booking-summary p {
  margin: 2px 0;
  font-size: 13px;
}

.booking-datetime {
  color: #6b7280;
  font-weight: 500;
}

/* ID de reserva */
.booking-id {
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 3px solid #3b82f6;
  font-family: monospace;
  font-size: 12px;
}

/* Secciones de detalles */
.booking-details,
.booking-contact,
.booking-location {
  margin-bottom: 4px;
}

.detail-section {
  margin-bottom: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border-left: 2px solid #000;
}

.detail-section h4 {
  margin: 0 0 3px 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.detail-section p {
  margin: 1px 0;
  font-size: 12px;
  line-height: 1.5;
}

.detail-section small {
  color: #9ca3af;
  font-size: 10px;
  font-style: italic;
  margin-top: 3px;
  display: block;
}

/* Detalles técnicos */
.booking-tech-details {
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #64748b;
}

.booking-tech-details h4 {
  color: #475569;
  margin-bottom: 6px;
  font-size: 12px;
}

.booking-tech-details p {
  font-family: monospace;
  font-size: 11px;
  margin: 2px 0;
}

/* Estilos anteriores mantenidos */
.info-item {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.info-item strong {
  color: #374151;
  min-width: 100px;
  flex-shrink: 0;
}

.info-item a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

.booking-description {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin-top: 15px;
}

.booking-description strong {
  color: #374151;
  display: block;
  margin-bottom: 8px;
}

.booking-description p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.booking-card-footer {
  background: #f9fafb;
  padding: 5px 10px;
  border-top: 1px solid #e5e7eb;
}

.booking-card-footer small {
  color: #9ca3af;
  font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-cards-container {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0;
  }

  .booking-card-header {
    padding: 6px 8px;
  }
  
  .booking-card-body {
    padding: 8px;
  }
  
  .detail-section {
    padding: 4px 6px;
    margin-bottom: 4px;
  }
}  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-item strong {
    min-width: auto;
  }
}

/* Animación de entrada */
.booking-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados vacíos */
.booking-cards-container:empty::after {
  content: "No hay reservas disponibles en este momento.";
  display: block;
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-style: italic;
}

/* Indicador de carga */
.booking-loading {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.booking-loading::before {
  content: "⏳";
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

/* Estilos específicos para WhatsApp */
.detail-section a[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.detail-section a[href*="wa.me"]:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none !important;
}

/* Mejorar espaciado en secciones de detalles */
.detail-section p {
  margin: 6px 0;
}

.detail-section p strong {
  color: #4b5563;
}

/* Hacer el header más compacto */
.booking-card-header {
  padding: 12px 16px;
}

.booking-card-header h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #000 !important;
}

/* === ESTILOS PARA TABLA DASHBOARD === */

/* Dashboard Container */
.booking-dashboard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 20px 0;
}

/* Dashboard Header - Mobile First */
.dashboard-header {
  background: #ffffff;
  padding: 16px 16px 20px 16px;
  color: #000000;
  border-bottom: 1px solid #e1e5e9;
}

.dashboard-header h2 {
  color: #000 !important;
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .dashboard-header {
    padding: 20px 24px;
  }
  
  .dashboard-header h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {
  .dashboard-header {
    padding: 25px 30px;
  }
  
  .dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

/* Dashboard Stats - Mobile First */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .dashboard-stats {
    gap: 16px;
    margin-top: 18px;
  }
}

@media (min-width: 1024px) {
  .dashboard-stats {
    gap: 20px;
    margin-top: 20px;
  }
}

.stat-item {
  background: #ffffff;
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #111827;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .stat-item {
    padding: 14px 12px;
  }
  
  .stat-number {
    font-size: 19px;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .stat-item {
    padding: 16px 20px;
  }
  
  .stat-number {
    font-size: 20px;
  }
}

/* Table Container - Mobile First */
.booking-table-container {
  overflow-x: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Main Table - Mobile Optimized */
.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 100%;
}

/* Mobile: Ocultar columnas menos importantes */
@media (max-width: 767px) {
  .booking-table {
    font-size: 12px;
  }
  
  .booking-table th,
  .booking-table td {
    padding: 8px 6px;
    vertical-align: top;
  }
  
  /* Ocultar algunas columnas en mobile */
  .booking-table th:nth-child(4),
  .booking-table td:nth-child(4) {
    display: none;
  }
}

@media (min-width: 768px) {
  .booking-table {
    font-size: 14px;
  }
}

.booking-table thead th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 15px 12px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-table tbody td {
  padding: 15px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.booking-row:hover {
  background-color: #f8fafc;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.confirmed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 500;
}

/* Client Info */
.client-info strong {
  display: block;
  color: #111827;
  margin-bottom: 3px;
  font-size: 14px;
}

.client-info small {
  color: #6b7280;
  font-size: 12px;
}

/* Event Info */
.event-info strong {
  display: block;
  color: #111827;
  margin-bottom: 3px;
  font-size: 14px;
}

.event-type {
  display: inline-block;
  background: #f8fafc;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* DateTime Info */
.datetime-info strong {
  display: block;
  color: #111827;
  margin-bottom: 2px;
  font-size: 14px;
}

.datetime-info small {
  color: #6b7280;
  font-size: 12px;
  display: block;
  margin-bottom: 5px;
}

.upcoming-badge {
  display: inline-block;
  background: #f8fafc;
  color: #64748b;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  margin-left: 4px;
}

.no-date {
  color: #9ca3af;
  font-style: italic;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f9fafb;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.whatsapp-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3b82f6 !important;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  font-size: 12px;
  transition: all 0.2s ease;
}

.email-link:hover {
  background: rgba(59, 130, 246, 0.2);
  text-decoration: none;
}

/* Location Info */
.location-info {
  color: #6b7280;
  font-size: 12px;
}

.no-location {
  color: #9ca3af;
  font-style: italic;
  font-size: 12px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 4px;
}

.action-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #374151;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  .action-btn {
    padding: 4px 8px;
    min-height: 28px;
    font-size: 11px;
  }
}

.action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.whatsapp-btn:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.details-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Expanded Details */
.booking-details-row {
  background: #f8fafc !important;
}

.expanded-details {
  padding: 20px;
  margin: 0 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.detail-group h4 {
  color: #374151;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

.detail-group p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.4;
}

.detail-group p strong {
  color: #6b7280;
  font-weight: 500;
}

/* No Results */
.booking-table-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 20px 0;
}

.no-data-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.booking-table-no-results h3 {
  color: #374151;
  font-size: 24px;
  margin-bottom: 10px;
}

.booking-table-no-results p {
  color: #6b7280;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 20px 15px;
  }
  
  .dashboard-header h2 {
    font-size: 22px;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-item {
    padding: 10px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .booking-table-container {
    padding: 0 10px;
  }
  
  .booking-table {
    font-size: 12px;
  }
  
  .booking-table thead th,
  .booking-table tbody td {
    padding: 10px 8px;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .expanded-details {
    padding: 15px;
    margin: 0 10px;
  }
}

/* Filtros - Mobile First */
.booking-filters {
  background: #ffffff;
  padding: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.025em;
}

.filter-group select,
.filter-group input {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.filter-group input[type="date"] {
  background-image: none;
  padding-right: 14px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-filters-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
  text-align: center;
  margin-top: 8px;
}

.clear-filters-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.clear-filters-btn:active {
  background: #e2e8f0;
}

/* Tablet y Desktop */
@media (min-width: 640px) {
  .booking-filters {
    padding: 20px 24px;
  }
  
  .filter-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .clear-filters-btn {
    margin-top: 0;
    align-self: end;
  }
}

@media (min-width: 768px) {
  .filter-row {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }
  
  .filter-group select,
  .filter-group input {
    padding: 10px 12px;
    font-size: 14px;
    padding-right: 36px;
  }
  
  .filter-group input[type="date"] {
    padding-right: 12px;
  }
  
  .clear-filters-btn {
    padding: 10px 16px;
    font-size: 13px;
    margin-top: 0;
    white-space: nowrap;
  }
}

/* Estados - Mobile First */
.status-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.status-badge.cancelada {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cancel-btn {
  background: #ffffff;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 28px;
}

.cancel-btn:hover {
  background: #fef2f2;
}

.cancel-btn:active {
  background: #fee2e2;
}

/* Tablet y Desktop */
@media (min-width: 640px) {
  .status-container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .cancel-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-height: auto;
  }
}

.no-contact {
  color: #9ca3af;
  font-style: italic;
  font-size: 12px;
}

/* Mobile específico */
@media (max-width: 479px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .stat-item {
    padding: 10px 8px;
  }
  
  .stat-number {
    font-size: 16px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .booking-table thead th:nth-child(n+5) {
    display: none;
  }
  
  .booking-table tbody td:nth-child(n+5) {
    display: none;
  }
  
  .client-info,
  .event-info,
  .datetime-info {
    line-height: 1.2;
  }
  
  .client-info strong,
  .event-info strong,
  .datetime-info strong {
    font-size: 11px;
  }
  
  .client-info small,
  .datetime-info small {
    font-size: 9px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }
  
  .action-btn {
    width: 100%;
    min-height: 32px;
  }
}
