@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.monitor-container {
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.monitor {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transform: perspective(1000px) rotateX(5deg);
}

.screen {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
}

.stats-title {
    text-align: center;
    margin-bottom: 40px;
}

.stats-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.stats-title p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.chart-container {
    height: 250px;
    position: relative;
}

.image-chart {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.chart-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f9fa; /* fallback color */
    border: 1px solid #ccc; /* broken image stays visible */
}

.chart-image:hover {
    transform: scale(1.05);
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.05);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-chart:hover .chart-overlay {
    opacity: 1;
}

.data-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 150px;   /* adjust if needed */
    overflow-y: auto;
    padding-right: 5px;  /* space for scrollbar */
}

.data-points::-webkit-scrollbar {
    width: 6px;
}

.data-points::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 6px;
}

.data-point {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.data-point.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.data-point.warning {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.insights-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.insight-card:nth-child(1) { border-left-color: #667eea; }
.insight-card:nth-child(2) { border-left-color: #764ba2; }
.insight-card:nth-child(3) { border-left-color: #ff6b6b; }

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.insight-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.insight-card p {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.5;
}

.stats-footer {
    text-align: center;
    margin-top: 20px;
}

.source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #7f8c8d;
}

.logo-img {
    opacity: 0.7;
    border-radius: 4px;
}

.monitor-stand {
    width: 120px;
    height: 80px;
    background: linear-gradient(145deg, #bdc3c7, #95a5a6);
    margin: -10px auto 0;
    border-radius: 0 0 20px 20px;
    position: relative;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.monitor-base {
    width: 200px;
    height: 20px;
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: -3s;
}

.floating-elements::after {
    top: 60%;
    right: 15%;
    animation-delay: -1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(5deg) translateY(50px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(5deg) translateY(0);
    }
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .insights-section {
        grid-template-columns: 1fr;
    }
    
    .screen {
        padding: 30px 20px;
    }
    
    .monitor {
        transform: none;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .chart-container {
        height: 200px;
    }
}