/* schedule-pro.css - Diseño profesional SOLO para programación de búsquedas */

/* 1. CONTENEDOR PRINCIPAL - SOLO para programar búsqueda */
#programarBusqueda.section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 0;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }
  
  /* 2. HEADER ELEGANTE - SOLO dentro de programar búsqueda */
  #programarBusqueda .schedule-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 2.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  #programarBusqueda .schedule-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
  }
  
  #programarBusqueda .schedule-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
  }
  
  #programarBusqueda .schedule-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
  }
  
  /* 3. FORMULARIO REDISEÑADO - SOLO el de schedule */
  #programarBusqueda #scheduleForm {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
  }
  
  /* 4. TARJETAS DE SECCIÓN - SOLO dentro de programar búsqueda */
  #programarBusqueda .schedule-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  #programarBusqueda .schedule-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  #programarBusqueda .schedule-section-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  #programarBusqueda .schedule-section-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
  
  /* 5. GRID DE TIPOS DE BÚSQUEDA */
  #programarBusqueda .search-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  #programarBusqueda .search-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  #programarBusqueda .search-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #programarBusqueda .search-type-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--card-color, #3b82f6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  
  #programarBusqueda .search-type-card:hover::before {
    opacity: 1;
  }
  
  /* Colores específicos por tipo */
  #programarBusqueda .search-type-card.estado {
    --card-color: #3b82f6;
  }
  
  #programarBusqueda .search-type-card.andalucia {
    --card-color: #10b981;
  }
  
  #programarBusqueda .search-type-card.euskadi {
    --card-color: #6b7280;
  }
  
  #programarBusqueda .search-type-card.avanzado {
    --card-color: #f59e0b;
  }
  
  #programarBusqueda .search-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  #programarBusqueda .search-type-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  #programarBusqueda .search-type-badge {
    background: var(--card-color, #3b82f6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  /* 6. OPCIONES EXPANDIBLES MEJORADAS */
  #programarBusqueda .search-options-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #programarBusqueda .search-option-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  #programarBusqueda .search-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
  }
  
  #programarBusqueda .search-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  
  #programarBusqueda .search-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  #programarBusqueda .search-option-item input[type="radio"]:checked ~ .search-option-radio {
    border-color: var(--card-color, #3b82f6);
    background: var(--card-color, #3b82f6);
  }
  
  #programarBusqueda .search-option-item input[type="radio"]:checked ~ .search-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
  }
  
  #programarBusqueda .search-option-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }
  
  /* 7. SELECTOR DE DÍAS MEJORADO */
  #programarBusqueda .days-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }
  
  #programarBusqueda .day-chip {
    position: relative;
    cursor: pointer;
  }
  
  #programarBusqueda .day-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
  }
  
  #programarBusqueda .day-chip-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
  }
  
  #programarBusqueda .day-chip input[type="checkbox"]:checked + .day-chip-label {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  
  #programarBusqueda .day-chip:hover .day-chip-label {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  /* 8. INPUTS Y CONTROLES MODERNOS */
  #programarBusqueda .time-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  #programarBusqueda .form-control-modern {
    position: relative;
  }
  
  #programarBusqueda .form-control-modern label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  #programarBusqueda .form-control-modern input,
  #programarBusqueda .form-control-modern select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  #programarBusqueda .form-control-modern input:focus,
  #programarBusqueda .form-control-modern select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    box-shadow: 
      0 0 0 3px rgba(59, 130, 246, 0.2),
      0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* 9. SELECTOR MÚLTIPLE ESTILIZADO */
  #programarBusqueda .multi-select-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
  }
  
  #programarBusqueda .multi-select-modern::-webkit-scrollbar {
    width: 8px;
  }
  
  #programarBusqueda .multi-select-modern::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }
  
  #programarBusqueda .multi-select-modern::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
  
  #programarBusqueda .multi-select-modern option {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
  }
  
  #programarBusqueda .multi-select-modern option:checked {
    background: #3b82f6;
  }
  
  /* 10. BOTÓN DE ENVÍO ESPECTACULAR */
  #programarBusqueda .submit-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  #programarBusqueda .btn-schedule-pro {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
      0 4px 15px rgba(59, 130, 246, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  #programarBusqueda .btn-schedule-pro::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }
  
  #programarBusqueda .btn-schedule-pro:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  #programarBusqueda .btn-schedule-pro:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
  }
  
  @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* 11. UTILIDADES */
  #programarBusqueda .hidden {
    display: none !important;
  }
  
  /* 12. Botón toggle mejorado */
  #programarBusqueda .toggle-expand-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #programarBusqueda .toggle-expand-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
  
  #programarBusqueda .search-type-card.disabled .toggle-expand-btn {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  #programarBusqueda .search-type-card.disabled .toggle-expand-btn:hover {
    transform: none;
  }
  
  /* 13. Botón seleccionar todos */
  #programarBusqueda .btn-select-all {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
  }
  
  #programarBusqueda .btn-select-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  }
  
  /* 14. Lista de programaciones */
  #programarBusqueda .scheduled-list-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
  }
  
  /* 15. Mensajes */
  #programarBusqueda #scheduleMessage {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    color: white;
  }
  
  #programarBusqueda #scheduleMessage:not(:empty) {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
  }
  
  /* 16. Ajustes para elementos del formulario */
  #programarBusqueda .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  #programarBusqueda .form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }
  
  #programarBusqueda .user-info-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 2rem;
    color: white;
  }
  
  #programarBusqueda .user-info-badge strong {
    color: #3b82f6;
    font-weight: 700;
  }
  
  /* 17. RESPONSIVE */
  @media (max-width: 768px) {
    #programarBusqueda.section {
      margin: 1rem;
      border-radius: 16px;
    }
    
    #programarBusqueda .schedule-header {
      padding: 2rem 1.5rem;
    }
    
    #programarBusqueda .schedule-header h2 {
      font-size: 2rem;
    }
    
    #programarBusqueda #scheduleForm {
      padding: 1.5rem;
    }
    
    #programarBusqueda .search-types-grid {
      grid-template-columns: 1fr;
    }
    
    #programarBusqueda .time-input-group {
      grid-template-columns: 1fr;
    }
    
    #programarBusqueda .days-selector {
      justify-content: center;
    }
    
    #programarBusqueda .btn-schedule-pro {
      width: 100%;
    }
  }