/* Modern Customer Preview Section */
.preview-section {
    padding: 120px 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    z-index: 1;
}

.preview-section .container {
    position: relative;
    z-index: 2;
}

.preview-section h2 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 60px;
    font-weight: 400;
}

/* Modern Preview Container */
.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Modern Header */
.preview-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tabs with Glassmorphism */
.preview-tabs {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.tab {
    padding: 10px 20px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Action Buttons */
.preview-actions {
    display: flex;
    gap: 12px;
}

.preview-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.preview-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.preview-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Customer List */
.preview-list {
    background: #fafbfc;
    padding: 0;
}

/* Modern Customer Preview Cards */
.customer-preview {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 25px 35px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.customer-preview::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.customer-preview:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.customer-preview:hover::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Modern Avatar */
.customer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.customer-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Customer Info */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-info strong {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.customer-details {
    font-size: 0.9rem;
    color: #64748b;
}

/* Modern Color Chips */
.customer-colors {
    display: flex;
    gap: -8px;
    align-items: center;
}

.color-chip {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-chip:hover {
    transform: scale(1.2) rotate(10deg);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.color-chip:nth-child(2) {
    margin-left: -10px;
}

/* Customer Stats */
.customer-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.total-spent {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-visit {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Modern Action Buttons */
.customer-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preview-section {
        padding: 80px 40px;
    }

    .preview-section h2 {
        font-size: 2.8rem;
    }

    .customer-preview {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }

    .customer-colors,
    .customer-stats,
    .customer-actions {
        grid-column: 1 / -1;
    }

    .preview-header {
        flex-direction: column;
        gap: 20px;
    }

    .preview-tabs,
    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .preview-section {
        padding: 60px 20px;
    }

    .preview-section h2 {
        font-size: 2.2rem;
    }

    .preview-container {
        border-radius: 16px;
    }

    .customer-preview {
        padding: 20px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .customer-avatar {
        margin: 0 auto;
    }

    .customer-info {
        text-align: center;
    }

    .customer-colors {
        justify-content: center;
        margin: 15px 0;
    }

    .customer-stats {
        align-items: center;
    }

    .customer-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .preview-tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
    }
}