/* ==========================================
   ESTADÍSTICAS INLINE (Vista Slots)
   ========================================== */

.stats-slots-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.stat-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-inline .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.stat-value-inline {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.stat-badge-inline {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.stat-badge-inline.success {
  background: var(--success-light);
  color: var(--success-dark);
}

.stat-badge-inline.warning {
  background: var(--warning-light);
  color: #e65100;
}

.stat-badge-inline.error {
  background: var(--error-light);
  color: var(--error-color);
}

/* ==========================================
   COPIAR URL DE RESERVAS
   ========================================== */

.url-copiar-container {
  margin-top: 12px;
}

.url-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Roboto Mono', monospace;
  background: #f8f9fa;
  color: var(--text-primary);
  cursor: text;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--surface);
}

/* Contenedor de botones */
.botones-url-container {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-copiar-url,
.btn-abrir-url-reservas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.btn-copiar-url {
  background: var(--primary-color);
  color: white;
}

.btn-abrir-url-reservas {
  background: var(--success-color);
  color: white;
}

.btn-copiar-url:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-abrir-url-reservas:hover {
  background: var(--success-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-copiar-url:active,
.btn-abrir-url-reservas:active {
  transform: translateY(0);
}

.btn-copiar-url.copiado {
  background: var(--success-color);
}

.btn-copiar-url .material-icons,
.btn-abrir-url-reservas .material-icons {
  font-size: 20px;
}

.url-ayuda {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.4;
}

/* Espaciado extra para panel de Reservas Públicas */
.stats.reservas-publicas {
  margin-top: 24px;
}

/* ==========================================
   HISTORIAL DE CANCELADAS
   ========================================== */

.stats.historial-canceladas {
  margin-top: 24px;
}

.btn-historial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.btn-historial:hover {
  background: var(--bg-gray-50);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-historial:active {
  transform: translateY(0);
}

.btn-historial .material-icons {
  font-size: 20px;
}

.cita-cancelada-item {
  transition: background 0.2s ease;
}

.cita-cancelada-item:hover {
  background: var(--bg-gray-50);
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .stats-slots-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }

  .stat-inline {
    width: 100%;
    justify-content: space-between;
  }

  .url-copiar-container {
    flex-direction: column;
  }

  .btn-copiar-url {
    width: 100%;
  }
}
