/* ===================================
   ESTADOS VACÍOS AMIGABLES - BONAFIDE
   =================================== */

/* Contenedor principal para estados vacíos */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 20px 0;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.empty-state-content {
    position: relative;
    z-index: 2;
}

/* Iconos para estados vacíos */
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
}

.empty-state-icon svg,
.empty-state-icon i {
    color: white;
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
}

/* Títulos y texto */
.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 0;
    line-height: 1.3;
}

.empty-state-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.5;
    max-width: 500px;
}

.empty-state-submessage {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 32px;
    line-height: 1.4;
    max-width: 400px;
}

/* Botones de acción */
.empty-state-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.empty-state-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.empty-state-btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
}

.empty-state-btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.empty-state-btn-secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.empty-state-btn-secondary:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Variantes específicas por contexto */

/* Estado vacío para productos */
.empty-state-products .empty-state-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

/* Estado vacío para categorías */
.empty-state-categories .empty-state-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}

/* Estado vacío para búsquedas */
.empty-state-search .empty-state-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

/* Estado vacío para datos */
.empty-state-data .empty-state-icon {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    box-shadow: 0 8px 24px rgba(111, 66, 193, 0.2);
}

/* Versión compacta */
.empty-state-compact {
    min-height: 200px;
    padding: 40px 20px;
}

.empty-state-compact .empty-state-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.empty-state-compact .empty-state-icon svg,
.empty-state-compact .empty-state-icon i {
    font-size: 1.8rem;
    width: 30px;
    height: 30px;
}

.empty-state-compact .empty-state-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-state-compact .empty-state-message {
    font-size: 1rem;
    margin-bottom: 6px;
}

.empty-state-compact .empty-state-submessage {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Versión mini para tablas */
.empty-state-mini {
    min-height: 120px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.empty-state-mini .empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.empty-state-mini .empty-state-icon svg,
.empty-state-mini .empty-state-icon i {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
}

.empty-state-mini .empty-state-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.empty-state-mini .empty-state-message {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.empty-state-mini .empty-state-submessage {
    font-size: 0.8rem;
    margin-bottom: 16px;
}

/* Animaciones */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .empty-state {
        padding: 40px 16px;
        min-height: 250px;
    }
    
    .empty-state-title {
        font-size: 1.5rem;
    }
    
    .empty-state-message {
        font-size: 1rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-state-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estados específicos para la aplicación Bonafide */

/* Página principal sin categorías */
.bonafide-no-categories {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 2px dashed #dc3545;
}

.bonafide-no-categories .empty-state-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Administración sin productos */
.bonafide-no-products {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border: 2px dashed #28a745;
}

.bonafide-no-products .empty-state-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Búsqueda sin resultados */
.bonafide-no-results {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border: 2px dashed #ffc107;
}

.bonafide-no-results .empty-state-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
} 