/* Dashboard Main Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), #0d47a1);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--box-shadow);
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-header h2 {
    margin: 0.3rem 0 0;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.time-period {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

.period-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 0.5rem;
}

.period-value {
    font-weight: 600;
}

/* Main Content Styles */
.dashboard-content {
    flex: 1;
    padding: 2rem 0;
}

.dashboard-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    height: 100%;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

/* KPI Cards */
.kpi-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.kpi-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kpi-growth {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.kpi-growth.positive {
    background-color: rgba(52, 168, 83, 0.15);
    color: var(--secondary-color);
}

.kpi-growth.negative {
    background-color: rgba(234, 67, 53, 0.15);
    color: var(--danger-color);
}

.kpi-growth.neutral {
    background-color: rgba(251, 188, 5, 0.15);
    color: #d9730d;
}

/* Gauge Container */
.gauge-container {
    text-align: center;
    position: relative;
}

.gauge-label {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Financial Health Card */
.financial-health-card {
    padding: 1rem;
    height: 100%;
}

.financial-health-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.strength-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.strength-list i {
    margin-right: 0.5rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Segment Details */
.segment-details {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Geographic Presence Styles */
.geographic-presence-container {
    padding: 1rem;
    height: 250px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    overflow: auto;
}

.geo-presence-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.geo-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

.geo-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.geo-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.geo-marker.russia {
    background-color: #1a73e8;
}

.geo-marker.usa {
    background-color: #34a853;
}

.geo-marker.germany {
    background-color: #fbbc05;
}

.geo-marker.india {
    background-color: #ea4335;
}

.geo-marker.global {
    background-color: #9c27b0;
}

.geo-name {
    font-weight: 500;
}

/* SWOT Cards */
.swot-card {
    border-radius: var(--border-radius);
    padding: 1.25rem;
    height: 100%;
    transition: var(--transition);
}

.swot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.swot-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.swot-card h4 i {
    margin-right: 0.5rem;
}

.swot-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.swot-card li {
    margin-bottom: 0.5rem;
}

.swot-card.strengths {
    background-color: rgba(52, 168, 83, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.swot-card.strengths h4 {
    color: var(--secondary-color);
}

.swot-card.weaknesses {
    background-color: rgba(234, 67, 53, 0.1);
    border-left: 4px solid var(--danger-color);
}

.swot-card.weaknesses h4 {
    color: var(--danger-color);
}

.swot-card.opportunities {
    background-color: rgba(26, 115, 232, 0.1);
    border-left: 4px solid var(--primary-color);
}

.swot-card.opportunities h4 {
    color: var(--primary-color);
}

.swot-card.threats {
    background-color: rgba(251, 188, 5, 0.1);
    border-left: 4px solid var(--accent-color);
}

.swot-card.threats h4 {
    color: #d9730d;
}

/* Buffett Analysis Cards */
.buffett-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.buffett-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.buffett-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.buffett-card h4 i {
    margin-right: 0.5rem;
}

.buffett-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.buffett-card li {
    margin-bottom: 0.5rem;
}

.buffett-card.positive {
    background-color: rgba(52, 168, 83, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.buffett-card.positive h4 {
    color: var(--secondary-color);
}

.buffett-card.negative {
    background-color: rgba(234, 67, 53, 0.1);
    border-left: 4px solid var(--danger-color);
}

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

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 1rem 0;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.timeline-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.timeline-content h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.timeline-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Footer Styles */
.dashboard-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.dashboard-footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-header h2 {
        font-size: 1rem;
    }
    
    .time-period {
        margin-top: 1rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .chart-container, .map-container {
        height: 200px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 5px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 1rem 0;
    }
    
    .dashboard-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .kpi-card {
        padding: 1rem;
    }
    
    .kpi-value {
        font-size: 1.3rem;
    }
    
    .swot-card, .buffett-card {
        padding: 1rem;
    }
    
    .swot-card h4, .buffett-card h4 {
        font-size: 1rem;
    }
}
