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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000000;
    color: #00ff00;
    overflow-x: hidden;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    border: 2px solid #00ff00;
}

/* Header */
.terminal-header {
    background-color: #0a0a0a;
    border-bottom: 2px solid #00ff00;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-header h1 {
    font-size: 20px;
    letter-spacing: 2px;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.market-time {
    font-size: 12px;
    color: #00ff00;
    margin-top: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    display: inline-block;
    animation: blink 1s infinite;
}

.status-dot.connected {
    background-color: #00ff00;
    animation: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.refresh-btn {
    background-color: #1a1a1a;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 1px;
}

.refresh-btn:hover {
    background-color: #00ff00;
    color: #000000;
}

.refresh-btn:active {
    background-color: #00cc00;
}

/* Main Grid */
.main-grid {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Stats Panel */
.stats-panel {
    width: 300px;
    background-color: #0a0a0a;
    border-right: 2px solid #00ff00;
    padding: 15px;
    overflow-y: auto;
}

.panel-header {
    background-color: #1a1a1a;
    border: 1px solid #00ff00;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.stat-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 10px;
}

.stat-label {
    font-size: 10px;
    color: #888888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    color: #00ff00;
    font-weight: bold;
}

.top-markets-list {
    font-size: 11px;
}

.market-item {
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
}

.market-title {
    color: #ffffff;
    margin-bottom: 5px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.market-title:hover {
    color: #00ff00;
}

.market-volume {
    color: #00ff00;
    font-size: 14px;
    font-weight: bold;
}

/* Trades Panel */
.trades-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    overflow: hidden;
}

.trades-panel > .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    border-bottom: 1px solid #00ff00;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.auto-refresh {
    font-size: 10px;
    color: #888888;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

/* Table Styles */
.whale-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.whale-table thead {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.whale-table th {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid #00ff00;
    border-right: 1px solid #1a1a1a;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

.whale-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
}

.whale-table tbody tr:hover {
    background-color: #0a0a0a;
}

.loading-row {
    text-align: center;
    padding: 50px !important;
    color: #888888;
}

.loading-text {
    color: #888888;
    text-align: center;
    padding: 20px;
}

/* Table Cell Colors */
.account-cell {
    color: #ffff00;
    cursor: pointer;
    text-decoration: none;
}

.account-cell:hover {
    text-decoration: underline;
}

.money-moved {
    color: #00ff00;
    font-weight: bold;
    text-align: right;
}

.market-cell {
    color: #ffffff;
    cursor: pointer;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-cell:hover {
    color: #00ff00;
}

.side-buy {
    color: #00ff00;
    font-weight: bold;
}

.side-sell {
    color: #ff0000;
    font-weight: bold;
}

.price-cell {
    text-align: right;
    color: #00ccff;
}

.size-cell {
    text-align: right;
    color: #ffffff;
}

.win-amount {
    color: #00ff00;
    font-weight: bold;
    text-align: right;
}

.timestamp-cell {
    color: #888888;
    font-size: 10px;
}

/* Footer */
.terminal-footer {
    background-color: #0a0a0a;
    border-top: 2px solid #00ff00;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888888;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-panel {
        width: 250px;
    }
}

@media (max-width: 968px) {
    .main-grid {
        flex-direction: column;
    }
    
    .stats-panel {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 2px solid #00ff00;
    }
    
    .whale-table {
        font-size: 10px;
    }
    
    .whale-table th,
    .whale-table td {
        padding: 6px 4px;
    }
}
