/* ================================================
   UI STATES - Loading & Empty States
   ================================================ */

/* ===== SKELETON LOADER ===== */
.skeleton-container {
    padding: 1rem 0;
}

.skeleton-loader {
    margin-bottom: 1rem;
    animation: skeleton-fade 1.5s ease-in-out infinite;
}

.skeleton-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 50%;
    margin-right: 1rem;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line-short {
    width: 40%;
}

.skeleton-line:last-child {
    margin-bottom: 0;
    width: 80%;
}

@keyframes skeleton-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-slide 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.shimmer-card {
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shimmer-title {
    height: 24px;
    width: 60%;
    margin-bottom: 1rem;
}

.shimmer-text {
    height: 14px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.shimmer-text-short {
    width: 40%;
}

.shimmer-text-medium {
    width: 70%;
}

.shimmer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.shimmer-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.shimmer-row td {
    padding: 1rem;
}

@keyframes shimmer-slide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SPINNER LOADER ===== */
.spinner-border-lg {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.loading-container {
    min-height: 200px;
    position: relative;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    display: block;
}

.empty-state-image {
    max-width: 200px;
    opacity: 0.8;
}

.empty-state-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state-message {
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.empty-state-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PRICE UPDATE ANIMATION ===== */
.price-updating {
    animation: price-pulse 0.5s ease-in-out;
}

@keyframes price-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.price-loading-subtle {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* ===== CONNECTION INDICATOR ===== */
.connection-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.connection-indicator i {
    font-size: 0.625rem;
}

.connection-indicator.text-success {
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.connection-indicator.text-warning {
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.connection-indicator.text-danger {
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-message {
        font-size: 0.875rem;
    }
    
    .skeleton-item {
        padding: 0.75rem;
    }
    
    .skeleton-icon {
        width: 36px;
        height: 36px;
    }
}

/* Dark Mode Support Removed - Platform uses light theme only */