/* ========================================= */
/* Configurações Gerais                      */
/* ========================================= */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 1s ease-in-out;
}

/* Paleta de cores personalizada */
.color1 { color: #f97b37; }
.color2 { color: #e46929; }
.color3 { color: #cf581c; }
.color4 { color: #b9460e; }
.color5 { color: #a43400; }

.bg-color1 { background-color: #f97b37; }
.bg-color2 { background-color: #e46929; }
.bg-color3 { background-color: #cf581c; }
.bg-color4 { background-color: #b9460e; }
.bg-color5 { background-color: #a43400; }

.text-dark { color: #333; }
.text-white { color: #fff; }
.text-black { color: #000; }

.bg-dark { background-color: #333; }
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }

/* ========================================= */
/* Configuração do Cabeçalho                 */
/* ========================================= */
header {
    background-image: url('/assets/fundo.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header .logo {
    align-items: center;
    width: 150px;
    height: auto;
    padding: 0;
    margin: 0;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    justify-content: left;
}

header .instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .instagram-icon {
    width: 30px;
    height: auto;
}

/* ========================================= */
/* Configuração dos Filtros                  */
/* ========================================= */
.filters {
    background-color: #333;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    animation: fadeIn 1s ease-in-out;
}

.filters label {
    margin-right: 5px;
    color: white;
}

.filters select,
.filters input,
.filters button {
    border-radius: 15px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.filters select:hover,
.filters input:hover,
.filters button:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#searchBox {
    flex: 1;
    border-radius: 15px;
    outline: auto;
    background-color: #FFF;
    min-width: 200px;
    margin-right: 10px;
}

/* ========================================= */
/* Configuração da Tabela                    */
/* ========================================= */
.table-responsive {
    margin: 20px 0;
    animation: fadeIn 1s ease-in-out;
}

.team-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.358);
    background-color: #00000011 ;
}


table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-sizing: border-box;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
    word-wrap: break-word;
}

thead {
    background-color: #f97b37;
    color: white;
}

tbody tr {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

tbody tr:hover {
    transform: scale(1.02) translateY(-2px);
    background-color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* ========================================= */
/* Configuração do Rodapé                    */
/* ========================================= */
footer {
    width: 100%;
    padding: 20px;
    background-color: #f97b37;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-content .social-icon {
    width: 30px;
    height: 30px;
}

footer p {
    margin-top: 10px;
}

/* ========================================= */
/* Configuração dos Botões                   */
/* ========================================= */
.buttons .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
    border: 1px solid transparent;
    background-color: transparent;
    color: #000;
    font-size: 16px;
    padding: 8px 16px;
    margin-left: 5px;
}

.buttons .btn.active {
    background-color: #f97b37;
    color: white;
}

.buttons .divider {
    color: #ffffff;
    padding: 0 5px;
    font-size: 18px;
}

/* ========================================= */
/* Container do Toggle Switch                */
/* ========================================= */
.toggle-switch {
    position: relative;
    width: 200px;
    height: 40px;
    background-color: #ddd;
    border-radius: 30px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: #000;
    font-size: 10px;
}

.toggle-ball {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 96px;
    height: calc(100% - 8px);
    background-color: #f97b37;
    border-radius: 30px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.toggle-input:checked + .toggle-label .toggle-ball {
    transform: translateX(100%);
}

.toggle-individual,
.toggle-coletivo {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    line-height: 32px;
    transition: color 0.4s ease;
}

.toggle-input:checked + .toggle-label .toggle-individual {
    color: #000;
}

.toggle-input:checked + .toggle-label .toggle-coletivo {
    color: #fff;
}

.toggle-label:hover .toggle-individual,
.toggle-label:hover .toggle-coletivo {
    color: #333;
}

.toggle-label .toggle-coletivo {
    color: #000;
}

.toggle-label:hover .toggle-ball {
    background-color: #e46929;
}

/* ========================================= */
/* Configuração de Cabeçalhos Ordenáveis     */
/* ========================================= */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable::after {
    content: '↕';
    position: absolute;
    right: 10px;
    font-size: 0.8em;
    color: #fff;
}

.sortable.asc::after {
    content: '↑';
}

.sortable.desc::after {
    content: '↓';
}

/* ========================================= */
/* Estilo do Carrossel e Cards               */
/* ========================================= */
.tirana-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

/* Ajustes no estilo do card */
.tirana-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: #2b2b2b;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: auto;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.icon-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.tirana-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.medal-icon {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.338);
}

.medal-type {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.modalidade-name {
    font-size: 1.2em;
    color: #cccccc;
    margin-top: 15px;
    text-align: center;
}

.modalidade-description {
    font-size: 1em;
    color: #999999;
    margin-top: 10px;
    text-align: center;
}

.participantes {
    font-size: 1em;
    color: white;
    margin-top: 10px;
    text-align: left;
    padding-left: 20px;
}


/* Indicadores do carrossel */
.indicators {
    display: none;
    margin-top: 10px;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.dot.active {
    opacity: 1;
    background-color: #f97b37;
}

/* Estilo dos cards do carrossel */
.carousel-card {
    min-width: 220px;
    max-width: 250px;
    padding: 15px;
    margin: 0 10px;
    background-color: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#progress-bar {
    width: 0%;
    height: 4px;
    background-color: #f97b37;
    transition: width 0.5s linear;
    margin-top: 10px;
}

/* Efeito de hover opcional para desktop */
.carousel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
/* ========================================= */
/* Animações e Transições                    */
/* ========================================= */
.fade-out {
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.fade-in {
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.fade-out-left {
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.fade-in-right {
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.fade-out-right {
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.fade-in-left {
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Efeito de hover opcional para desktop */
.carousel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Controles do carrossel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0);
    color: #ffffff;
    border-radius: 50%;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    transform: translateY(-50%) scale(1.4); /* Aplica o zoom de 10% */
    font-weight: bold; /* Torna o texto em negrito */
    color: #f97b37;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-control:focus {
    outline: none;
}

/* Indicadores do carrossel */
.indicators {
    display: none;
    margin-top: 10px;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #3c3c3c;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.dot.active {
    opacity: 1;
    background-color: #f97b37;
}
/* ========================================= */
/* Responsividade                            */
/* ========================================= */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .filters .col-md-2,
    .filters .col-12 {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .filters input, .filters select, .filters button {
        width: 100%;
        margin-top: 10px;
    }

    #searchBox {
        margin-bottom: 10px;
        padding: 10px;
    }

    .table-responsive {
        width: 100%;
    }

    table, th, td {
        font-size: 0.9em;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        width: 60px;
    }

    header h1 {
        font-size: 1.2em;
        margin-top: 10px;
    }

    .mobile-only {
        display: block;
    }

    .pc-only {
        display: none;
    }
    
    td.team {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-logo {
        width: 35px;
        height: 35px;
    }

    .table-responsive {
        width: 100%;
    }
    
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

    .pc-only {
        display: table-cell;
    }
}

@media (max-width: 480px) {
    .filters input, .filters select, .filters button {
        width: 100%;
        margin-bottom: 5px;
    }

    th, td {
        padding: 8px;
    }

    .footer-content .social-icon {
        width: 25px;
        height: 25px;
    }

    footer {
        padding: 10px;
    }

    .toggle-switch {
        margin: 15px auto;
    }
}

@media (max-width: 768px) {
    .carousel-control {
        display: none;
    }

    .indicators {
        display: block;
    }

    .tirana-container {
        padding: 10px;
    }

    .carousel-card {
        margin-bottom: 20px;
    }

    .icon-container {
        flex-direction: column;
    }

    .tirana-logo, .medal-icon {
        width: 40px;
        height: 40px;
    }
}
