/* IntrinsiclyIQ - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #198754;
    --success-gradient: linear-gradient(135deg, #52c234 0%, #2e8b57 100%);
    --warning-color: #ffc107;
    --warning-gradient: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* DCF Model Centered Layout for Ads */
.dcf-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    transition: var(--transition);
}

/* Responsive adjustments */
@media (max-width: 1599px) {
    .dcf-main-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Ad Sidebar Styles */
.ad-sidebar {
    position: fixed;
    top: 80px;
    width: 180px;
    height: calc(100vh - 80px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-sidebar-left {
    left: 10px;
}

.ad-sidebar-right {
    right: 10px;
}

.ad-sidebar .adsbygoogle {
    width: 160px !important;
    height: 600px !important;
    display: block;
}

/* Ad-Ready Layout */
@media (min-width: 1600px) {
    .dcf-main-container {
        max-width: 1200px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 20px;
        margin: 20px auto;
        backdrop-filter: blur(10px);
    }
    
    /* Space for side ads on larger screens */
    body {
        padding: 0 200px;
    }
}

@media (min-width: 1920px) {
    .dcf-main-container {
        max-width: 1400px;
    }
    
    /* More space for ads on ultra-wide screens */
    body {
        padding: 0 280px;
    }
    
    body::before,
    body::after {
        width: 260px;
    }
}

.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Navigation Enhancements */
.navbar-dark .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

.bg-success-gradient {
    background: var(--success-gradient) !important;
}

.user-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
}

.level-badge {
    background: var(--warning-gradient);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.points-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-highlights .feature-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

/* Dashboard Preview in Hero */
.dashboard-preview {
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-card .stat-content {
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-title {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Background Variants */
.bg-primary-light {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.bg-success-light {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.bg-info-light {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

.bg-warning-light {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.stat-value {
    color: var(--primary-color);
}

/* Model Cards */
.model-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.model-card:hover {
    border-left-color: var(--success-color);
    transform: translateX(5px);
}

.result-item {
    background: var(--light-color);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

/* Company Search */
.search-container .card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--primary-gradient) border-box;
}

.company-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.company-card .company-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.company-result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.company-result-card:hover {
    transform: translateY(-2px);
}

/* Intelligent Suggestions Styles */
.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.suggestion-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.suggestion-item .fw-bold {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.suggestion-item .text-muted {
    font-size: 0.85rem;
}

.suggestion-item .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

#suggestionContainer h6 {
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* DCF Model Interface */
.dcf-input-panel .card {
    position: sticky;
    top: 100px;
}

.assumption-group {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.assumption-group:hover {
    background: #e9ecef;
    border-left-color: var(--success-color);
}

.assumption-help {
    cursor: help;
    color: var(--info-color);
}

.form-range {
    margin-bottom: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.assumption-input {
    font-weight: 600;
    text-align: center;
}

/* Valuation Results */
.valuation-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.valuation-metric {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

/* Recommendation Badge */
.recommendation-badge {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommendation-strong-buy {
    background: var(--success-gradient);
    color: white;
}

.recommendation-buy {
    background: #28a745;
    color: white;
}

.recommendation-hold {
    background: var(--warning-color);
    color: var(--dark-color);
}

.recommendation-sell {
    background: #fd7e14;
    color: white;
}

.recommendation-strong-sell {
    background: var(--danger-color);
    color: white;
}

/* Sensitivity Analysis */
.sensitivity-table {
    overflow-x: auto;
}

.sensitivity-table table {
    font-size: 0.875rem;
}

.sensitivity-cell {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
}

.sensitivity-positive {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.sensitivity-negative {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Dashboard */
.dashboard-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.quick-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.company-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Level Progress */
.level-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.level-number {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Achievements */
.achievements-list {
    max-height: 400px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

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

.achievement-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    color: #6c757d;
    font-size: 0.875rem;
}

.achievement-points {
    color: var(--warning-color);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Leaderboard */
.podium-section {
    perspective: 1000px;
}

.podium-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.podium-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.podium-card.gold {
    border: 3px solid #ffd700;
    transform: scale(1.1);
}

.podium-card.silver {
    border: 3px solid #c0c0c0;
}

.podium-card.bronze {
    border: 3px solid #cd7f32;
}

.podium-crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ffd700;
}

.podium-rank {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.podium-avatar {
    margin: 1rem 0;
    color: var(--primary-color);
}

.podium-name {
    font-weight: 700;
    margin-bottom: 1rem;
}

.podium-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.podium-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.podium-stats .stat-value {
    font-weight: 700;
    color: var(--primary-color);
}

.podium-stats .stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.podium-level {
    background: var(--warning-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.rank-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin: 0 auto;
}

.rank-1, .rank-2, .rank-3 {
    background: var(--warning-gradient);
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: var(--primary-color);
    font-size: 0.875rem;
}

.user-avatar {
    color: var(--primary-color);
}

.accuracy-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.875rem;
}

.accuracy-excellent {
    background: var(--success-color);
    color: white;
}

.accuracy-good {
    background: #28a745;
    color: white;
}

.accuracy-fair {
    background: var(--warning-color);
    color: var(--dark-color);
}

.accuracy-poor {
    background: var(--danger-color);
    color: white;
}

/* Empty States */
.empty-state {
    padding: 3rem 2rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

.bg-gradient {
    background: var(--primary-gradient) !important;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

.bounce {
    animation: bounce 1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }
    
    .podium-card {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .company-card {
        margin-bottom: 1rem;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner-border {
    border-width: 3px;
}

/* Tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Analyst Targets Styling */
.accuracy-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.accuracy-circle .fw-bold {
    font-size: 0.85rem !important;
}

.analyst-metric {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
}

.analyst-metric .metric-value {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.analyst-metric .metric-label {
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-section {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid var(--info-color);
}

.individual-targets {
    background: rgba(108, 117, 125, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.bg-info-gradient {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
}

/* Call-to-Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.cta-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.bg-gradient-primary-light {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
}

/* Enhanced New Model Button */
.btn-primary.btn-lg {
    background: linear-gradient(135deg, #4a90e2 0%, #38bdf8 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #3d7bc6 0%, #2a9dd9 100%);
}

.btn-info.btn-lg {
    background: linear-gradient(135deg, #0dcaf0 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-info.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3);
    background: linear-gradient(135deg, #0bb3d4 0%, #1ba684 100%);
}

/* Navigation New Model Button - Always Visible */
.navbar .btn-light {
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Achievement Cards */
.achievement-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card.earned {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

.achievement-card.locked {
    border: 2px solid #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.achievement-badge {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.earned-overlay {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #28a745;
    font-size: 1.2rem;
    background: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.locked-overlay {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #6c757d;
    font-size: 1rem;
    background: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.achievement-name {
    font-weight: 600;
}

.achievement-desc {
    line-height: 1.4;
}

.achievement-reward .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.earned-date {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Achievement Categories */
.feature-card {
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Market Ticker */
.market-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    height: 40px;
    overflow: hidden;
    border-top: 2px solid #4a90e2;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ticker-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    animation: scroll-left 60s linear infinite;
    white-space: nowrap;
    align-items: center;
    height: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.ticker-item:last-child {
    border-right: none;
}

.ticker-symbol {
    font-weight: 700;
    color: #ffffff;
    margin-right: 0.5rem;
}

.ticker-price {
    color: #e3f2fd;
    margin-right: 0.5rem;
}

.ticker-change {
    font-weight: 600;
    margin-right: 0.5rem;
}

.ticker-change.positive {
    color: #4caf50;
}

.ticker-change.negative {
    color: #f44336;
}

.ticker-news {
    color: #bbdefb;
    font-style: italic;
}

.ticker-time {
    color: #90caf9;
    font-size: 0.8rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 0 0.5rem;
}

@keyframes scroll-left {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Responsive ticker */
@media (max-width: 768px) {
    .market-ticker-container {
        height: 35px;
    }
    
    .ticker-item {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

/* Adjust main content to account for ticker */
.main-content {
    padding-bottom: 50px; /* Add space for ticker */
}

/* Interactive ticker items */
.ticker-stock-item, .ticker-news-item, .ticker-bond-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.ticker-stock-item:hover, .ticker-news-item:hover, .ticker-bond-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.ticker-bond-item {
    border-left: 2px solid #ffd700;
    padding-left: 6px;
}

.ticker-link-icon {
    opacity: 0.7;
    font-size: 0.7em;
}

.most-active-indicator .ticker-label {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ticker-volume {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 0.5rem;
}

/* Print Styles */
@media print {
    .navbar, .btn, .modal, .market-ticker-container { display: none !important; }
    .main-content { padding-top: 0; padding-bottom: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
