body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: block;
}

header {
    width: 100%;
    background-color: #0d0d0d;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #00ffdd;
}

h1 {
    color: #00ffdd;
    text-shadow: 0 0 10px #00ffdd, 0 0 20px #00ffdd;
    margin: 0;
}

main {
    width: auto;
    max-width: none;
    margin-top: 0;
}

#simulation-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

#resources-panel, #actions-panel, #market-panel, #log-panel {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
    box-shadow: 0 0 15px rgba(0, 255, 221, 0.1);
}

h2 {
    color: #00ffdd;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-top: 0;
}

button {
    background-color: #00ffdd;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #00b3a4;
    box-shadow: 0 0 10px #00ffdd;
}

#log {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

#log li {
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

span {
    color: #00ffdd;
    font-weight: bold;
}

/* Layout Styles */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 221, 0.2);
    overflow: hidden;
    min-height: 80vh;
}

.sidebar {
    width: 220px;
    background-color: #1a1a1a;
    padding: 20px;
    border-right: 1px solid #444;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

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

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #00ffdd;
    color: #1a1a1a;
    font-weight: bold;
}

.sub-menu {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.sub-menu a {
    font-size: 0.9em;
    padding: 8px;
}

.content-area {
    flex-grow: 1;
    padding: 20px;
    background-color: #2b2b2b;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.asset-status {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #00ffdd;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 221, 0.15);
}

.asset-status p {
    font-size: 1.1em;
    margin: 15px 0;
    color: #e0e0e0;
}

.asset-status span {
    color: #00ffdd;
    font-weight: bold;
    font-size: 1.2em;
}

/* Stock Trading UI */
.stock-market-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stock-search {
    display: flex;
    gap: 10px;
}

.stock-search input {
    flex-grow: 1;
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

#stock-chart-container {
    width: 100%;
    height: 400px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.trading-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #00ffdd;
}

.trade-controls {
    display: flex;
    gap: 10px;
}

.trade-controls input {
    width: 80px;
    background: #2b2b2b;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.trade-controls button.buy {
    background-color: #ff4d4d;
    color: white;
}

.trade-controls button.sell {
    background-color: #4d79ff;
    color: white;
}

/* Portfolio Table */
#portfolio-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#portfolio-table th, #portfolio-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

#portfolio-table th {
    color: #00ffdd;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* Bank UI Styles */
.bank-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.bank-info-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #444;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.balance-display h3 {
    color: #888;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.balance-display p {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ffdd;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(0, 255, 221, 0.3);
}

.balance-display small {
    color: #666;
}

.bank-controls {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #444;
}

.bank-controls .input-group {
    margin-bottom: 20px;
}

.bank-controls label {
    display: block;
    margin-bottom: 10px;
    color: #888;
}

.bank-controls input {
    width: 100%;
    background: #2b2b2b;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    box-sizing: border-box;
}

.bank-controls .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bank-controls button {
    padding: 15px;
    font-size: 1em;
}

.bank-controls button.deposit {
    background-color: #00ffdd;
    color: #1a1a1a;
}

.bank-controls button.withdraw {
    background-color: transparent;
    border: 2px solid #00ffdd;
    color: #00ffdd;
}

.bank-controls button.withdraw:hover {
    background-color: rgba(0, 255, 221, 0.1);
}

.up-trend { color: #ff4d4d; }
.down-trend { color: #4d79ff; }