/* General Styles */

.orderbook-container {
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 20px;
    margin: auto;
    height: 100%;
    padding: 20px;
    background: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}


.orderbook-container .tabs-container a {
    border: none;
  }

.orderbook-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.orderbook-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #00d1b2;
}

/* Market Selector */
.market-selector {
    text-align: center;
    margin-bottom: 20px;
}

.market-selector select {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px;
    font-size: 1.4rem;
}

.orderbook-table {
    width: 100%;
}

/* Reusable Table Styles */
.table-style {
    font-family: Arial, sans-serif;
    width: 100%;
    border-collapse: collapse;
    background: #222;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.table-style th, .table-style td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
    transition: background 0.3s ease, color 0.3s ease;
}

.table-style th {
    background: #333;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-style tr:nth-child(even) {
    background: #2a2a2a;
}

.table-style tr:nth-child(odd) {
    background: #1f1f1f;
}

.table-style tr:hover {
    background: #444;
    color: #fff;
    cursor: pointer;
}

.table-style tr.active {
    background: #555;
    color: #ffcc00;
}

@media (max-width: 768px) {
    .table-style th, .table-style td {
        padding: 10px;
        font-size: 14px;
    }
}

.table-style td.updated {
    animation: highlightUpdate 1.5s ease-in-out;
}

@keyframes highlightUpdate {
    0% { background: #006400; color: #fff; }
    50% { background: #222; color: #ddd; }
    100% { background: transparent; color: inherit; }
}

/* Trade Form */
.trade-form {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.trade-form h2 {
    margin-bottom: 10px;
    color: #00d1b2;
}

.trade-form label {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.trade-form input, .trade-form select, .trade-form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.trade-form input, .trade-form select {
    background: #333;
    color: #fff;
}

.trade-form button {
    background: #00d1b2;
    color: #121212;
    cursor: pointer;
    margin-top: 15px;
}

.trade-form button:hover {
    background: #008c7e;
}

.orderbook-container .tabs-container {
    background-color: black;
}

.orderbook-container .tabs-container ul {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
}

.orderbook-container .tabs-container li {
    display: flex;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    color: #fff;
}