/* Trading Platform Styles */
body {
    background: #0f0f0f;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Chart container */
.chart-container {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

/* Trading table styles */
.trading-table {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.trading-table th {
    background: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.trading-table td {
    border-bottom: 1px solid #1a1a1a;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.trading-table tr:hover {
    background: #2a2a2a;
}

/* Price change colors */
.price-up {
    color: #00d4aa;
}

.price-down {
    color: #ff4747;
}

.price-neutral {
    color: #888;
}

/* Order book styles */
.order-book-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2px 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
}

.order-book-buy {
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.1) 0%, transparent 100%);
}

.order-book-sell {
    background: linear-gradient(90deg, rgba(255, 71, 71, 0.1) 0%, transparent 100%);
}

/* Button styles */
.btn-primary {
    background: #00a8ff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #0088cc;
}

.btn-buy {
    background: #00d4aa;
    color: #000;
}

.btn-buy:hover {
    background: #00b894;
}

.btn-sell {
    background: #ff4747;
    color: #fff;
}

.btn-sell:hover {
    background: #e63946;
}

/* Trading form styles */
.trading-form {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.trading-form input {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-family: 'Monaco', 'Menlo', monospace;
}

.trading-form input:focus {
    border-color: #00a8ff;
    outline: none;
    box-shadow: 0 0 0 1px #00a8ff;
}

/* Tab styles */
.tab-button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-button.active {
    color: #fff;
    border-bottom-color: #00a8ff;
}

.tab-button:hover {
    color: #fff;
}

/* Responsive grid */
.trading-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: auto 1fr;
    gap: 16px;
    height: calc(100vh - 120px);
}

@media (max-width: 1200px) {
    .trading-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status indicators */
.status-online {
    color: #00d4aa;
}

.status-offline {
    color: #ff4747;
}

/* Volume bars */
.volume-bar {
    background: #2a2a2a;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    transition: width 0.3s ease;
}