.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.matching-modal-container {
    background-color: #101010;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 950px;
    width: 90%;
    max-height: 94vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.matching-modal-container .modal-header {
    background-color: #1a1a1a;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matching-modal-container .modal-title {
    font-size: 20px;
    font-weight: 300;
    color: #ffffff;
}

.matching-modal-container .modal-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.matching-modal-container .close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s;
}

.matching-modal-container .close-btn:hover {
    color: #ffffff;
    background-color: #333;
}

.status-bar {
    background-color: #1a1a1a;
    padding: 8px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.status-live {
    color: #00ff88;
    font-weight: 500;
}

.status-info {
    color: #888;
}

.matching-modal-container .modal-body {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(94vh - 100px);
}

.matching-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #101010;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
}

.matching-table thead th {
    background-color: #1a1a1a;
    color: #888;
    font-weight: 300;
    text-align: center;
    padding: 10px 8px;
    border-bottom: 1px solid #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matching-table tbody td {
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid #252525;
    height: 42px;
    vertical-align: middle;
}

.matching-table tbody tr:hover {
    background-color: #151515;
}

.matching-table th:nth-child(1),
.matching-table td:nth-child(1) {
    width: 60px;
}

.matching-table th:nth-child(2),
.matching-table td:nth-child(2) {
    width: 75px;
}

.matching-table th:nth-child(3),
.matching-table td:nth-child(3) {
    width: 100px;
}

.matching-table th:nth-child(4),
.matching-table td:nth-child(4) {
    width: 85px;
}

.matching-table th:nth-child(5),
.matching-table td:nth-child(5) {
    width: 100px;
}

.matching-table th:nth-child(6),
.matching-table td:nth-child(6) {
    width: 65px;
}

.tenor-cell {
    font-weight: 500;
    color: #ffffff;
    font-size: 13px;
}

.far-date-cell {
    color: #888;
    font-size: 11px;
}

.mid-price-cell {
    color: #ffffff;
    font-weight: 400;
    font-size: 13px;
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 6px;
    margin: 2px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: 75px;
    margin: 0 auto;
}

.buy-btn {
    background-color: #0066cc;
    color: #ffffff;
}

.buy-btn:hover {
    background-color: #0080ff;
    transform: translateY(-1px);
}

.sell-btn {
    background-color: #cc3300;
    color: #ffffff;
}

.sell-btn:hover {
    background-color: #ff4444;
    transform: translateY(-1px);
}

.buy-btn.active,
.sell-btn.active,
.action-btn.force-active {
    background-color: #00aa00 !important;
    color: #ffffff !important;
    border: 1px solid #00cc00 !important;
}

@keyframes subtle-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 170, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(0, 170, 0, 0.1);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 0 12px rgba(0, 170, 0, 0);
        transform: scale(1);
    }
}

.interest-indicator {
    color: #888;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #333;
    transition: background-color 0.3s;
}

.indicator-dot.active {
    background-color: #00ff88;
    box-shadow: 0 0 7px rgba(0, 255, 136, 0.5);
}

.market-activity {
    margin-top: 15px;
    padding: 12px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #333;
}

.activity-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-item {
    padding: 4px 0;
    border-bottom: 1px solid #252525;
    font-size: 11px;
    color: #ccc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #666;
    font-size: 10px;
}