/* assets/style.css */

/* Ẩn nút radio mặc định trong watchlist nhưng vẫn cho phép tương tác bằng bàn phím */
.watchlist-radio-items input[type="radio"] {
    opacity: 0;
    position: absolute;
    left: -9999px;
}

/* Style cho từng label (mỗi dòng cổ phiếu) */
.watchlist-radio-items label {
    display: block;
    width: 100%;
    padding: 2px 10px;
    margin-bottom: 0px; /* Giảm khoảng cách giữa các dòng hơn nữa */
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
    border: 1px solid transparent; /* Thêm border trong suốt để không bị giật layout khi hover */
    border-left: 4px solid transparent; /* Border trái để làm điểm nhấn khi được chọn */
}

/* Hiệu ứng khi di chuột qua */
.watchlist-radio-items label:hover {
    background-color: #f0f3f5 !important;
    cursor: pointer;
}

/* Hiệu ứng khi focus bằng bàn phím */
.watchlist-radio-items label:focus,
.watchlist-radio-items label:focus-visible,
.watchlist-radio-items label:has(input[type="radio"]:focus),
.watchlist-radio-items label:has(input[type="radio"]:focus-visible) {
    outline: 2px solid #007bff !important; /* Màu xanh đậm để nổi bật hơn */
    outline-offset: -1px; /* Đặt outline sát với border */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important; /* Thêm hiệu ứng shadow để tăng độ nổi bật */
    z-index: 1; /* Đảm bảo hiển thị trên các phần tử khác */
}

/* Style cho label của radio button đang được chọn */
.watchlist-radio-items input[type="radio"]:checked + label {
    background-color: #e7f1ff !important; /* Màu nền xanh nhạt */
    border-left: 4px solid #0d6efd !important; /* Viền xanh bên trái để làm nổi bật */
    font-weight: 500 !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25) !important; /* Thêm shadow để nổi bật hơn */
}

/* Style đặc biệt cho trạng thái đang được chọn bằng bàn phím */
.watchlist-radio-items label.keyboard-selected {
    background-color: #cce5ff !important;
    border-left: 4px solid #0056b3 !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5) !important;
    font-weight: bold !important;
}

/* Đảm bảo trạng thái được chọn luôn hiển thị rõ ràng */
.watchlist-radio-items input[type="radio"]:focus:checked + label,
.watchlist-radio-items label:has(input[type="radio"]:checked) {
    background-color: #e7f1ff !important;
    border-left: 4px solid #0d6efd !important;
}

/* Custom style for slider track color */
.rc-slider-track {
    background: red;
}

.marked-stock {
    background-color: #ffecb3 !important;
}