/* AI Insight Dashboard Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a2332;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

/* Top Navigation Bar */
.top-nav {
    background: #1a2332;
    border-bottom: 1px solid #2d3a4b;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
}

.logo i {
    font-size: 1.8rem;
    color: #fbbf24;
}

.nav-center {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #4ade80;
    color: #1a2332;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
    color: #9ca3af;
}

.nav-item:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fbbf24;
    color: #1a2332;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.profile {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.1);
    color: #ffffff;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4ade80;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section - Cube */
.hero-section {
    margin-bottom: 3rem;
    perspective: 1000px;
}

.hero-cube-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cube-scene {
    width: 100%;
    height: 300px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.cube-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: -80px;
    right: -80px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.cube-nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.3);
    pointer-events: auto;
}

.cube-nav-btn:hover {
    background: #4ade80;
    color: #1a2332;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.hero-cube {
    position: relative;
    width: 600px;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-cube-face {
    position: absolute;
    width: 600px;
    height: 250px;
    background: #2d3a4b;
    border: 1px solid #3f4e63;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden;
    overflow: hidden;
}

.hero-cube-face.front {
    transform: rotateY(0deg) translateZ(300px);
}

.hero-cube-face.right {
    transform: rotateY(90deg) translateZ(300px);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #1a2332;
}

.hero-cube-face.back {
    transform: rotateY(180deg) translateZ(300px);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.hero-cube-face.left {
    transform: rotateY(-90deg) translateZ(300px);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a2332;
}

.hero-face-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.hero-greeting {
    font-size: 1.8rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 1rem;
}

.username {
    color: #4ade80;
}

.sentiment-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sentiment-label {
    color: #9ca3af;
    font-size: 1rem;
}

.sentiment-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sentiment-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4ade80;
}

.sentiment-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-radius: 12px;
    font-weight: 600;
}

/* AI Insights Face */
.ai-insights .ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ai-message {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ai-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 35, 50, 0.3);
    color: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.ai-action-btn:hover {
    background: rgba(26, 35, 50, 0.5);
    transform: translateY(-2px);
}

/* Market Status Face */
.market-status h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.market-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.market-label {
    font-weight: 500;
}

.market-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.market-value.positive {
    color: #4ade80;
}

/* Portfolio Health Face */
.portfolio-health h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
}

.health-label {
    font-weight: 500;
}

.health-value {
    font-weight: 600;
    font-size: 1.2rem;
}

.health-value.excellent {
    color: #4ade80;
}

.health-value.moderate {
    color: #fbbf24;
}

/* Hero Cube Indicators */
.hero-cube-info {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.hero-cube-indicators {
    display: flex;
    gap: 0.75rem;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.hero-indicator.active {
    background: #4ade80;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.hero-indicator:hover {
    background: rgba(74, 222, 128, 0.6);
    transform: scale(1.1);
}

/* Key Insight Modules */
.insight-modules {
    margin-bottom: 3rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: #2d3a4b;
    border: 1px solid #3f4e63;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-header i {
    color: #4ade80;
    font-size: 1.3rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Market Movers */
.movers-section h4 {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.mover-item:last-child {
    border-bottom: none;
}

.stock-name {
    font-weight: 500;
}

.stock-change {
    font-weight: 600;
}

.stock-change.positive {
    color: #4ade80;
}

.stock-change.negative {
    color: #ef4444;
}

/* Asset Allocation */
.allocation-suggestion h4 {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.allocation-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.allocation-bar {
    flex: 1;
    height: 8px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.allocation-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.allocation-fill.equity {
    background: #4ade80;
}

.allocation-fill.bonds {
    background: #3b82f6;
}

.allocation-fill.gold {
    background: #fbbf24;
}

.allocation-fill.cash {
    background: #9ca3af;
}

.allocation-label {
    font-weight: 500;
    min-width: 80px;
}

/* Sentiment Tracker */
.sentiment-sources {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(74, 222, 128, 0.05);
    border-radius: 12px;
}

.source-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.source-icon.twitter {
    background: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
}

.source-icon.reddit {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
}

.source-icon.news {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.sentiment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.source-name {
    font-weight: 500;
}

.sentiment-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.sentiment-status.bullish {
    color: #4ade80;
}

.sentiment-status.neutral {
    color: #9ca3af;
}

/* Dynamic Insights Feed */
.insights-feed {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-item {
    background: #2d3a4b;
    border: 1px solid #3f4e63;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.feed-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feed-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    flex-shrink: 0;
}

.feed-icon.alert {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feed-message {
    font-size: 1rem;
    line-height: 1.5;
}

.feed-action {
    background: #4ade80;
    color: #1a2332;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.feed-action:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.feed-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.feed-time {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Portfolio Analysis Snapshot */
.portfolio-snapshot {
    margin-bottom: 3rem;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.snapshot-card {
    background: #2d3a4b;
    border: 1px solid #3f4e63;
    border-radius: 16px;
    padding: 2rem;
}

.snapshot-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.health-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.health-score {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#4ade80 0deg 280deg, rgba(74, 222, 128, 0.2) 280deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    background: #2d3a4b;
    border-radius: 50%;
    position: absolute;
}

.score-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ade80;
    z-index: 1;
}

.score-label {
    font-weight: 500;
}

.ai-suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
}

.ai-suggestion i {
    color: #fbbf24;
}

.risk-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.risk-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-label {
    font-weight: 500;
}

.risk-value.moderate {
    color: #fbbf24;
    font-weight: 600;
}

.risk-details p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.risk-meter {
    height: 8px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #fbbf24);
    transition: width 0.8s ease;
}

/* Footer */
.footer {
    background: #2d3a4b;
    border-top: 1px solid #3f4e63;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4ade80;
}

.footer-info p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-cube {
        width: 500px;
        height: 200px;
    }
    
    .hero-cube-face {
        width: 500px;
        height: 200px;
        padding: 1.5rem;
    }
    
    .hero-cube-face.front {
        transform: rotateY(0deg) translateZ(250px);
    }
    
    .hero-cube-face.right {
        transform: rotateY(90deg) translateZ(250px);
    }
    
    .hero-cube-face.back {
        transform: rotateY(180deg) translateZ(250px);
    }
    
    .hero-cube-face.left {
        transform: rotateY(-90deg) translateZ(250px);
    }
    
    .cube-controls {
        left: -60px;
        right: -60px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
    }
    
    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #3f4e63;
    }
    
    .hero-cube {
        width: 350px;
        height: 180px;
    }
    
    .hero-cube-face {
        width: 350px;
        height: 180px;
        padding: 1rem;
    }
    
    .hero-cube-face.front {
        transform: rotateY(0deg) translateZ(175px);
    }
    
    .hero-cube-face.right {
        transform: rotateY(90deg) translateZ(175px);
    }
    
    .hero-cube-face.back {
        transform: rotateY(180deg) translateZ(175px);
    }
    
    .hero-cube-face.left {
        transform: rotateY(-90deg) translateZ(175px);
    }
    
    .cube-controls {
        left: -40px;
        right: -40px;
    }
    
    .cube-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    
    .feed-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .feed-meta {
        align-items: flex-start;
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Tab System */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Portfolio Sentiment Analysis Styles */
.portfolio-sentiment-container {
    margin-bottom: 3rem;
}

.portfolio-sentiment-analysis {
    background: #2d3a4b;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #374151;
    margin-bottom: 2rem;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-title h2 {
    color: #4ade80;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-title h2 i {
    color: #fbbf24;
}

.portfolio-title p {
    color: #94a3b8;
    margin: 0;
}

.portfolio-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.last-updated {
    font-size: 0.8rem;
    color: #94a3b8;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #1a2332;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.summary-card.positive {
    border-color: #22c55e;
}

.summary-card.negative {
    border-color: #ef4444;
}

.summary-card.neutral {
    border-color: #6b7280;
}

.summary-icon {
    font-size: 2rem;
}

.summary-card.positive .summary-icon {
    color: #22c55e;
}

.summary-card.negative .summary-icon {
    color: #ef4444;
}

.summary-card.neutral .summary-icon {
    color: #6b7280;
}

.summary-content h3 {
    margin: 0 0 0.25rem 0;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.stock-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
}

.portfolio-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.stock-list {
    background: #1a2332;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #374151;
}

.stock-list h3 {
    margin-bottom: 1rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.positive-list h3 {
    color: #22c55e;
}

.negative-list h3 {
    color: #ef4444;
}

.neutral-list h3 {
    color: #6b7280;
}

.stock-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-item {
    background: #2d3a4b;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stock-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.stock-item.positive {
    border-left-color: #22c55e;
}

.stock-item.negative {
    border-left-color: #ef4444;
}

.stock-item.neutral {
    border-left-color: #6b7280;
}

.stock-info {
    flex: 1;
}

.stock-symbol {
    font-weight: 700;
    font-size: 1.1rem;
    color: #4ade80;
    margin-bottom: 0.25rem;
}

.stock-name {
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.stock-details {
    font-size: 0.9rem;
    color: #94a3b8;
}

.sector-tag {
    display: inline-block;
    background: #4ade80;
    color: #1a2332;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.sentiment-score {
    text-align: right;
}

.confidence-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stock-item.positive .confidence-percentage {
    color: #22c55e;
}

.stock-item.negative .confidence-percentage {
    color: #ef4444;
}

.stock-item.neutral .confidence-percentage {
    color: #6b7280;
}

.news-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Portfolio Table Styles */
.portfolio-table-container {
    margin-top: 2rem;
    overflow-x: auto;
}

.portfolio-sentiment-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a2332;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-sentiment-table thead {
    background: #2d3a4b;
}

.portfolio-sentiment-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #374151;
}

.positive-header {
    color: #22c55e;
    border-right: 1px solid #374151;
}

.negative-header {
    color: #ef4444;
    border-right: 1px solid #374151;
}

.neutral-header {
    color: #6b7280;
}

.portfolio-sentiment-table thead th i {
    margin-right: 0.5rem;
}

.portfolio-sentiment-table tbody tr {
    border-bottom: 1px solid #374151;
}

.portfolio-sentiment-table tbody tr:last-child {
    border-bottom: none;
}

.portfolio-sentiment-table td {
    padding: 1rem;
    vertical-align: top;
    border-right: 1px solid #374151;
    width: 33.33%;
}

.portfolio-sentiment-table td:last-child {
    border-right: none;
}

.positive-cell {
    background: rgba(34, 197, 94, 0.05);
}

.negative-cell {
    background: rgba(239, 68, 68, 0.05);
}

.neutral-cell {
    background: rgba(107, 114, 128, 0.05);
}

.table-stock-item {
    background: #2d3a4b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.positive-cell .table-stock-item {
    border-left-color: #22c55e;
}

.negative-cell .table-stock-item {
    border-left-color: #ef4444;
}

.neutral-cell .table-stock-item {
    border-left-color: #6b7280;
}

.table-stock-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.table-stock-symbol {
    font-weight: 700;
    font-size: 1rem;
    color: #4ade80;
    margin-bottom: 0.25rem;
}

.table-stock-name {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.table-stock-confidence {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.positive-cell .table-stock-confidence {
    color: #22c55e;
}

.negative-cell .table-stock-confidence {
    color: #ef4444;
}

.neutral-cell .table-stock-confidence {
    color: #6b7280;
}

.table-stock-value {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.table-stock-sector {
    display: inline-block;
    background: #4ade80;
    color: #1a2332;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.portfolio-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1a2332;
    border-radius: 10px;
    border: 1px solid #374151;
}

.portfolio-details h3 {
    color: #4ade80;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-details p {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Table */
@media (max-width: 768px) {
    .portfolio-sentiment-table {
        font-size: 0.9rem;
    }
    
    .portfolio-sentiment-table th,
    .portfolio-sentiment-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-stock-item {
        padding: 0.75rem;
    }
    
    .table-stock-symbol {
        font-size: 0.9rem;
    }
    
    .table-stock-name {
        font-size: 0.8rem;
    }
}

/* Remove old portfolio lists styles and keep summary */
@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-controls {
        align-items: flex-start;
        width: 100%;
    }
    
    .portfolio-lists {
        grid-template-columns: 1fr;
    }
    
    .portfolio-summary {
        grid-template-columns: 1fr;
    }
    
    .stock-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sentiment-score {
        text-align: left;
        width: 100%;
    }
}

/* Sentiment Analyzer Styles */
.sentiment-analyzer-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.sentiment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sentiment-header h1 {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.sentiment-header h1 i {
    margin-right: 1rem;
    color: #fbbf24;
}

.sentiment-header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

.load-portfolio-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a2332;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.load-portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.sentiment-input-section {
    background: #2d3a4b;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #374151;
}

.input-container label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.input-container textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #374151;
    border-radius: 10px;
    background: #1a2332;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-container textarea:focus {
    outline: none;
    border-color: #4ade80;
}

.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.analyze-btn, .clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analyze-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

.clear-btn {
    background: #374151;
    color: #e2e8f0;
}

.clear-btn:hover {
    background: #4b5563;
}

.sample-texts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.sample-texts h3 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.sample-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sample-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #1a2332;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sample-btn:hover {
    background: #374151;
    transform: translateY(-1px);
}

.sample-btn.positive {
    border-color: #22c55e;
    color: #22c55e;
}

.sample-btn.negative {
    border-color: #ef4444;
    color: #ef4444;
}

.sample-btn.neutral {
    border-color: #6b7280;
    color: #6b7280;
}

.sentiment-results {
    background: #2d3a4b;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #374151;
}

.results-header h2 {
    color: #4ade80;
    margin-bottom: 1.5rem;
}

.sentiment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sentiment-card {
    background: #1a2332;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #374151;
    transition: all 0.3s ease;
}

.sentiment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.sentiment-card.positive-card {
    border-color: #22c55e;
}

.sentiment-card.negative-card {
    border-color: #ef4444;
}

.sentiment-card.neutral-card {
    border-color: #6b7280;
}

.sentiment-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.positive-card .sentiment-icon {
    color: #22c55e;
}

.negative-card .sentiment-icon {
    color: #ef4444;
}

.neutral-card .sentiment-icon {
    color: #6b7280;
}

.sentiment-info h3 {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.confidence-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    transition: width 0.8s ease;
    border-radius: 4px;
}

.positive-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.negative-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.neutral-fill {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.overall-sentiment {
    background: #1a2332;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #4ade80;
}

.overall-header h3 {
    margin-bottom: 1rem;
    color: #4ade80;
}

.overall-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sentiment-label {
    font-size: 1.3rem;
    font-weight: 600;
}

.sentiment-confidence {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ade80;
}

.sentiment-history {
    background: #2d3a4b;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #374151;
}

.sentiment-history h2 {
    color: #4ade80;
    margin-bottom: 1.5rem;
}

.history-container {
    min-height: 200px;
}

.no-history {
    text-align: center;
    color: #94a3b8;
    padding: 3rem;
}

.no-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.history-item {
    background: #1a2332;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #4ade80;
}

.history-text {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.history-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-sentiment {
    font-weight: 600;
}

.history-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    padding: 5rem 2rem;
    color: #94a3b8;
}

.coming-soon i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #4ade80;
}

.coming-soon h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #374151;
    border-radius: 50%;
    border-top-color: #4ade80;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design for Sentiment Analyzer */
@media (max-width: 768px) {
    .sentiment-cards {
        grid-template-columns: 1fr;
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .sample-buttons {
        flex-direction: column;
    }
    
    .overall-result {
        flex-direction: column;
        gap: 0.5rem;
    }
}