/* Vouchers Skeleton CSS */
.skeleton-container {
    padding: 16px;
    /* Matches .main-content padding */
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

/* Shimmer Animation */
.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.skeleton-id {
    height: 14px;
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.skeleton-badge {
    height: 20px;
    width: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.skeleton-date {
    height: 10px;
    width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 4px;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-title {
    height: 16px;
    width: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-price {
    height: 20px;
    width: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-voucher-box {
    background: rgba(16, 185, 129, 0.05);
    /* Slight hint of green bg like real card */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.skeleton-voucher-text-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 80%;
}

.skeleton-voucher-label {
    height: 10px;
    width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.skeleton-voucher-code {
    height: 24px;
    width: 90%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-copy-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

@keyframes skeletonShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Entry Animation for Content */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-ready>* {
    animation: slideFadeIn 0.4s cubic-bezier(0.2, 0.0, 0.2, 1) forwards;
    opacity: 0;
    /* Star hidden */
}

/* Staggered delays for list items */
.content-ready .order-card:nth-child(1) {
    animation-delay: 0.05s;
}

.content-ready .order-card:nth-child(2) {
    animation-delay: 0.1s;
}

.content-ready .order-card:nth-child(3) {
    animation-delay: 0.15s;
}

.content-ready .order-card:nth-child(4) {
    animation-delay: 0.2s;
}

.content-ready .order-card:nth-child(5) {
    animation-delay: 0.25s;
}