.container-fluid {
    max-width: 1440px;
    margin: 0 auto;
}

.upload-area {
    background: #f8f9fa;
}

.card {
    min-height: 120px;
}

#chart-position, #chart-radar {
    min-height: 400px;
}

#pitch-positions {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #e6f2e6;
    border-radius: 20px;
    padding: 30px 10px 10px 10px;
    position: relative;
    min-height: 420px;
}

.position-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.position-cell {
    min-width: 80px;
    min-height: 60px;
    margin: 0 4px;
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid #b2d8b2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.15em;
    box-shadow: 0 2px 4px #b2d8b2;
    transition: transform 0.1s;
}
.position-cell:hover {
    transform: scale(1.05);
}

.card-pitch-bg {
    background: #e6f2e6 !important;
    border-radius: 20px;
    border: 1.5px solid #b2d8b2;
}

.position-cell .count {
    font-size: 0.8em;
    font-weight: normal;
    color: #6c757d; /* cor padrão neutra para quando não há jogadores */
}

/* Classes específicas para colorir os números baseado na quantidade */
.position-cell .count.count-red {
    color: #dc3545; /* vermelho para <= 1 */
    font-weight: bold;
}

.position-cell .count.count-yellow {
    color: #ffc107; /* amarelo para 2-5 */
    font-weight: bold;
}

.position-cell .count.count-green-soft {
    color: #6fcf97; /* verde opaco para 6-8 */
    font-weight: bold;
}

.position-cell .count.count-green-strong {
    color: #27ae60; /* verde vibrante para 9-20 */
    font-weight: bold;
}

.position-cell[style*="background:transparent"] {
    min-width: 50px;
    min-height: 40px;
    border: none !important;
    box-shadow: none !important;
}

/* Estilos para o layout dos radar charts */
.radar-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 18px;
}

.radar-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 375px;
    max-width: 475px;
    min-height: 350px;
}

.radar-cell > .card {
    width: 100%;
}

.radar-empty {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 60px;
    min-height: 10px;
}

.radar-chart-card {
    /* opcional: ajustes visuais específicos dos cards dos radars */
}

.card-body {
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.file-name {
    min-width: 220px;
    max-width: 400px;
    margin: 0 auto 10px auto;
    color: #888;
    font-size: 1rem;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
}
.upload-area label#customFileBtn {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 28px;
}
.upload-area button.btn-primary {
    padding: 10px 28px;
    font-size: 1.1rem;
}

.upload-area-modern {
    background: linear-gradient(135deg, #f8faff 80%, #e3f0ff 100%);
    border: 1.5px solid #0d6efd;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(13,110,253,0.07);
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2.5rem auto;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
}
.upload-area-modern:hover {
    box-shadow: 0 8px 32px 0 rgba(13,110,253,0.13);
}
.upload-area-modern .upload-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.upload-area-modern .btn-lg {
    font-size: 1.15rem;
    padding: 0.7rem 2.2rem;
}
.upload-area-modern .btn-outline-primary {
    border-width: 2px;
}
.upload-area-modern .file-name {
    min-width: 220px;
    max-width: 400px;
    margin: 0 auto 10px auto;
    color: #0d6efd;
    font-size: 1.08rem;
    font-weight: 500;
    background: #e3f0ff;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px #e3f0ff;
}
.upload-area-modern .btn-outline-danger {
    border-width: 2px;
}
.upload-area-modern .upload-hint {
    margin-top: 0.7rem;
    color: #6c757d;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}
@media (max-width: 600px) {
    .upload-area-modern {
        max-width: 100%;
    }
    .upload-area-modern .file-name {
        max-width: 90vw;
        font-size: 0.98rem;
    }
}

/* Estilos para a tabela de atributos detalhada */
#attributes-table th {
    background-color: #343a40 !important;
    color: white !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

#attributes-table th:hover {
    background-color: #495057 !important;
}

#attributes-table th span {
    font-size: 0.8em;
    margin-left: 4px;
}

#attr-table-search {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    max-width: 400px;
}

#attr-table-search:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Cores para os valores dos atributos */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Estilo para o nome do clube */
#club-name {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}