﻿.wizard-container-b {
    display: flex;
    margin-top: 100px;
    margin-left: 300px;
    overflow-x: hidden;
}

.wizard-vertical-b {
    background-color: #F4F4F4;
    padding: 20px;
    width: 310px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container-b {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.logo-background-b {
    display: inline-block;
}

    .logo-background-b img {
        height: 80px;
    }

.menu-selected-b {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.wizard-vertical-content-b {
    width: 100%;
    margin-top: 10px;
}
    .wizard-vertical-content-b h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

.wizard-vertical-content-b h2 {
    font-weight: 500;
}

.intro-text-b {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.wizard-steps-b {
    width: 100%;
    margin-top: 30px;
}

.step-item-b {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

    .step-item-b::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #ccc;
    }

.wizard-step-button-b {
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    border: 2px solid black;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    margin-right: 15px;
    transition: background-color 0.3s, border-color 0.3s;
}

    .wizard-step-button-b.active {
        border-color: #E40E18;
        background-color: #E2373F;
        font-weight: bold;
        color: white;
    }

.step-description-b {
    text-align: left;
}

    .step-description-b h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

    .step-description-b p {
        margin: 5px 0 0;
        font-size: 18px;
        color: #666;
        width: 80%;
        font-weight: 400;
    }



.wizard-content-b {
    flex: 1;
    padding: 50px;
    flex-direction: column;
    min-height: auto;
    height: 100%;
    overflow: hidden;
}

    .wizard-content-b h1 {
        margin: 0;
        font-size: 28px;
    }

    .wizard-content-b h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 20px;
    }


.b-company-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 600px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
}

.b-company-item {
    padding: 10px;
    background: #f4f4f4;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.b--company-item:hover {
    background: #ddd;
}

.b-company-details {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
}

.menu-company-details-b {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
}

.b-company-NameButtom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}



/* Card dos karts seção principal */

.ranking-section-b {
    display: flex;
    flex-direction: column;
    height: 550px;
    gap: 5px;
    overflow-y: auto; 
    overflow-x: auto; /* evita rolagem lateral */
}

.kart-card-b {
    display: flex;
    padding: 0.6rem;
    border-radius: 8px;
    color: black;
    width: 100%;
}

.section-ranking-b {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px;
}

.section-ranking-title-b {
    display: flex;
    font-size: 16px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

    .section-ranking-title-b div {
        display: flex;
        flex-direction: column;
        gap: 0px;
        min-width: auto;
        text-align: center;
        font-size: 14px;
    }

.section-ranking-Number-b {
    font-size: 30px;
    padding: 10px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Adjust the ranking stats to be more compact */
.section-ranking-b {
    padding: 5px;
}

/* Modal dos Karts */
.modal-overlay-kart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.modal-content-kart {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-header-kart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-button-kart {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.modal-body-kart-b {
    margin-top: 20px;
}



.input-field-rankingb {
    background-color: white;
    color: black;
    border: solid 2px black;
    border-radius: 5px;
    padding: 8px;
    font-size: 15px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-family: 'BarlowCondensed', sans-serif;
}

    .input-field-rankingb:focus {
        outline: none;
        background-color: #f5f5f5;
    }

    .input-field-rankingb input {
        border: none;
        width: 100%;
        height: 100%;
    }



/* Lista de competidores do Card do Kart */
.kart-corridas {
    display: flex;
    margin: 0px;
    padding: 0px;
    flex-direction: column;
    gap: 10px;
}


.corrida-info-b {
    display: flex;
    width: 700px;
    justify-content: space-between;
    gap: 20px;
    white-space: nowrap;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px;
    border-radius: 10px;
}

.corrida-DataLapPos-b {
    display: flex;
    flex-direction: column;
    width: auto;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.corrida-column-b {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    justify-content: center;
}

.corrida-row-name-b {
    display: flex;
    justify-content: space-between;
}

.corrida-column-b-fim {
    display: flex;
    flex-direction: column;
    width: auto;
    gap: 5px;
    align-items: end;
}

.corrida-left-b {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 5px;
    align-items: center;
}

.corrida-row-b {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.corrida-StartDateTime-b, .corrida-Lap-b, .corrida-Pos-b, .corrida-RacingBestLapTime-b {
    font-size: 20px;
    background-color: #F4F4F4;
    text-align: center;
    width: 100%;
    border-radius: 5px;
    padding: 2px 5px;
    max-width: 100px;
}

.corrida-CompetitorName-b {
    font-size: 25px;
    font-weight: bold;
    margin-right: 20px;
    margin-left: 5px;

    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.corrida-BestLap-b, .corrida-BestLapTime-b {
    font-size: 21px;
}

    .corrida-BestLapTime-b {
        font-weight: 500;
    }

.corrida-DiffRacingBestLapTime-b {
    font-size: 25px;
}

.corrida-RaceFullName-b {
    margin-left: 5px;
    text-align: start;

    max-width: 400px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}


.kart-search {
    display: flex;
    margin-bottom: 10px;
    margin-top: 20px;
}

.btn-clear-kart-b {
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-left: 5px;
    color: #ff4444;
}

.btn-show-sorted-karts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: transparent;
    color: black;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

    .btn-show-sorted-karts.active {
        background-color: black;
        color: white;
        border: none;
        border: 1px solid #ccc;
    }

.kart-toggle-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

    .kart-toggle-icon.active-img {
        filter: brightness(0) invert(1); 
    }

/* Quadradinhos dos karts */
.kart-sorted-numbers-b {
    margin-top: 20px;
    height: 550px;
    overflow: auto;
}

.sorted-karts-display-b {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.sorted-kart-display-b {
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.sorted-kart-BestLapTime-b {
    font-weight: normal;
    color: black;
    font-size: 15px;
    text-align: center;
}

.sorted-kart-Number-b {
    font-weight: bold;
    color: black;
    font-size: 35px;
    text-align: center;
}


.sorted-kart-DiffBestLapTime-b {
    font-weight: normal;
    color: black;
    font-size: 15px;
    text-align: center;
}

.sorted-kart-RacingTrackName-b {
    font-weight: normal;
    color: black;
    font-size: 15px;
    text-align: center;
    background-color: #F4F4F4;
    padding: 0 5px;
    border-radius: 5px;
    margin-top: 5px;

    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}


.alert-box {
    background-color: #ffdddd;
    border: 1px solid #f44336;
    color: #a94442;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    animation: fadeOut 0.6s ease-in-out 2.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


.btn-sort-order {
    border: none;
    background-color: transparent;
    padding: 10px;
    margin-right: -10px
}


/*filtros bdo ranking*/

.filter-panel {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

    .filter-panel div {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

.dropdown-container-rb {
    margin: 10px 0;
    display: inline-block;
    position: relative;
}

.selected-groups-text {
    max-width: 180px;
    min-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.btn-apply-filter {
    background-color: #E40E18;
    padding: 10px;
    border: none;
    color: white;
    border-radius: 5px;

}

.custom-select-wrapper-rb {
    position: relative;
    margin-bottom: 20px;
}

.custom-select-trigger-rb {
    background-color: #fff;
    border: 2px solid black;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-weight: 400;
}

    .custom-select-trigger-rb:hover {
        background-color: #f2f2f2;
    }

.arrow-indicator-rb {
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
}

.arrow-upKartNumbers-rb {
    transform: rotate(180deg) translateY(25%);
}

.arrow-downKartNumbers-rb {
    transform: rotate(0deg);
}

.custom-select-options-rb {
    display: none !important;
    position: absolute;
    top: 115%;
    left: 0;
    max-height: 200px;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 999;
}

    .custom-select-options-rb.show-rb {
        display: block !important;
        background-color: white;
    }

.checkbox-label-rb {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
}

    .checkbox-label-rb:hover {
        background-color: #f2f2f2;
    }

    .checkbox-label-rb input[type="checkbox"] {
        margin-right: 6px;
    }

@media only screen and (min-width: 768px) and (max-width: 1326px) {
    .wizard-container-b {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 20px;
        margin-top: 80px;
        overflow-x: hidden;
    }

    .wizard-vertical-b {
        width: 100%;
        height: auto;
    }

    .filter-panel {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .dropdown-container-rb {
        margin: 0;
        width: 100%;
    }
}



@media (max-width: 768px) {

    .corrida-column-b-fim {
        display: flex;
        flex-direction: row;
        width: auto;
        justify-content: space-between;        
    }

    .corrida-DataLapPos-b {
        display: flex;
        flex-direction: row;
        width: auto;
    }

    .section-ranking-b {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: space-between;
        padding: 10px;
    }

    .custom-select-wrapper-rb {
        position: relative;
        margin-bottom: 0px;
    }

    .wizard-container-b {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 0px;
        margin-top: 150px;
        margin-left: 0;
        overflow-x: hidden;
    }

    .wizard-vertical-b {
        width: 100%;
        height: auto;
    }

    .wizard-content-b {
        padding: 20px;
    }

    /* Ranking section mobile adjustments */
    .ranking-section-b {
        height: auto;
        max-height: 70vh;
        overflow-x: hidden;
    }

    .corrida-info-b {
        width: 100%;
        flex-direction: column;
        padding: 8px;
        gap: 10px;
    }

    .corrida-left-b {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .corrida-CompetitorName-b {
        font-size: 20px;
        margin-right: 5px;
        max-width: 100%;
    }

    .corrida-StartDateTime-b, .corrida-Lap-b, .corrida-Pos-b, .corrida-RacingBestLapTime-b {
        font-size: 16px;
        max-width: 80px;
    }

    .corrida-BestLap-b, .corrida-BestLapTime-b {
        font-size: 18px;
    }

    .corrida-DiffRacingBestLapTime-b {
        font-size: 20px;
    }

    .corrida-RaceFullName-b {
        max-width: 100%;
        font-size: 16px;
    }

    .section-ranking-title-b {
        font-size: 18px;
        flex-wrap: wrap;
    }

    .section-ranking-Number-b {
        font-size: 40px;
        padding: 12px;
    }

    /* Kart cards mobile adjustment */
    .kart-card-b {
        width: 100%;
        padding: 0.4rem;
    }

    .sorted-karts-display-b {
        justify-content: center;
    }

    .sorted-kart-display-b {
        width: 80px;
        height: 110px;
    }

    .filter-panel { /*Caixa que contém os inputs*/
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .dropdown-container-rb {
        margin: 0;
        width: 100%;
    }

    .filter-panel div {
        display: flex;
        flex-direction: column; /* Coloca o rótulo em cima do campo */
        gap: 3px;
        width: 100%;
    }

    .filter-panel label {
        font-size: 18px;
        margin-bottom: 3px;
    }
}