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

:root {
    --primary: #FFD700;
    --secondary: #2C3E50;
    --accent: #E8941D;
    --light-bg: #F8F9FA;
    --border: #E0E0E0;
    --text: #333;
    --sidebar-bg: #F5F6F8;
    --sidebar-border: #E1E8ED;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light-bg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: block;
}

.logo .header-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ccc;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Header scorecards */
.header-scorecards {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.scorecard {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-width: 140px;
}

.scorecard-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFD700;
    margin-bottom: 0.35rem;
}

.scorecard-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.scorecard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.6;
}

.scorecard-num {
    color: white;
    font-weight: 600;
    margin-left: 1rem;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-greeting {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.greeting-name {
    font-size: 0.95rem;
    color: #ccc;
    font-weight: 400;
}

.greeting-sub {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.btn-corn {
    margin-top: 0.4rem;
    background: #cc0000;
    color: white;
    border: none;
    padding: 0.45rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    animation: cornGlow 30s infinite;
    transition: background 0.2s;
}

.btn-corn:hover {
    background: #e60000;
}

@keyframes cornGlow {
    0%, 88%, 100% {
        box-shadow: none;
    }
    90%, 96% {
        box-shadow: 0 0 14px 5px rgba(255, 215, 0, 0.65);
    }
    93% {
        box-shadow: 0 0 22px 8px rgba(255, 215, 0, 0.85);
    }
}

/* Layout wrapper */
.layout-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar Navigation */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

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

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(232, 148, 29, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

/* Subnav */
.sidebar-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-parent .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.sidebar-parent.open .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-subnav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.sidebar-subnav.open {
    display: block;
}

.sidebar-subnav a {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 2.75rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
    background: rgba(232, 148, 29, 0.08);
    color: var(--accent);
    border-left-color: var(--accent);
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Content sections */
.section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
}

.section h1 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.section h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section h2:first-child {
    margin-top: 0;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
}

/* Dashboard Roadmap Styles */
.dashboard-roadmap {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
}

.dashboard-roadmap h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.roadmap-subtitle {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Roadmap Diagram */
.roadmap-diagram {
    margin: 2rem 0;
    text-align: center;
}

.diagram-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    background: #0a1929;
}

/* Single Comprehensive Table */
.roadmap-table-single {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.roadmap-table-single thead {
    background: var(--secondary);
    color: white;
}

.roadmap-table-single th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent);
}

.roadmap-table-single tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.roadmap-table-single tbody tr:hover {
    background: #f9f9f9;
}

.roadmap-table-single tbody tr:last-child {
    border-bottom: none;
}

.roadmap-table-single td {
    padding: 1rem;
    vertical-align: top;
    color: #333;
}

.roadmap-table-single td:first-child {
    font-weight: 600;
    width: 160px;
    white-space: nowrap;
}

.label-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.label-badge.label-a {
    background: #1e3a8a;
    border: 2px solid #00bfff;
}

.label-badge.label-b {
    background: #1e3a8a;
    border: 2px solid #22c55e;
}

.label-badge.label-c {
    background: #1e3a8a;
    border: 2px solid #a855f7;
}

/* Live Dashboard Section */
.live-dashboard-section {
    margin-top: 5rem;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

/* Metrics Row */
.metrics-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: all 0.2s;
}

.metric-card:hover {
    border-color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.metric-data {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Chart Workspace */
.chart-workspace {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.workspace-header {
    padding: 1.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.workspace-header p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.window-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.window-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.window-btn.active {
    background: #0099ff;
    border-color: #0099ff;
    color: white;
}

/* Chart Area */
.chart-area {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.chart-placeholder {
    text-align: center;
    color: #64748b;
}

.chart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.chart-placeholder p {
    margin: 0.5rem 0;
    color: #64748b;
}

.chart-placeholder p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
}

.placeholder-text {
    font-size: 0.9rem;
    color: #475569;
}

