/*CUSTOM STYLES*/

.hidden-component{
    display: none;
}
.text-semibold{
    font-weight: 600 !important;
}
.nowrap{
    white-space: normal;
    display: inline-flex;
}
.nav-link.active{
    color: var(--primary) !important;
}
div.dataTables_wrapper div.dataTables_processing{
    box-shadow: 1rem 1rem 10rem 100rem rgba(0, 0, 0, .15);
}
.hidden{
    display: none !important;
}

.td-actions{
    max-width: 15%;
    white-space: nowrap;
    min-width: 120px;
}

.td-actions a {
    margin-right: 15px;
    white-space: nowrap;
}
.td-actions a:last-child {
    margin-right: 0;
}

.navbar-horizontal .navbar-brand img{
    height: 80px;
}

.navbar-vertical .navbar-collapse:before{
    margin: 0;
}

@media (min-width: 768px){
    .navbar-vertical.navbar-expand-md .navbar-brand-img {
        max-height: 5rem;
    }
}

.nav-link.active, .btn-link {
    color: var(--green) !important;
}
.page-item.active .page-link{
    border-color: var(--green);
    background-color: var(--green);
}

a{
    color: var(--green)
}

/* Gradiente azul do sistema - baseado na página de login */
.bg-gradient-sport-blue {
    background: linear-gradient(135deg, #0F4359 0%, #638593 50%, #9FB4BD 100%) !important;
}

/* Estilos para botões de ação com ícones e tooltips */
.action-buttons {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-buttons a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* ============================================
   MELHORIAS GERAIS DE LAYOUT E ESPAÇAMENTO
   ============================================ */

/* Melhorias de tipografia geral */
body {
    font-size: 0.9375rem; /* 15px - melhor legibilidade */
    line-height: 1.6;
    color: #525f7f;
}

/* Títulos mais consistentes */
h1, .h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Cards - melhor espaçamento e sombras */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Estilização do card-footer removida - não será utilizada */

/* Tabelas - melhor espaçamento e legibilidade */
.table {
    font-size: 0.9375rem;
    width: 100% !important;
    table-layout: auto;
}

.table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #e9ecef;
    color: #525f7f;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
    word-wrap: break-word;
}

.table tbody tr:hover {
    background-color: #f8f9fe;
}

.table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Evitar quebra de colunas no DataTables */
.dataTables_wrapper .table {
    width: 100% !important;
    table-layout: auto;
}

.dataTables_wrapper .table thead th {
    white-space: nowrap;
}

.dataTables_wrapper .table tbody td {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.dataTables_wrapper .table tbody td.td-actions {
    white-space: nowrap;
    width: auto;
    min-width: 120px;
    text-align: right;
}

/* Garantir que as colunas não quebrem */
.dataTables_wrapper .table colgroup col {
    width: auto !important;
}

/* Botões - melhor espaçamento e tamanhos */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.3px;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn + .btn {
    margin-left: 0.5rem;
}

/* Formulários - melhor espaçamento */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #525f7f;
}

.form-control {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.15);
}

/* Modais - melhor espaçamento */
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #32325d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    margin-left: 0.5rem;
}

.modal-footer .btn:first-child {
    margin-left: 0;
}

/* Header das páginas */
.header {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.header .h2,
.header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

/* Container principal - melhor espaçamento */
.container-fluid.mt--7 {
    margin-top: -3.5rem !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Cards de estatísticas */
.card-stats .card-body {
    padding: 1.5rem;
}

.card-stats .card-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-stats .h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Navegação lateral */
.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.navbar-nav .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

/* DataTables - melhor espaçamento */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.dataTables_wrapper .dataTables_info {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 0.75rem 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container-fluid.mt--7 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn + .btn {
        margin-left: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* Melhorias de acessibilidade e legibilidade */
.text-muted {
    color: #8898aa !important;
}

/* Espaçamento consistente entre seções */
.section-spacing {
    margin-bottom: 2rem;
}

/* Alinhamento de botões no header dos cards */
.card-header .row {
    margin: 0;
}

.card-header .col.text-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .card-header .col.text-right {
        justify-content: stretch;
    }
    
    .card-header .col.text-right .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Navbar superior - melhorias */
.navbar-top {
    padding: 0.75rem 0;
    box-shadow: none !important;
}

.navbar-top.navbar-dark {
    box-shadow: none !important;
}

.navbar-top .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

.navbar-top .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 0.5rem;
}

.navbar-top .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.navbar-top .dropdown-item:hover {
    background-color: #f8f9fe;
}

.navbar-top .dropdown-header {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Melhorias no avatar */
.avatar {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Melhorias no dropdown do usuário */
.media-body .text-sm {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Ajustes finais de espaçamento */
.main-content {
    padding-bottom: 2rem;
}

/* Nav Pills - Ajustes de cores para página de detalhes do atleta */
.nav-pills .nav-link {
    color: #000 !important;
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: #000 !important;
    background-color: #f8f9fe;
    border-color: #dee2e6;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff !important;
    background-color: #5e72e4;
    border-color: #5e72e4;
}

.nav-pills .nav-link.active i,
.nav-pills .show > .nav-link i {
    color: #fff !important;
}
footer {
    padding: 0 !important   ;
}