﻿
/*While change this Css it will get refelcted to the Odd screener , EV Tool and  
View Full screen Popup header please check these screens while changing it*/

tr.alt-market-row,
tr.alt-market-row > td,
tr.alt-market-row > td .rz-cell-data {
    background-color: #2f355c !important;
}

table tr.alt-market-row > td {
    background-color: #2f355c !important;
}

/* Market button styling */
.market-button {
    border-radius: 20px !important;
    padding: 8px 16px !important;
    white-space: nowrap;
    background-color: rgba(40, 44, 80, 0.8) !important;
    border: 1px solid white !important;
    color: white !important;
    margin-right: 10px;
    margin-bottom: 10px;
}

    .market-button.active {
        background-color: white !important;
        color: #1E213A !important;
    }

/* Action buttons */
.action-button {
    background-color: transparent !important;
    border: 1px solid white !important;
    color: white !important;
    cursor: pointer;
}

.responsive-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Full screen dialog styling */
.full-screen-odds-dialog {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    .full-screen-odds-dialog .rz-dialog {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: #1E213A !important;
        box-shadow: none !important;
    }

    .full-screen-odds-dialog .rz-dialog-content {
        padding: 20px !important;
        background: #1E213A !important;
        height: 100vh !important;
        overflow: auto !important;
    }

    .full-screen-odds-dialog .rz-dialog-titlebar {
        background: #1E213A !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        padding: 15px 20px !important;
    }

    .full-screen-odds-dialog .rz-dialog-titlebar-close {
        color: white !important;
        font-size: 20px !important;
    }

        .full-screen-odds-dialog .rz-dialog-titlebar-close:hover .rzi-times, .rz-dialog-side-titlebar-close:hover .rzi-times {
            color: white !important;
        }

    .full-screen-odds-dialog .rz-dialog-title, .rz-dialog-side-title {
        color: white;
        font-size: 1.2rem;
        padding: 12px 20px;
    }

/* odds highlighting - affects entire container */
.odds-container {
    transition: all 0.3s ease;
    cursor: default;
}

    .odds-container.has-link {
        cursor: pointer;
    }

.team1-odds.has-link:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(29, 78, 216, 0.8) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.8) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

    .team1-odds.has-link:hover a {
        color: #ffffff !important;
    }

.team2-odds.has-link:hover {
    background: linear-gradient(135deg, rgba(190, 18, 110, 0.9) 0%, rgba(219, 39, 119, 0.8) 100%) !important;
    border: 1px solid rgba(245, 18, 134, 0.8) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

    .team2-odds.has-link:hover a {
        color: #ffffff !important;
    }

.best-odds-container {
    transition: all 0.3s ease;
    cursor: default;
}

    .best-odds-container.has-link {
        cursor: pointer;
    }

    .best-odds-container.team1.has-link:hover {
        background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(29, 78, 216, 0.8) 100%) !important;
        border: 1px solid rgba(59, 130, 246, 0.8) !important;
    }

        .best-odds-container.team1.has-link:hover span,
        .best-odds-container.team1.has-link:hover a {
            color: #ffffff !important;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
        }


    .best-odds-container.team2.has-link:hover {
        background: linear-gradient(135deg, rgba(190, 18, 110, 0.9) 0%, rgba(219, 39, 119, 0.8) 100%) !important;
        border: 1px solid rgba(245, 18, 134, 0.8) !important;
    }

        .best-odds-container.team2.has-link:hover span,
        .best-odds-container.team2.has-link:hover a {
            color: #ffffff !important;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
        }

/* Team 1 odds increase (green) */
.team1-odds.odds-increase,
.odds-increase:not(.team2-odds) {
    animation: glowGreenTeam1 5s ease-out forwards;
}

/* Team 1 odds decrease (red) */
.team1-odds.odds-decrease,
.odds-decrease:not(.team2-odds) {
    animation: glowRedTeam1 5s ease-out forwards;
}

/* Team 2 odds increase (green) */
.team2-odds.odds-increase {
    animation: glowGreenTeam2 5s ease-out forwards;
}

/* Team 2 odds decrease (brand color) */
.team2-odds.odds-decrease {
    animation: glowBrandColorTeam2 5s ease-out forwards;
}

/* Team 1 Green Glow Animation */
@keyframes glowGreenTeam1 {
    0%, 100% {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
        border: 1px solid rgba(59, 130, 246, 0.2);
        box-shadow: none;
        color: #FFFFFF;
        transform: scale(1);
    }

    5% {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
        border: 2px solid rgba(34, 197, 94, 0.6);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
        color: #22c55e;
        transform: scale(1.05);
    }

    20% {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
        border: 2px solid rgba(34, 197, 94, 0.6);
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
        color: #22c55e;
        transform: scale(1);
    }
}

/* Team 1 Red Glow Animation */
@keyframes glowRedTeam1 {
    0%, 100% {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
        border: 1px solid rgba(59, 130, 246, 0.2);
        box-shadow: none;
        color: #FFFFFF;
        transform: scale(1);
    }

    5% {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%);
        border: 2px solid rgba(239, 68, 68, 0.6);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
        color: #ef4444;
        transform: scale(1.05);
    }

    20% {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%);
        border: 2px solid rgba(239, 68, 68, 0.6);
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
        color: #ef4444;
        transform: scale(1);
    }
}

/* Team 2 Green Glow Animation */
@keyframes glowGreenTeam2 {
    0%, 100% {
        background: linear-gradient(135deg, rgba(245, 18, 134, 0.15) 0%, rgba(245, 18, 134, 0.1) 100%);
        border: 1px solid rgba(245, 18, 134, 0.2);
        box-shadow: none;
        color: #FFFFFF;
        transform: scale(1);
    }

    5% {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
        border: 2px solid rgba(34, 197, 94, 0.6);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
        color: #22c55e;
        transform: scale(1.05);
    }

    20% {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
        border: 2px solid rgba(34, 197, 94, 0.6);
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
        color: #22c55e;
        transform: scale(1);
    }
}

/* Team 2 Brand Color Glow Animation */
@keyframes glowBrandColorTeam2 {
    0%, 100% {
        background: linear-gradient(135deg, rgba(245, 18, 134, 0.15) 0%, rgba(245, 18, 134, 0.1) 100%);
        border: 1px solid rgba(245, 18, 134, 0.2);
        box-shadow: none;
        color: #FFFFFF;
        transform: scale(1);
    }

    5% {
        background: linear-gradient(135deg, rgba(245, 18, 134, 0.25) 0%, rgba(245, 18, 134, 0.15) 100%);
        border: 2px solid rgba(245, 18, 134, 0.6);
        box-shadow: 0 0 15px rgba(245, 18, 134, 0.4);
        color: #FFFFFF;
        transform: scale(1.05);
    }

    20% {
        background: linear-gradient(135deg, rgba(245, 18, 134, 0.25) 0%, rgba(245, 18, 134, 0.15) 100%);
        border: 2px solid rgba(245, 18, 134, 0.6);
        box-shadow: 0 0 25px rgba(245, 18, 134, 0.6);
        color: #FFFFFF;
        transform: scale(1);
    }
}

.rz-dropdown {
    background-color: rgba(40, 44, 80, 0.8) !important;
    border-radius: 8px !important;
    border: 1px solid white !important;
    color: white !important;
}

/* Global style for all RadzenTextBox inputs */
.rz-textbox input {
    color: white !important;
    background-color: transparent !important;
}

.rz-multiselect-item .rz-chkbox .rz-chkbox-box {
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
}

.rz-multiselect-header .rz-chkbox .rz-chkbox-box {
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
}

.hidden-pager-grid .rz-pager {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
    display: none !important;
}

.button-icon-right .rz-button-box {
    display: flex;
    flex-direction: row-reverse;
}

.button-icon-right .rz-button-md .rzi {
    margin: 0 0 0 8px !important;
}

.odds-screener-grid-container {
    max-height: 75vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.action-buttons-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.action-buttons-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}


.pager-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: white;
}

.pager-buttons {
    display: flex;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .pager-container {
        justify-content: center;
    }
}

.custom-alert-style .rz-button .rzi {
    color: white !important;
}

@media (max-width: 768px) {
    .ant-slider-mark-text {
        font-size: 10px;
        white-space: nowrap;
        margin-left: 8px;
    }

        .ant-slider-mark-text:first-child {
            margin-left: 0;
            transform: translateX(-12px);
        }

        .ant-slider-mark-text:last-child {
            transform: translateX(-100%);
        }
}


.alts-toggle-btn.rz-button {
    width: 32px !important;
    height: 32px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #6B7280 !important;
    border-radius: 10px !important;
    color: white !important; 
    padding: 0 !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    outline: none !important;
}

    .alts-toggle-btn.rz-button i {
        font-size: 18px !important;
        font-weight: 700 !important; 
        line-height: 1 !important;
    }

    .alts-toggle-btn.rz-button:hover {
        background-color: white !important;
        border-color: white !important;
        color: #1E213A !important;
        transform: scale(1.05) !important;
    }

.alts-toggle-btn.expanded.rz-button {
    background-color: white !important;
    border-color: white !important;
    color: #1E213A !important;
}

    .alts-toggle-btn.expanded.rz-button:hover {
        background-color: #f0f0f0 !important;
    }

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 768px) {
    .popup-header {
        flex-direction: column-reverse;
    }

    .exit-button-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 10px; 
    }

    .header-content-wrapper {
        width: 100%;
    }
}