@import "./styles.css";

.table-container {
    background-image: linear-gradient(to bottom right, var(--light-color), var(--medium-color), var(--light-color));
    width: 100%;
    box-sizing: border-box;
    padding: 100px 50px 50px 50px;
    border-radius: 30px;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
    max-height:500px;
}

.table-container-without-background{
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
    max-height:450px;
}

.table-container::-webkit-scrollbar {
    display: none;
}

table{
    width: max-content;
    min-width: 100%; 
    border-collapse: collapse;
    cursor: default;
    max-height:500px;
    text-align: left;
}

.table-container .description, .bg-gradient .description {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width:100%;
    margin-bottom:10px;
}


table thead tr{
position: sticky;
top: -2px;
left:0;
background-color: var(--accent-color);
padding:5px;
z-index: 1;
}

table thead tr:hover {
    background-color: var(--accent-color) !important;
} 

table thead th{
    padding: 10px 20px !important;
    border:1px solid var(--accent-color);
    max-width: fit-content;
}

table thead th.sm-column{
    width:150px
}

table tr {
    height: 50px;
    max-height: 50px;
    cursor: default;
}

.centered-text{
    text-align: center;
}

td.position{
    width:50px;
    min-width:fit-content;
}

table td {
    padding: 10px 20px;
    height: 50px;
    max-height: 50px;
    width:fit-content;
    max-width: fit-content;
    white-space: nowrap;
    cursor:inherit;
}

table tr, table td,table th{
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
}

table tr:hover,
table tbody tr:hover {
    background-color: var(--accent-color-transparent-50);
    cursor: default;
}

table thead tr:hover {
    background-color: transparent; 
}



@media screen and (max-width:1400px){
    .table-container .description {
        width:calc(90% - 15px);
    }
}

@media screen and (max-width:650px) {
    .table-container {
        padding: 100px 30px 50px 30px;
    }
}

th span{
    margin:0 auto;
}

.align-left{
    text-align: left;

}

table .align-center{
    text-align: center;
    align-items: center;
    justify-content: center;
}

table .light{
    opacity: 0.25;
}

tr.error, input.error{
    background-color: rgba(223, 28, 28, 0.5);
}

tr.error:hover, input.error:hover{
    background-color: rgba(223, 28, 28, 0.8);
    box-shadow: none;
}


.lightUsername, .lightPoint{
    pointer-events: none;
    opacity: 0.60;
    font-size: 1rem;
}


.results{
    display: flex;
    flex-direction: column;
    gap:10px;
    margin-top:25px;
}

.results .title{
    text-decoration: underline;
    text-underline-offset: 5px;
    margin-bottom:10px;
}

th input,th select{
    width:100%;
    text-align: center;
    cursor:pointer;
}

th input:disabled, th select:disabled{
    color:white !important;
    opacity: 1 !important;
    background-color: transparent !important;
    border:none !important;
    box-shadow: none !important;
    outline:none !important;
    cursor:default;
    appearance: none;

    -webkit-appearance: none; /* Pour les navigateurs basés sur WebKit (Chrome, Safari) */
    -moz-appearance: none;    /* Pour Firefox */
    -webkit-opacity: 1; /* Pour les navigateurs basés sur WebKit (Chrome, Safari) */
    -moz-opacity: 1;
}

.multiple-input-th{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.multiple-input-th input{
    padding:0 0;
}





.recruiterCell{
    cursor:pointer;
}

.recruiterCell.active{
    margin:10px auto;
}


div.interval{
    position: relative;
    width:100%;
    display: flex;
    gap:7px;
    align-items: center;
    margin:0;
}

.interval-circle.passed{
    background-color: rgb(202, 34, 34);
}

.interval-circle{
    background-color: rgba(28, 223, 28);
    border:1px solid white;
    width:12px;
    height:12px;
    border-radius: 100%;
}


div.first-player{
    display:flex;
    flex-direction: column;
    text-align: left;
}

div.first-player span:nth-child(1){
    margin-bottom:10px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.recruiterCell p{
    pointer-events: none;
}

.recruiterCell.active{
    padding-top:25px;
    padding-bottom:20px;
}

tr.active td .player-name{
    text-align: center;
}


.rankingsPlayerTable{
    margin:15px auto 10px;
    background-color: var(--accent-color-transparent-50);
    width:fit-content;
    display: none;
    pointer-events: none;
    padding:10px 5px 10px 5px;
    border-radius: 5px;
}

.rankingsPlayerTable.active{
    width:100% !important;
}

.rankingsPlayerTable tr, .rankingsPlayerTable tr:hover{
    background-color: transparent !important;
    z-index:unset;
}

.rankingsPlayerTable td, .rankingsPlayerTable th, .rankingsPlayerTable tr,.rankingsPlayerTable tr:hover {
    border:none;
    background-color: transparent !important;
    height:fit-content;
}

.rankingsPlayerTable thead tr th{
    padding-bottom:15px !important;
    text-decoration: underline;
    text-underline-offset:10px;
    text-decoration-thickness: 2px;
}


.delete-btn-admin img.icons{
    height:20px;
}