:root {
    --bg-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    /* Removed glass vars */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed .background div styling entirely as we want plain white */

.container {
    width: 100%;
    max-width: 100%;
    /* Full width like the editor */
    /* Full width like the editor */
    height: 100vh;
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    padding: 0;
    overflow: hidden;
}

.sidebar {
    width: 320px;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.sidebar.left {
    align-items: flex-start;
    text-align: left;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar.right {
    align-items: flex-start;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    min-width: 0;
    /* Important for flex child to shrink */
}

.chart-container {
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0;
}

/* Typography Adjustments for Sidebar */
header {
    text-align: left;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.separator-line {
    width: 60px;
    height: 4px;
    background: #da0d68;
    margin-bottom: 1.5rem;
}

.intro {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    font-style: normal;
}

.guide-panel {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: auto;
    /* Push footer down */
}

.guide-panel h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #da0d68;
    text-transform: uppercase;
    font-weight: 700;
}

.guide-panel p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.85rem;
    color: #555;
}

footer {
    padding-top: 2rem;
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
    color: #888;
}

.legend span {
    display: block;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1.5rem;
        border: none;
        background: white;
    }

    .sidebar.left {
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }
}

/* Authors Section */
.authors-panel {
    margin-top: 2rem;
}

.authors-panel h3 {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: #444;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.8rem;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}

.author-info a:hover {
    color: #da0d68;
}

.author-info span {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;
}

/* Promo Section */
.promo-panel {
    margin-top: auto;
    /* Pushes to bottom */
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.promo-link:hover {
    background: rgba(0, 0, 0, 0.02);
}

.promo-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.promo-text {
    display: flex;
    flex-direction: column;
}

.promo-text span {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-text span:last-child {
    color: #da0d68;
    font-weight: 800;
}