/* ==========================================
   PREVIEW PAGE | STYLES
   ========================================== */

.preview-main {
    min-height: 100vh;
    padding: var(--spacing-xl) 0;
}

.preview-main h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.search-section p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ==================== PREVIEW CARD ==================== */
.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-xl);
    max-width: 900px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.preview-header h2 {
    color: var(--primary);
    flex: 1;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-badge.dp-paid {
    background: rgba(76, 175, 80, 0.2);
    color: #4ade80;
}

.status-badge.full-paid {
    background: rgba(76, 175, 80, 0.2);
    color: #4ade80;
}

/* ==================== PREVIEW SECTION ==================== */
.preview-section {
    margin-bottom: var(--spacing-xl);
}

.preview-section h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.info-item {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.info-item p {
    color: var(--text);
    font-size: 1rem;
}

/* ==================== PRICING TABLE ==================== */
.pricing-table {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--spacing-lg);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-row span:last-child {
    color: var(--text);
    text-align: right;
    font-family: var(--font-mono);
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: var(--spacing-md) 0;
}

.pricing-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    padding: var(--spacing-md) 0;
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--border));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    transition: opacity var(--transition);
}

.timeline-marker {
    position: absolute;
    left: -16px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--surface);
}

.timeline-marker.pending {
    background: var(--primary);
}

.timeline-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== PREVIEW ACTIONS ==================== */
.preview-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.preview-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* ==================== ERROR BOX ==================== */
.error-box {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
    border-radius: 12px;
    padding: var(--spacing-xl);
    color: #fca5a5;
}

.error-box p {
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .preview-main h1 {
        font-size: 1.8rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .preview-actions {
        flex-direction: column;
    }

    .preview-actions .btn {
        width: 100%;
    }
}
