:root {
    color-scheme: dark;
    --bg: #121212;
    --panel: #222;
    --card: #292929;
    --border: #505050;
    --text: white;
    --muted: #bbb;
    --green: #4CAF50;
    --red: #e57373;
    --blue: #4CAF50
}
/*im gonna add the css for the nav bar here*/
/*DUDE R U SLOW*/
/*what??*/
/*THE BACK BUTTON ISNT WORKING*/
/*I SEEE*/
.credits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
nav {
    background-color: var(--border);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
small,
label {
    color: var(--text) !important;
}
* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #121212;
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5
}

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

.app {
    max-width: 1100px;
    margin: auto;
    padding: 30px 22px
}

.header,
.section-head,
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.eyebrow {
    font-size: .68rem;
    color: var(--blue);
    font-weight: normal;
    
    margin: 0 0 6px
}

.header h1 {
    font-size: 28px;
    margin: 0
}

.subtitle {
    color: var(--muted);
    margin: 4px 0 0
}

.status-bar {
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px
}

.status-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    min-width: 0
}

.label {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: 3px
}

.status-item strong {
    font-size: 1.16rem;
    overflow-wrap: anywhere
}

.main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px
}

.investments-panel,
.side-panel {
    background: #222;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px
}

.section-head h2,
.side-panel h2 {
    margin: 0 0 14px
}

.hint,
.smallprint {
    color: var(--muted);
    font-size: .78rem
}

.investment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.investment-card,
.stock-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 17px
}
h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--text);
}
.investment-card h3,
.stock-item h3 {
    margin: 0 0 5px
}

.investment-card p {
    font-size: .83rem;
    color: var(--muted);
    margin: 3px 0
}

.risk {
    font-weight: normal
}

.risk.low {
    color: var(--green)
}

.risk.medium {
    color: #ffce78
}

.risk.high,
.risk.very-high {
    color: var(--red)
}

.allocation {
    margin-top: 12px;
    font-size: .87rem
}

.allocation strong {
    color: var(--green)
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px
}

.controls input {
    grid-column: span 2
}

.controls input,
.stock-tools input,
.stock-tools select,
.stock-trade input {
    width: 100%;
    background: #222;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    min-width: 0
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 15px;
    font-weight: normal
}

.btn.primary {
    background: #4CAF50;
    color: white
}

.btn.invest {
    background: #4CAF50;
    color: white
}

.btn.sell {
    background: #555;
    color: white
}

.btn.secondary {
    background: #444;
    color: var(--text)
}

.btn.small {
    padding: 8px 12px;
    font-size: .85rem
}

.btn:hover:not(:disabled) {
    filter: brightness(1.08)
}

.stock-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    background: #292929;
    padding: 18px;
    border-radius: 8px
}

.stock-launch h2 {
    margin: 0;
    font-size: 1.1rem
}

.stock-launch p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .82rem
}

.mood {
    padding: 10px;
    background: #333;
    border-radius: 8px;
    font-size: .84rem
} /*organize it later alex im too bored and W3 is peak*/
        .navbar {
            background-image: url('../ASSETS/PICTURES/back.png');
        }
.event-log {
    min-height: 330px;
    max-height: 530px;
    overflow-y: auto;
    border: 1px solid var(--border);
    background: #222;
    border-radius: 8px;
    padding: 12px
}

.event-log p {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    font-size: .83rem;
    overflow-wrap: anywhere;
    color: var(--text)!important;
}

.advance-btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1rem;
    padding: 16px
}

.footer {
    text-align: center;
    margin-top: 26px;
    color: var(--muted);
    font-size: .8rem
}

.notice {
    border: 1px solid #555;
    background: #333;
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px
}

.hidden {
    display: none !important
}

.modal {
    position: fixed;
    inset: 0;
    background: #000b;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 100
}

.modal-content {
    background: #222;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 22px;
    width: min(820px, 100%);
    max-height: 90vh;
    overflow-y: auto
}

.stock-tools {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin: 15px 0
}

.stocks-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.stock-item p {
    margin: 4px 0;
    color: var(--muted);
    font-size: .82rem
}

.stock-item small {
    color: var(--muted)
}

.stock-price {
    font-size: 1.25rem;
    font-weight: normal
}

.stock-trade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px
}

.stock-trade input {
    grid-column: span 2
}

.choice-content {
    max-width: 460px
}

.choice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

.positive {
    color: var(--green)
}

.negative {
    color: var(--red)
}

@media(max-width:950px) {
    .main {
        grid-template-columns: 1fr
    }

    .status-bar {
        grid-template-columns: repeat(3, 1fr)
    }

    .event-log {
        min-height: 160px;
        max-height: 250px
    }
}

@media(max-width:620px) {
    .app {
        padding: 18px 12px
    }

    .investment-list,
    .stocks-list {
        grid-template-columns: 1fr
    }

    .status-bar {
        grid-template-columns: repeat(2, 1fr)
    }

    .header {
        align-items: flex-start
    }

    .stock-launch {
        flex-direction: column;
        align-items: stretch
    }

    .stock-tools {
        grid-template-columns: 1fr
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0
    }
}
.graph-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 20px;
}
.graph-container canvas {
    width: 100% !important;
    height: 100% !important;
}
.graph-container .chartjs-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    white-space: nowrap;
}
.advance-btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1rem;
    padding: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.advance-btn:hover {
    background-color: #43a047;
}
#monthlyNews { padding-left: 20px; font-size: 14px; }
#monthlyNews li { margin-bottom: 9px; }
.quota-box { border: 1px solid #666; padding: 10px; margin: 14px 0; font-size: 14px; }
.quota-box p { margin: 6px 0 0; color: #ccc; font-size: 12px; }

.btn.primary:hover:not(:disabled), .btn.invest:hover:not(:disabled) { background: #43a047; filter: none; }

/* Simple company list */
.stocks-list { display: block; }
.stock-item { background: #292929; border: 1px solid #444; border-radius: 6px; padding: 12px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5px 16px; }
.stock-item h3, .stock-item p, .stock-price, .stock-item small { grid-column: 1; }
.stock-trade { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-content { border-radius: 8px; box-shadow: none; }
.quota-box { border-radius: 6px; }
@media (max-width:620px) { .stock-item { display: block; } .stock-trade { margin-top: 10px; } }

.company-shop { margin-top: 20px; color: white; }
.company-shop > p { font-size: 14px; margin: 8px 0; }
.company-offer { background: #222; border: 1px solid #444; border-radius: 6px; padding: 12px; margin: 8px 0; }
.company-offer p { color: white; margin: 0 0 10px; }