/* Simplified Compact Card Layout Styles - Add to orders.css */

/* SIMPLIFIED COMPACT CARD LAYOUT */
.card-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
    position: relative;
}

.card-compact-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.order-preview-image {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow:
        0 6px 20px rgba(0, 166, 81, 0.12),
        inset 0 0 0 2px rgba(0, 166, 81, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.order-preview-image:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow:
        0 10px 30px rgba(0, 166, 81, 0.2),
        inset 0 0 0 2px rgba(0, 166, 81, 0.2);
}

.order-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.order-preview-image:hover img {
    transform: scale(1.1);
}

.items-count {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow:
        0 4px 12px rgba(0, 166, 81, 0.4),
        0 0 0 3px white;
    border: 2px solid white;
}

html.dark-mode .items-count {
    box-shadow:
        0 4px 12px rgba(0, 166, 81, 0.4),
        0 0 0 3px #1e293b;
    border-color: #1e293b;
}

.order-compact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.order-id-compact {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-date-compact,
.order-items-compact {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.order-date-compact i,
.order-items-compact i {
    color: var(--primary-color);
    font-size: 13px;
}

.card-compact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.total-amount-compact {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1;
}

.view-details-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 166, 81, 0.05));
    border: 2px solid rgba(0, 166, 81, 0.2);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.1);
}

.view-details-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.3);
}

.view-details-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.view-details-btn.active i {
    transform: rotate(359deg);
}

.view-details-btn i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Status Badge - Compact positioning */
.card-compact-right .status-badge {
    margin: 0;
    padding: 8px 16px;
    font-size: 10px;
}

/* Mobile Responsive for Compact Card */
@media (max-width: 768px) {
    .card-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 20px;
    }

    .card-compact-left {
        width: 100%;
    }

    .card-compact-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .order-preview-image {
        width: 60px;
        height: 60px;
    }

    .total-amount-compact {
        font-size: 20px;
    }

    .order-meta {
        gap: 12px;
    }
}
