/* Error Message Styling */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #dc2626;
}

.error-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.error-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.error-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.retry-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background-color: #dc2626;
}

/* Skeleton Loading */
.skeleton-loading {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skeleton-header {
    height: 1.5rem;
    width: 70%;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
    height: 1rem;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line:nth-child(2) {
    width: 90%;
}

.skeleton-line:nth-child(3) {
    width: 80%;
}

.skeleton-line:nth-child(4) {
    width: 85%;
}

.skeleton-footer {
    height: 1rem;
    width: 60%;
    background: #f3f4f6;
    border-radius: 4px;
    margin-top: 1.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-text {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .error-message {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .error-icon {
        margin-bottom: 0.25rem;
    }
    
    .skeleton-loading {
        padding: 1rem;
    }
}
