body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode {
    background-color: #0a0f3d;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.asset-selector, .resize-toggle, .reorder-toggle, .theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
}

.charts-grid.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: inherit;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #d4af37;
    color: #0a0f3d;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.fullscreen-button:hover {
    background-color: #a78a2a;
}

.dark-mode .fullscreen-button {
    background-color: #d4af37;
}

.dark-mode .fullscreen-button:hover {
    background-color: #a78a2a;
}

.chart-container {
    height: 400px;
    border: 1px solid #a78a2a;
    position: relative;
    resize: none;
    overflow: auto;
    background-color: #1a237e;
}

.chart-container.resizable {
    resize: both;
    min-width: 300px;
    min-height: 200px;
}

.chart-wrapper {
    display: none;
    cursor: move;
}

.chart-wrapper.visible {
    display: block;
}

.chart-title {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #d4af37;
}

.trend-summary {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #a78a2a;
    background-color: #1a237e;
}

.dark-mode .trend-summary {
    background-color: #1a237e;
    border-color: #a78a2a;
}

.trend-indicator {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #d4af37;
    margin: 0 5px;
}

.dark-mode .trend-indicator {
    border-color: #d4af37;
}

.bullish { background-color: #00ff00; }
.bearish { background-color: #ff0000; }

.trend-overview {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #a78a2a;
    background-color: #1a237e;
}

.dark-mode .trend-overview {
    background-color: #1a237e;
    border-color: #a78a2a;
}

.trend-overview table {
    width: 100%;
    border-collapse: collapse;
}

.trend-overview th, .trend-overview td {
    border: 1px solid #a78a2a;
    padding: 8px;
    text-align: center;
    color: #ffffff;
}

.dark-mode .trend-overview th, .dark-mode .trend-overview td {
    border-color: #a78a2a;
    color: #ffffff;
}

.trend-overview th {
    background-color: #0a0f3d;
}

.dark-mode .trend-overview th {
    background-color: #0a0f3d;
}

.trend-legend {
    margin: 10px 0;
    padding: 10px;
    background-color: #1a237e;
    border-radius: 5px;
    border: 1px solid #a78a2a;
}

.dark-mode .trend-legend {
    background-color: #1a237e;
    border-color: #a78a2a;
}