/* Minimal global report theme overrides */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #2C154D; /* dark blue background for accessibility */
    color: #EDEAF6;
}

.top-nav-bar {
    background-color: #141022;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    border-radius: 30px;
}

.nav-logo-img { height: 30px; }

.nav-button {
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #854DFF; /* solid accessible button color */
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
}

.dashboard-header {
    width: 100%;
    background-color: #2C154D; /* solid background */
    color: #ffffff;
    padding: 140px 20px 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

.header-content { max-width: 1000px; margin: 0 auto; }

.header-subtitle {
    color: #C9B3FF;
    margin-bottom: 8px;
}

.dashboard-title {
    font-weight: 800;
    font-size: 88px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #E98537; /* warmer accent for global */
    margin: 0;
}

/* Shared content width and side gutters */
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Descriptive stats */
.analysis-section { width: 100%; padding: 50px 0; }
.analysis-section.light-bg { background-color: #2C154D; }
.analysis-section.light-bg h2 { color: #EDEAF6; }
.stats-scroller-container { width: 100%; overflow: hidden; }
.stats-scroller { display: flex; gap: 16px; padding: 16px; overflow-x: auto; }
.stat-card { min-width: 280px; min-height: 200px; background: #1E1933; color: #EDEAF6; border-radius: 14px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-icon { font-size: 36px; margin-bottom: 8px; }
.stat-number { font-size: 42px; font-weight: 700; margin-bottom: 6px; color: #E98537; }
.stat-description { font-size: 14px; color: #C9B3FF; }

/* Idea rank section */
.chart-container-card { background: #1E1933; border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.top-ideas-reveal-section { width: 100%; min-height: 160vh; position: relative; background-color: #2C154D; color: #FFFFFF; margin-bottom: 60px; }
.pinnedCardStackContainer, .pinned-card-stack-container { width: 100%; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; flex-direction: column; position: relative; }
.reveal-card { width: 70vw; max-width: 680px; min-height: 220px; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.reveal-card h3 { font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0; }
.reveal-card.card-1 { background-color: #6A0DAD; z-index: 5; }
.reveal-card.card-2 { background-color: #F488CD; z-index: 4; }
.reveal-card.card-3 { background-color: #40E0D0; z-index: 3; }
.reveal-card.card-4 { background-color: #8E59FF; z-index: 2; }
.reveal-card.card-5 { background-color: #FF9F1C; z-index: 1; }

.winning-idea-reveal { position: absolute; width: 80vw; max-width: 900px; left: 50%; transform: translateX(-50%); text-align: center; padding: 0 24px; }
.winning-idea-reveal h2 { font-weight: 700; font-size: 48px; color: #E98537; margin: 0; }
.winner-label { font-size: 16px; color: #E4D7FF; margin-bottom: 8px; }
.winning-idea-support { font-size: 28px; color: #EDEAF6; margin-top: 18px; }

.top-ideas-scroller-container { width: 100%; overflow: hidden; }
#topIdeasScroller { width: 100%; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding: 20px calc((100vw - 85vw) / 2); box-sizing: border-box; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
#topIdeasScroller::-webkit-scrollbar { height: 8px; }
#topIdeasScroller::-webkit-scrollbar-thumb { background-color: #cccccc; border-radius: 4px; }
.top-idea-card-placeholder { display: inline-flex; vertical-align: top; background-color: #1E1933; color: #EDEAF6; border-radius: 16px; padding: 36px; width: 85vw; height: 360px; margin-right: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.25); font-size: 1.2em; align-items: flex-start; justify-content: flex-start; text-align: left; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.4; overflow-y: auto; flex-direction: column; gap: 12px; }
.top-idea-card-placeholder h3 { color: #E98537; }
.top-idea-card-placeholder p { color: #EDEAF6; font-size: 1em; line-height: 1.5; }

/* Network */
#ideaNetworkChartContainerGlobal { position: relative; }
#ideaNetworkSvgGlobal { width: 100%; height: 100%; background: transparent; }
.zoom-controls { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.zoom-controls button { background: #854DFF; color: #fff; border: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.zoom-controls button:hover { background: #6F3FE0; }
.top-idea-card-placeholder:last-child { margin-right: 0; }

.idea-rank-toggle-container { text-align: center; margin-top: 16px; }
.idea-rank-toggle-btn { background-color: #854DFF; color: #fff; border: none; padding: 10px 18px; border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.idea-rank-toggle-btn:hover { background-color: #6F3FE0; }
.idea-rank-toggle-btn .toggle-icon { transition: transform 0.3s ease; font-size: 12px; }
.idea-rank-toggle-btn.expanded .toggle-icon { transform: rotate(180deg); }

/* Reuse modal styles */
.modal { display:none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); padding-top: 60px; }
.modal-content { background-color: #1E1933; margin: 5% auto; padding: 30px; border: 1px solid #888; border-radius: 8px; width: 80%; max-width: 700px; color: #EDEAF6; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-header { padding-bottom: 15px; border-bottom: 1px solid #333; margin-bottom: 12px; }
.close-button { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-button:hover { color: #fff; }

