/* main overwrite */

a{
    text-decoration: none !important;
}

.navbar-light .navbar-nav .nav-link{
    color: black;
    font-weight: 400;
    font-size: large;
}

.form-control, .form-select{
    border: 1px solid #B89D00;
}

.form-control:focus, .form-select:focus{
    border: 1px solid #B89D00;
    outline: none;
    box-shadow: 0 0 0 4px rgba(184,157,0,0.12);
}

.btn-primary{
    background-color: #BD0B3F;
    border-color: #BD0B3F;
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus{
    background-color: #6b1111;
    border-color: #BD0B3F;
    color: #f5ecec;
    outline: none;
    box-shadow: 0 0 0 4px rgba(184,157,0,0.12);

}

.backdrop {
    width: 100%;
    margin: 2rem auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.backdrop-small{
    margin: 2rem auto;
    min-height: 400px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.backdrop-small .btn{
    width: 100%;
    margin-top: 1.5rem;
}

.scrollable{
    overflow-x: auto;       /* umožní horizontální scroll */
    white-space: nowrap;
}

/* SignInForm */

.alert{
    margin: 20px auto;
    text-align: center;
    max-width: 500px;
}

.signInCard{
    margin: 50px auto;
    min-height: 400px;
    max-width: 500px;
    /*border: #7f7777 solid 1px;*/
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 25px;
}

.signInCard h2{
    text-align: center;
    margin: 20px auto;
    color: #383232;
}

.signInCard .btn{
    background-color: #BD0B3F;
    width: 100%;
    margin-top: 20px;
    border-color: #BD0B3F;
}

.signInCard img{
    display: block;
    width: 70px;
    margin: 0 auto;
}

.signInCard .form-control{
    border: 1px solid #B89D00;
}

.signInCard .form-control:focus, .signInCard .btn:focus{
    outline: none;
    box-shadow: 0 0 0 4px rgba(184,157,0,0.12);
}


/* Category attendance table */

.calendar {
    width: 100%;
    margin: 2rem auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Players */
.accordion-button{
    background-color: #F8F9FA;
}

.accordion-button:focus{
    background-color: #f4ccd6;
    outline: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: #BD0B3F;
    background-color: #f4ccd6;
    border: 1px solid #B89D00;
    box-shadow: inset 0 -1px 0 rgba(189, 11, 63, .125);
    font-weight: 500;
}

.add-player-button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 15px auto;
}

.add-player-button .btn{
        background-color: #BD0B3F;
        border-color: #BD0B3F;
    color: white;
}

.add-player-button .btn:hover{
    background-color: #f4ccd6;
    border-color: #BD0B3F;
    color: #BD0B3F;
}

.add-player-button .btn:focus{
    outline: none;
    box-shadow: none;
}

/* admin sekce */

.admin-buttons{
    display: flex;
    margin: 1rem auto;
    justify-content: center;
    align-items: center;
}

.admin-buttons button{
    background-color: #BD0B3F;
    border-color: #BD0B3F;
    color: white;
    margin: 5px 10px;
}

.admin-buttons .add-user-button .btn:hover,
.admin-buttons .add-team-button .btn:hover{
    background-color: #f4ccd6;
    border-color: #BD0B3F;
    color: #BD0B3F;
}

.admin-buttons .add-user-button .btn:focus,
.admin-buttons .add-team-button .btn:focus{
    outline: none;
    box-shadow: none;
}

/* Attendance */

.category-buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.category-buttons .btn{
    display: block;
    width: 30%;
    margin-bottom: 1rem;
}

@media  (max-width: 768px) {
    .category-buttons .btn{
        width: 90%;
        margin-bottom: 1rem;
    }
}

.attendance-table .match{
    background-color: #fee7ec;
}

.attendance-table .training{
    background-color: #fff7de;
}

.legend{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}

.legend-training{
    width: 30px;
    height: 30px;
    background-color: #fff7de;
    margin-right: -10px;
}

.legend-match{
    width: 30px;
    height: 30px;
    background-color: #fee7ec;
    margin-right: -10px;
}

.attendance-checkbox{
    font-size: 1.3rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.attendance-checkbox input{
    transform: scale(1.5);
    margin-right: 20px;
}

.attendance-buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.attendance-buttons .btn{
    min-width: 30%;
}


.category-choice{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.category-choice .btn{
    width: 45%;
    padding: 1.5rem;
}

@media  (max-width: 768px) {
    .category-choice{
        flex-direction: column;
    }

    .category-choice .btn{
        width: 100%;
    }
}

a.date{
    color: #000000;
}

.statistica-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.statistica-flex .statistica-input{
    width: 30%;
}

.statistica-button .btn{
    width: 100%;
}


@media  (max-width: 768px) {
    .statistica-flex{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .statistica-flex .statistica-input{
        width: 100%;
    }
}

.inputs-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.inputs-flex div{
    width: 30%;
}

.full-button .btn{
    width: 100%;
}


@media  (max-width: 768px) {
    .inputs-flex{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .inputs-flex div{
        width: 100%;
    }
}

.unit-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.unit-flex div:nth-child(1) { flex: 0 0 2%; }
.unit-flex div:nth-child(2) { flex: 0 0 10%; }
.unit-flex div:nth-child(3) { flex: 0 0 15%; }
.unit-flex div:nth-child(4) { flex: 0 0 35%; }
.unit-flex div:nth-child(5) { flex: 0 0 10%; }

.unit-flex input[type="checkbox"]{
    transform: scale(1.5);
    transform-origin: center;
    cursor: pointer;
}

.unit-flex.training{
    background-color: #fff7de;
}

.unit-flex.match input.to-control{
    background-color: #fee7ec;
}

@media  (max-width: 768px) {
    .unit-flex{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .unit-flex div{
        width: 100%;
        margin-bottom: 3px;
    }

    .unit-flex.description{
        display: none;
    }
}


.scrollable {
    overflow-x: auto;
    max-width: 100%;
    position: relative;
}

.attendance-table {
    border-collapse: collapse;
    width: 100%;
}

.attendance-table th,
.attendance-table td {
    white-space: nowrap;
}

/* První sloupec zůstane “přilepený” při scrollování */
.attendance-table th:first-child,
.attendance-table td:first-child {
    position: sticky;
    left: -1px;
    background: white; /* nebo např. #f8f9fa */
    z-index: 2; /* aby překrýval ostatní buňky */
}
