.header-background {
    width: 100% !important;
    height: 10vh !important;
    background-color: #1B1C1E !important;
}

#edit-icon-color {
    color: rgb(37, 37, 224);
}

#delete-icon-color {
    color: rgb(202, 29, 29);
}

.table-aligin-itens {
    text-align: center !important;
}

.table-scroll {
    overflow-x: scroll;
}

.header-background a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

#gray {
    background-color: #1B1C1E !important;
}

#blue {
    color: rgba(0, 31, 51, 1);
}

#black {
    background-color: rgb(19, 19, 19) !important;
    color: white !important;
}

#white {
    color: white !important;
}

#yellow {
    color: rgba(255, 199, 0, 1) !important;
}

.social-links a {
    color: white !important ;
    font-size: large;
    margin-right: 1vh !important;
}

.text-yellow {
    color: rgba(255, 199, 0, 1) !important;
    font-size: larger;
    font-weight: bold;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: xx-large;
    margin: 0;
    margin-top: 15vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay-content {
    text-align: center;
}

.overlay-content p {
    margin: 0 !important;
}

.card:hover .overlay,
.card:focus .overlay {
    opacity: 1;
}

.card {
    position: relative;
}
.text-white {
    color: white !important;
    font-size: larger;
    font-weight: bold;
}

.container {
    color: white !important;
    font-family: Roboto Condensed, sans-serif;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.carousel-size {
    height: 90vh !important;
    overflow: hidden;
}

.index-conteiner-size {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100% !important;
}

.index-conteiner-direction {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.font-color {
    color: white !important;
    /* font-family: Roboto Condensed, sans-serif; */
}

.conteiner-font {
    font-size: large !important;
}

.header-content a {
    margin-top: 3vh;
}

.img-logo-header img {
    width: 8vh; 
    height: 8vh;
    margin-top: 1vh;
}

.backgound-body {
    background-color: white;
}

.body-conteiner {
    display: flex;
    width: 100%;
    height: 80vh !important;
}

.form-label {
    color: black;
}

.backgound-footer {
    background-color: #1B1C1E;
}

.header-content {
    width: 70%;
}

.footer-conteiner {
    height: 30vh;
}

.footer-text p {
    color: white;
    text-decoration: none;
}

.footer-text a {
    color: white;
    text-decoration: none;
}

.footer-text i {
    color: rgba(255, 199, 0, 1);
    text-decoration: none;
}

.footer-text h3{
    color: white;
    font-size: x-large;
    font-weight: bold;
}

.footer-itens {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-top: 3vh;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.yellow-line {
    color: rgba(255, 199, 0, 1);
    height: 5vh;
    width: 100%;
}

.navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.card-size{
    width: 80vh; 
    height: 70vh !important; 
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
}

.oculte-desktop {
    display: none;
}

.card-size-large {
    margin-top: 5vh;
    margin-bottom: 5vh;
    width: 110vh; 
    height: max-content !important;
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
}

.form-large {
    display: flex !important;
    flex-direction: row !important;
}


.card-size-admin {
    width: 90vh; 
    height: 85vh !important; 
    background-color: rgb(246, 246, 246) !important; 
    align-self: center;
    margin: 5vh;
}

.admin-links {
    display: flex;
    width: 22vh !important;
    height: 22vh !important;
    color: rgba(0, 31, 51, 1);
    border-radius: 5%;
    margin: 5vh;
    align-items: center;
    text-align: center !important;
}

.admin-links a {
    width: 100% !important;
    height: 100% !important;
    text-decoration: none;
    text-align: center;
    align-self: center !important;
    padding-top: 4vh;
}

.admin-links i {
    text-align: center;
    font-size: xx-large;
    align-self: center !important;
    margin: 2vh;
}

.admin-conteiner {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

.display-card {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.display-card p {
    width: 10vh;
    height: 10vh;
    margin: 1vh;
    align-items: center !important;
    overflow: hidden;
}   

.display-card i {
    align-self: center !important;
    color: green;
    font-size: x-large;
}   

.display-card img {
    width: 10vh;
    height: 10vh;
}

.admin-display {
    display: flex;
    flex-direction: row !important;
}

.custom-btn {
    color: white !important;
    background-color: transparent;
}

.graficos-conteiner {
    width: 46vh !important;
    height: max-content;
    padding: 2vh !important;
    padding-bottom: 1vh !important;
}


.resultado-item {
    padding: 5px;
    cursor: pointer;
}
.resultado-item:hover {
    background-color: #f0f0f0;
}

.search-space {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.search-user {
    font-size: medium !important;
    margin: 3%;

}

.chart-container {
    width: 80%;
    margin: auto;
    margin-top: 50px;
}

#map {
    height: 500px;
    width: 80%;
    margin: auto;
    margin-top: 50px;
}

.professional-display {
    display: flex;
    flex-wrap:wrap;
    flex-direction: row;
    background-color: red;
    width: max-content;
}

.oculte-item-desktop {
    display: none !important;
}

.grafics-display {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.card-img-top2 {
    height: 100% !important;
}

.select-liks-adm-painel {
    background-color: #363636 !important;
    height: 100vh !important;
}

.text-select-liks button {
    text-decoration: none;
    color: white;
    font-size: large;
    margin: 1vh;
    text-transform: uppercase;
    background-color:#363636 !important;
    border: none;
}

.color-text {
    color: white;
}

.form-scroll {
    overflow-y: scroll;
    height: 80vh !important;
}

@media ( max-width:1023px ) {
    .oculte-mobile {
        display: none;
    }
    .oculte-desktop {
        display: initial;
    }
    .oculte-item-desktop {
        display: initial !important;
    }

    .marign-top-grafics {
        margin-top: 11vh !important;
    }

    .body-conteiner {
        display: flex;
        width: 100%;
        height: max-content !important;
        /* margin-top: 10vh; */
        overflow-y: scroll !important;
    }

    .card-size{
        width: 50vh; 
        height: max-content; 
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
        margin: 1vh !important;
    }
    
    .carousel {
        margin-top: 10vh;
    }

    .itens-carousel {
        display: flex;
        flex-direction: column;
        align-items: start;
        margin-top: 10vh;
    }

    .header-background {
        width: 100% !important;
        height: 10vh !important;
        background-color: rgba(0, 31, 51, 1);
    }

    .logo-canva-mobile {
        height: 5vh;
        width: 10vh;
        margin-top: -5vh !important;
    }

    .footer-conteiner {
        height: max-content;
    }

    .footer-mobile {
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-text a {
        color: white;
        text-decoration: none;
        text-align: start !important;
    }

    .card-size-admin {
        width: 70vh; 
        height: 50vh !important; 
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
        margin: 5vh;
    }

    .table-mobile-size {
        width: 30vh !important;
        overflow-x: scroll !important;
    }
    
    .logo-img-mobile {
        width: 10vh !important;
        height: 10vh !important;
        overflow: hidden;

    }

    .logo-img-mobile img {
        width: 100%;
        height: auto; 
        display: block; 
    }

    .admin-display {
        display: flex;
        flex-direction: column !important;
    }

    .admin-conteiner {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    

    .card-size-large {
        margin-top: 2vh;
        margin-bottom: 5vh;
        padding: 2vh;
        width: 40vh !important; 
        height: max-content !important;
        background-color: rgb(246, 246, 246) !important; 
        align-self: center;
    }

    .admin-links {
        display: flex;
        width: 12vh !important;
        height: 12vh !important;
        color: rgba(0, 31, 51, 1);
        border-radius: 5%;
        margin: 1vh;
        align-items: center;
        text-align: center !important;
    }
    
    .admin-links a {
        width: 100% !important;
        height: 100% !important;
        text-decoration: none;
        text-align: center;
        align-self: center !important;
        padding-top: inherit !important;
    }
    
    .admin-links i {
        text-align: center;
        font-size: xx-large;
        align-self: center !important;
        margin: 2vh;
    }

    .display-card {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center !important;
    }
    
    .img-logo-header img {
        width: 8vh; 
        height: 8vh;
        margin-top: 0.2vh;
    }

    .graficos-conteiner {
        width: 45vh !important;
        height: max-content;
        padding: 2vh !important;
        padding-bottom: 1vh !important;
    }

    #margin-top {
        margin-top: 10vh !important;
    }

    .graficos-content {
        display: flex;
        flex-direction: column !important;
    }

    .graficos-select {
        display: flex;
        flex-direction: row;
    }

    #margin-top-cards {
        margin-top: 1vh !important;
    }

    .card-margin-bottom {
        height: fit-content !important;
        margin-bottom: 1vh !important;
    }

    .container {
        color: white !important;
        text-align: center !important;
        font-family: Roboto Condensed, sans-serif;
        display: block;
    }

    .carousel-size {
        height: max-content !important;
        overflow: hidden;
    }

    #item-size {
        width: 90% !important;
    }

    .margin-product {
        margin-top: 10vh;
    }
}

/* ============================================================
   TEMA ESCURO GLOBAL — INPUTS NATIVOS
   Aplica em todas as páginas do sistema
   ============================================================ */

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    background-color: var(--sports-card) !important;
    color: var(--sports-text) !important;
    border: 1px solid #333 !important;
    border-radius: 6px;
    padding: 8px 12px;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus {
    border-color: var(--sports-yellow) !important;
    box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.2) !important;
    outline: none;
}

input[type="file"] {
    background-color: var(--sports-card) !important;
    color: var(--sports-text) !important;
    border: 1px solid #333 !important;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background-color: var(--sports-yellow);
    color: #050505;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 12px;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #fff;
}

/* ============================================================
   BREADCRUMBS — ESTILO SPORTS
   ============================================================ */

.sports-breadcrumb {
    background: transparent !important;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.sports-breadcrumb .breadcrumb-item {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #555;
}

.sports-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 8px;
    color: #333;
}

ol.sports-breadcrumb .breadcrumb-item a {
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

ol.sports-breadcrumb .breadcrumb-item a:hover {
    color: var(--sports-yellow) !important;
}

.sports-breadcrumb .breadcrumb-item.active {
    color: var(--sports-yellow);
    font-weight: 600;
}

/* ============================================================
   SELECTS NATIVOS — TEMA GLOBAL
   ============================================================ */

select {
    background-color: var(--sports-card) !important;
    color: var(--sports-text) !important;
    border: 2px solid #333 !important;
    border-radius: 4px;
}

select:focus {
    border-color: var(--sports-yellow) !important;
    outline: none;
}

/* ============================================================
   TOASTS GLOBAIS (Django messages)
   ============================================================ */

#sports-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    min-width: 300px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sports-toast {
    background: var(--sports-card);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

.sports-toast .toast-header {
    background: var(--sports-bg);
    border-bottom: 1px solid #222;
    padding: 10px 14px;
    color: var(--sports-text);
    font-size: 0.85rem;
    font-weight: 600;
}

.sports-toast .toast-body {
    padding: 12px 14px;
    color: var(--sports-text-secondary);
    font-size: 0.9rem;
}

.sports-toast.toast-success { border-left: 4px solid var(--sports-success); }
.sports-toast.toast-error   { border-left: 4px solid var(--sports-danger); }
.sports-toast.toast-warning { border-left: 4px solid var(--sports-warning); }
.sports-toast.toast-info    { border-left: 4px solid var(--sports-info); }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateX(30px); }
}

}

/* ============================================================
   MODAIS — BOTÃO FECHAR DINÂMICO & RESPONSIVIDADE
   ============================================================ */

/* Botão X adaptativo ao tema:
   --close-btn-invert = 1  → X branco  (tema escuro, Academia)
   --close-btn-invert = 0  → X escuro  (tema claro, Clínica)
   O valor é calculado em JS no footer.html com base na luminosidade de --sports-bg. */
.modal-header .btn-close,
.modal-header .btn-close-white,
.offcanvas-header .btn-close,
.offcanvas-header .btn-close-white {
    filter: invert(var(--close-btn-invert, 1)) grayscale(100%) brightness(200%) !important;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.modal-header .btn-close:hover,
.modal-header .btn-close-white:hover,
.offcanvas-header .btn-close:hover,
.offcanvas-header .btn-close-white:hover {
    opacity: 1;
}

/* Conteúdo de modais scrollable em telas pequenas */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* Em mobile, garantir que colunas internas do modal empilhem */
@media (max-width: 767px) {
    .modal-body .col-md-8,
    .modal-body .col-md-6,
    .modal-body .col-md-4 {
        width: 100%;
    }
}