body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 300px;
    height: 100vh;
}

.charts-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    padding: 10px;
    gap: 20px;
    height: 50px;
    background: #131722;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #00ff88;
}

.change {
    color: #00ff88;
    font-size: 18px;
}

.chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #131722;
}

#chart1, #chart2 {
    height: 400px;
    background-color: #131722;
    border: none;
    margin: 0;
    padding: 0;
}

.time-label {
    position: absolute;
    top: 10px;  /* Changed from bottom to top */
    left: 10px;
    font-size: 16px;  /* Reduced size */
    color: #666;
    font-weight: bold;
    z-index: 1;
    background: rgba(19, 23, 34, 0.8);  /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 4px;
}

.liquidation {
    padding: 8px;
    margin-bottom: 5px;
    background: #1a1f2a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    color: #ef5350;  /* All liquidations in red */
}

.controls {
    padding: 15px;
    background: #1a1f2a;
    border-bottom: 1px solid #1e222d;
}

.volume-control {
    margin-bottom: 10px;
}

.volume-control label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.volume-slider {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;  /* Add this line */
    background: #2a2e39;
    height: 5px;
    border-radius: 5px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
}

.liquidations-feed {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.liquidations h2 {
    margin: 0;
    padding: 15px;
    text-align: center;
    color: #666;
    border-bottom: 1px solid #1e222d;
}

.liquidation {
    padding: 8px;
    margin-bottom: 5px;
    background: #1a1f2a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.liquidation.buy { color: #26a69a; }
.liquidation.sell { color: #ef5350; }

.right-panel {
    background: #131722;
    border-left: 1px solid #1e222d;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.data-feeds {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1px;
    background: #1e222d;
}

.feed-section {
    background: #131722;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-section h2 {
    margin: 0;
    padding: 10px;
    text-align: center;
    color: #666;
    border-bottom: 1px solid #1e222d;
}

#buys-feed, #sells-feed, #liquidations-feed {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.buy { color: #26a69a; }
.sell { color: #ef5350; }
.liquidation { color: #ff9800; }

/* Add this if you have a dark theme container */
.trading-container {
    background: #131722;
    padding: 0;
    margin: 0;
    width: 100%;
}

.trading-layout {
    display: flex;
    gap: 0; /* Removed gap between chart and trades */
}

.trades-column {
    width: 250px; /* Made slightly narrower */
    background: #1e222d; /* Darker background to match your screenshot */
    padding: 0;
    display: flex;
    flex-direction: column;
}

.volume-controls {
    padding: 15px;
    background: #1e222d;
    border-bottom: 1px solid #2a2e39;
}

.feeds-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed {
    height: 150px; /* Fixed height for each feed */
    overflow-y: auto;
    padding: 10px;
    color: #fff;
    font-family: monospace;
}

#buys-feed .trade {
    color: #26a69a;
}

#sells-feed .trade {
    color: #ef5350;
}

#liquidations-feed .liquidation {
    color: #ffb029;
    padding: 2px 0;
}

/* Style for the feed titles */
.feed-title {
    padding: 5px 10px;
    color: #787b86;
    font-size: 12px;
    background: #1e222d;
    border-bottom: 1px solid #2a2e39;
}

/* Scrollbar styling */
.feed::-webkit-scrollbar {
    width: 5px;
}

.feed::-webkit-scrollbar-track {
    background: #1e222d;
}

.feed::-webkit-scrollbar-thumb {
    background: #2a2e39;
}

/* Volume Controls Section */
.volume-controls {
    padding: 15px;
    background: #1e222d;
    border-bottom: 1px solid #2a2e39;
}

/* Volume Slider Styling */
input[type="range"] {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    background: #2a2e39;
    height: 5px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
}

/* Volume Labels */
.volume-controls label {
    display: block;
    color: #787b86;
    font-size: 12px;
    margin-top: 10px;
}

/* Mute Button */
#muteButton {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-top: 10px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#muteButton:hover {
    opacity: 0.8;
}

/* Add fallback text if emoji doesn't load */
#muteButton::before {
    content: "🔊";
}

#muteButton.muted::before {
    content: "🔇";
}

.trade, .liquidation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
}

.trade span:last-child, .liquidation span:last-child {
    color: #787b86;  /* Makes the price slightly dimmer */
}

/* Update background colors to black */
.trading-container,
.chart-container,
.trades-column,
.volume-controls,
.feed-section,
.feed-title,
.feed {
    background: #000 !important;
}

/* Update borders to be slightly visible */
.volume-controls,
.feed-title {
    border-bottom: 1px solid #1a1a1a;
}

.trades-column {
    border-left: 1px solid #1a1a1a;
}

/* Update scrollbar colors */
.feed::-webkit-scrollbar-track {
    background: #000;
}

.feed::-webkit-scrollbar-thumb {
    background: #1a1a1a;
}

/* Make sure chart containers are black */
#chart1, #chart2 {
    background-color: #000 !important;
}

.exchange-logo {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.liquidation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}

.liquidation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin-bottom: 2px;
    background: rgba(255, 0, 0, 0.1);
    color: #ffb029;
}

.exchange-icon {
    width: 16px;
    height: 16px;
    min-width: 16px; /* Prevents icon from shrinking */
    object-fit: contain;
}

#liquidations-feed {
    display: flex;
    flex-direction: column;
    height: 150px;
    overflow-y: auto;
}

/* Make sure feeds don't collapse */
.feeds-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px); /* Adjust based on your volume controls height */
}

#buys-feed,
#sells-feed,
#liquidations-feed {
    flex: 1;
    min-height: 150px;
    overflow-y: auto;
}