/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --neutral-color: #34495e;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --positive-color: #27ae60;
    --negative-color: #c0392b;
    --neutral-status-color: #f39c12;
    --strength-color: #27ae60;
    --weakness-color: #e74c3c;
    --opportunity-color: #3498db;
    --threat-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    font-size: 0.8rem;
    color: var(--light-color);
}

.title {
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

.title h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.title p {
    font-size: 0.9rem;
    color: var(--light-color);
}

.current-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.price-range {
    font-size: 0.8rem;
    color: var(--light-color);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1;
    min-width: 300px;
}

.dashboard-card h2 {
    color: var(--neutral-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-color);
}

/* Summary Card */
.summary-card {
    flex: 1 1 100%;
}

.summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-content p {
    flex: 1;
    min-width: 300px;
}

.recommendation-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
}

.recommendation-box h3 {
    margin-bottom: 10px;
    color: var(--neutral-color);
}

.investor-recommendations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.investor-type {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background-color: white;
    border-radius: 4px;
}

.investor {
    font-weight: bold;
}

.recommendation {
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.recommendation.buy {
    background-color: var(--positive-color);
    color: white;
}

.recommendation.hold {
    background-color: var(--neutral-status-color);
    color: white;
}

.recommendation.avoid {
    background-color: var(--negative-color);
    color: white;
}

/* Chart Container */
.chart-container {
    height: 250px;
    margin-bottom: 15px;
}

/* Key Metrics */
.key-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.metric {
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 6px;
    min-width: 120px;
    flex: 1;
}

.metric-title {
    font-size: 0.8rem;
    color: var(--neutral-color);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.metric-comparison, .metric-status {
    font-size: 0.75rem;
}

.metric-status.positive {
    color: var(--positive-color);
}

.metric-status.negative {
    color: var(--negative-color);
}

.metric-status.neutral {
    color: var(--neutral-status-color);
}

/* SWOT Analysis */
.swot-card {
    flex: 1 1 100%;
}

.swot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.swot-item {
    padding: 15px;
    border-radius: 6px;
}

.swot-item h3 {
    margin-bottom: 10px;
    text-align: center;
}

.swot-item ul {
    list-style-position: inside;
}

.swot-item li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.strengths {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--strength-color);
}

.strengths h3 {
    color: var(--strength-color);
}

.weaknesses {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--weakness-color);
}

.weaknesses h3 {
    color: var(--weakness-color);
}

.opportunities {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--opportunity-color);
}

.opportunities h3 {
    color: var(--opportunity-color);
}

.threats {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--threat-color);
}

.threats h3 {
    color: var(--threat-color);
}

/* Price Targets & Scenarios */
.scenarios {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.scenario {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scenario h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.price-target {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.upside {
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

.scenario p {
    font-size: 0.85rem;
    text-align: center;
}

.bull {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--positive-color);
}

.bull h3, .bull .price-target {
    color: var(--positive-color);
}

.base {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--primary-color);
}

.base h3, .base .price-target {
    color: var(--primary-color);
}

.bear {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--negative-color);
}

.bear h3, .bear .price-target {
    color: var(--negative-color);
}

/* Conclusion Card */
.conclusion-card {
    flex: 1 1 100%;
}

.conclusion-card p {
    margin-bottom: 15px;
}

.key-factors {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.key-factors h3 {
    margin-bottom: 10px;
    color: var(--neutral-color);
}

.key-factors ol {
    padding-left: 20px;
}

.key-factors li {
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-color);
    color: var(--light-color);
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .title {
        order: -1;
    }
    
    .current-price {
        align-items: center;
    }
    
    .dashboard-card {
        flex: 1 1 100%;
    }
    
    .swot-container {
        grid-template-columns: 1fr;
    }
}
