/* Custom styles for Chéo Đơn - Nền tảng Trao đổi Đơn hàng */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.trust-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.trust-badge.bronze {
    background-color: #cd7f32;
    color: white;
}

.trust-badge.silver {
    background-color: #c0c0c0;
    color: white;
}

.trust-badge.gold {
    background-color: #ffd700;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.status-open {
    background-color: #28a745;
    color: white;
}

.status-paused {
    background-color: #ffc107;
    color: #333;
}

.status-closed {
    background-color: #6c757d;
    color: white;
}

.match-timeline {
    position: relative;
    padding-left: 30px;
}

.match-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.match-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.match-timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #007bff;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
}

.card-link:hover .card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s;
}

.upload-preview {
    max-width: 300px;
    max-height: 300px;
    margin-top: 10px;
}

.table-responsive {
    overflow-x: auto;
}

/* Landing Page Styles */

/* Hero Section */
.hero-section {
    padding: 1rem 0;
    margin-top: -20px;
    margin-bottom: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-icon {
    opacity: 0.9;
}

.hero-icon svg {
    max-width: 100%;
    height: auto;
}

/* Pain Points Section */
.pain-points-section {
    padding: 60px 0;
}

.pain-icon svg {
    width: 48px;
    height: 48px;
}

/* Solution Section */
.solution-section {
    padding: 60px 0;
}

.solution-icon svg {
    width: 48px;
    height: 48px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.feature-icon {
    color: #007bff;
}

.feature-icon svg {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works-section {
    padding: 60px 0;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stat-item h1 {
    font-weight: bold;
}

/* Final CTA Section */
.final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-item h1 {
        font-size: 2.5rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    margin-bottom: 0;
}

/* Icon colors */
.pain-icon,
.solution-icon,
.feature-icon {
    display: inline-block;
}

/* List styling in cards */
.card ul {
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Mobile-first compact styles */
.card {
    padding: 0.75rem;
}

.card-body {
    padding: 0.75rem;
}

.card-footer {
    padding: 0.5rem 0.75rem;
}

/* Highlight styles for Order Value and Commission */
.highlight-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #28a745;
    display: block;
    margin: 0.25rem 0;
}

.highlight-commission {
    font-size: 0.9rem;
    font-weight: bold;
    color: #007bff;
    display: block;
    margin: 0.25rem 0;
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 2px solid #007bff;
    padding: 0.25rem;
    margin: 0.25rem 0;
    border-radius: 4px;
}

.highlight-box .highlight-value {
    margin: 0.25rem 0;
}

.highlight-box .highlight-commission {
    margin: 0.25rem 0;
}

/* Compact filters */
.card .row.g-3 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.75rem;
}

/* Compact product images */
.card-img-top {
    height: 180px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .card-img-top {
        height: 180px;
    }
}

/* Compact spacing */
.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

/* Compact stats cards */
.stats-compact .card {
    padding: 0.5rem;
}

.stats-compact .card-body {
    padding: 0.5rem;
}

.stats-compact h5 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stats-compact h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .card-footer {
        padding: 0.5rem;
    }
    
    .highlight-value {
        font-size: 1.1rem;
    }
    
    .highlight-commission {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

