/* Estilos básicos para que funcione el menú */
.glass-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: scale(1.05);
}

.btn-ghost {
    background: transparent;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #f9fafb;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-purple {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-indigo {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Estilos para FullCalendar */
.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.fc .fc-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.fc .fc-button:hover {
    background-color: #e5e7eb;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.fc .fc-daygrid-day-number {
    color: #374151;
    font-weight: 500;
}

.fc .fc-col-header-cell-cushion {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.fc .fc-day-today {
    background-color: #eff6ff !important;
}

/* Eventos personalizados */
.custom-calendar-event {
    border: none;
    border-radius: 0.375rem;
    padding: 0.25rem;
    margin: 0.125rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.custom-calendar-event .fc-event-main-frame {
    padding: 0.25rem;
}

.custom-calendar-event .fc-event-time {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.custom-calendar-event .fc-event-title {
    font-weight: 500;
    line-height: 1.2;
}

.custom-calendar-event .fc-event-team {
    margin-top: 0.125rem;
    font-style: italic;
}

/* Vista de mes */
.fc-daygrid-event {
    margin: 1px 2px;
}

/* Vista de semana/día */
.fc-timegrid-event {
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.fc-timegrid-event .fc-event-main {
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.25rem;
    }
    
    .fc .fc-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}


/* Estilos para gráficos */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Mejoras para la responsividad de los gráficos */
canvas {
    max-width: 100%;
}

/* Loading states para gráficos */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8fafc;
    border-radius: 8px;
}

/* Leyendas personalizadas */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Estilos para el drag and drop */
.border-dashed {
    transition: all 0.3s ease;
}

.border-dashed.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilo principal */
.select2-container .select2-selection--single {
    @apply border border-gray-300 rounded-lg h-15 flex items-center px-4;
}

/* Texto */
.select2-selection__rendered {
    @apply text-gray-700;
}

/* Flecha */
.select2-selection__arrow {
    @apply text-gray-500;
}

.filter-badge {
    font-size: 0.7rem;
    min-width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
}