/* Standardized Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary, #64748b);
    min-height: 300px;
    width: 100%;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted, #9ca3af);
    opacity: 0.8;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
    color: inherit;
}

.empty-state h3 {
    color: var(--text-primary, #111827);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-secondary, #64748b);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.empty-state a {
    color: var(--accent-color, #3b82f6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.empty-state a:hover {
    color: var(--accent-hover, #2563eb);
    text-decoration: underline;
}

/* Empty State Variants */
.empty-state-sm {
    padding: 2rem 1rem;
    min-height: 200px;
}

.empty-state-sm .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-state-sm .empty-icon svg {
    width: 48px;
    height: 48px;
}

.empty-state-sm h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state-sm p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.empty-state-lg {
    padding: 6rem 2rem;
    min-height: 400px;
}

.empty-state-lg .empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.empty-state-lg .empty-icon svg {
    width: 96px;
    height: 96px;
}

.empty-state-lg h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state-lg p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Empty State with Action */
.empty-state-action {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Empty State with Illustration */
.empty-state-illustration {
    max-width: 300px;
    margin-bottom: 2rem;
}

.empty-state-illustration img {
    width: 100%;
    height: auto;
}

/* Empty State with Search */
.empty-state-search {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.empty-state-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.empty-state-search input:focus {
    outline: none;
    border-color: var(--accent-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Empty State Animations */
.empty-state-animated .empty-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
    width: 100%;
}

.loading-spinner {
    background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(0, 225, 255));
    width: 48px;
    height: 48px;
    animation: spinning82341 1.7s linear infinite;
    text-align: center;
    border-radius: 24px;
    filter: blur(0.8px);
    box-shadow: 0px -3px 12px 0px rgb(186, 66, 255), 0px 3px 12px 0px rgb(0, 225, 255);
    margin-bottom: 1.5rem;
}

.loading-state p {
    color: var(--text-secondary, #64748b);
    font-size: 1rem;
    font-weight: 500;
}

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

@keyframes spinning82341 {
    to {
        transform: rotate(360deg);
    }
}

/* Dark Mode Styles */
.dark-mode .empty-icon {
    color: var(--text-muted, #6b7280);
}

.dark-mode .empty-state h3 {
    color: var(--text-primary, #f9fafb);
}

.dark-mode .empty-state p {
    color: var(--text-secondary, #94a3b8);
}

.dark-mode .loading-spinner {
    border-color: var(--border-color, #475569);
    border-top-color: var(--accent-color, #3b82f6);
}

.dark-mode .loading-state p {
    color: var(--text-secondary, #94a3b8);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .empty-state h3 {
        font-size: 1.25rem;
    }
    
    .empty-state p {
        font-size: 0.875rem;
    }
    
    .empty-state-lg {
        padding: 4rem 1.5rem;
    }
    
    .empty-state-lg .empty-icon svg {
        width: 64px;
        height: 64px;
    }
    
    .empty-state-lg h3 {
        font-size: 1.5rem;
    }
    
    .empty-state-lg p {
        font-size: 1rem;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .empty-state-animated .empty-icon,
    .loading-spinner {
        animation: none !important;
    }
}
