/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 76px;
    background-color: var(--light-bg);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    padding: 80px 0;
    margin-top: -76px;
    padding-top: 156px;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* Insight Cards */
.insight-card {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.insight-card:nth-child(1) {
    border-left-color: var(--primary-color);
}

.insight-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.insight-card:nth-child(3) {
    border-left-color: var(--warning-color);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.insight-card:nth-child(1) .insight-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.insight-card:nth-child(2) .insight-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.insight-card:nth-child(3) .insight-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Opportunity List */
.opportunity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opportunity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.opportunity-item:hover {
    background: #e5e7eb;
    transform: translateX(5px);
}

.opportunity-number {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: -30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.timeline-content h5 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 15px;
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.progress-bar {
    border-radius: 4px;
    transition: width 1s ease;
}

/* Sentiment Score Colors */
.sentiment-high {
    color: var(--secondary-color);
    font-weight: 600;
}

.sentiment-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.sentiment-low {
    color: var(--danger-color);
    font-weight: 600;
}

/* Review Cards */
.review-card {
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.review-card.positive {
    border-left-color: var(--secondary-color);
}

.review-card.negative {
    border-left-color: var(--danger-color);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Filter Controls */
.filter-controls {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.filter-controls .form-control,
.filter-controls .form-select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-badge {
        left: -20px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}