/* =========================================
   ESTILOS DO PAINEL DO CAPITÃO (DASHBOARD)
   ARQUIVO: css/dashboard-style.css
   ========================================= */

/* --- 1. Cabeçalho do Painel (Correção de Sobreposição) --- */
.dashboard-header {
    /* Este padding empurra o conteúdo para baixo para não ficar atrás do menu */
    padding-top: 160px; 
    padding-bottom: 60px;
    background: #15202b; /* Fundo escuro profissional */
    color: #ffffff;
    border-bottom: 4px solid #b2d13a; /* Detalhe verde */
}

.dh-content {
    display: flex;
    align-items: center;
}

.dh-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #b2d13a;
    margin-right: 25px;
    background: #fff;
    flex-shrink: 0; /* Impede que o logo amasse */
}

.dh-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-text h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.dh-text p {
    color: #b2d13a; /* Verde da marca */
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- 2. Abas de Navegação (Tabs) --- */
.dashboard-tabs {
    border-bottom: 2px solid #e1e1e1;
    margin-bottom: 30px;
}

.dashboard-tabs .nav-item {
    margin-bottom: -2px;
}

.dashboard-tabs .nav-link {
    border: none;
    color: #888;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 25px;
    transition: 0.3s;
    background: transparent;
}

.dashboard-tabs .nav-link:hover {
    color: #b2d13a;
}

.dashboard-tabs .nav-link.active {
    color: #213e5a; /* Azul Escuro */
    background-color: transparent;
    border-bottom: 4px solid #b2d13a; /* Linha ativa */
}

.dashboard-tabs .nav-link i {
    margin-right: 8px;
}

/* --- 3. Cards de Atletas (Solicitações) --- */
.athlete-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
}

.athlete-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Borda lateral verde para novos cards */
.athlete-card.new {
    border-left: 5px solid #b2d13a;
}

.ac-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 2px solid #eee;
    flex-shrink: 0;
}

.ac-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-info {
    flex-grow: 1;
    min-width: 200px; /* Garante espaço */
}

.ac-info h5 {
    font-size: 18px;
    font-weight: 700;
    color: #213e5a;
    margin-bottom: 5px;
}

.ac-info span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 3px;
}

.ac-info i {
    color: #b2d13a;
    width: 15px;
    text-align: center;
    margin-right: 5px;
}

/* Badges de Posição */
.pos-badge {
    background: #213e5a;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
}

/* --- 4. Ações e Botões --- */
.ac-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Efeito de contato escondido (borrado) */
.hidden-contact {
    filter: blur(4px);
    user-select: none;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    transition: 0.3s;
}

.hidden-contact.revealed {
    filter: none;
    background: #eaffea;
    color: #27ae60;
    border: 1px solid #27ae60;
}

button.btn-approve, button.btn-reject {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

button.btn-approve {
    background: #b2d13a;
    color: #213e5a;
}

button.btn-approve:hover {
    background: #a0bd32;
}

button.btn-reject {
    background: #ffecec;
    color: #d63031;
}

button.btn-reject:hover {
    background: #ffcccc;
}

.btn-whatsapp {
    display: none; /* Escondido por padrão */
    background: #25D366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    align-items: center;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.btn-whatsapp i {
    margin-right: 5px;
    font-size: 16px;
}

/* --- 5. Lista do Elenco (Aba 2) --- */
.squad-list {
    background: #fff;
}

.squad-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.squad-item:last-child {
    border-bottom: none;
}

/* --- 6. Responsividade (Mobile) --- */
@media (max-width: 768px) {
    .dashboard-header {
        padding-top: 100px; /* Ajuste para mobile */
        text-align: center;
    }

    .dh-content {
        flex-direction: column;
    }

    .dh-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
    }

    .dh-text h2 {
        font-size: 24px;
    }

    .athlete-card {
        flex-direction: column;
        text-align: center;
    }

    .ac-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .ac-info {
        margin-bottom: 20px;
    }

    .ac-actions {
        flex-direction: column;
        width: 100%;
    }

    .ac-actions button, 
    .ac-actions .hidden-contact {
        width: 100%;
        text-align: center;
    }
}