/* Skeleton Styles for Orders Page */

/* Container matches main-content padding */
.skeleton-container {
    padding: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    position: relative;
}

.skeleton-container.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

/* Base Skeleton Animation & Style */
@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-box {
    background: linear-gradient(90deg,
            var(--bg-card) 0%,
            var(--glass-bg) 50%,
            var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

[data-theme="light"] .skeleton-box {
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f8fafc 50%,
            #e2e8f0 100%);
}

/* Order Card Skeleton */
.skeleton-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[data-theme="light"] .skeleton-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.04);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
}

/* Header: ID + Status */
.skeleton-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-id {
    width: 120px;
    height: 16px;
}

.skeleton-status {
    width: 80px;
    height: 24px;
    border-radius: 20px;
}

/* Product Row: Icon + Text */
.skeleton-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.skeleton-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-title {
    width: 70%;
    height: 18px;
}

.skeleton-subtitle {
    width: 40%;
    height: 14px;
}

/* Details & Code */
.skeleton-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-detail-row {
    display: flex;
    justify-content: space-between;
}

.skeleton-label {
    width: 60px;
    height: 14px;
}

.skeleton-value {
    width: 80px;
    height: 14px;
}

.skeleton-code {
    height: 60px;
    border-radius: 12px;
    margin-top: 8px;
}

/* Entry Animations */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-ready {
    opacity: 1;
}

.content-ready:not(.visible)>* {
    opacity: 0;
}

.content-ready.visible>* {
    opacity: 0;
    animation: slideFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger List Items */
.content-ready.visible>*:nth-child(1) {
    animation-delay: 0ms;
}

.content-ready.visible>*:nth-child(2) {
    animation-delay: 100ms;
}

.content-ready.visible>*:nth-child(3) {
    animation-delay: 200ms;
}

.content-ready.visible>*:nth-child(4) {
    animation-delay: 300ms;
}

.content-ready.visible>*:nth-child(5) {
    animation-delay: 400ms;
}