/**
 * Estilos customizados para a tela de mensagens
 * Child rows expansíveis com detalhes dos treinos
 */

/* Botão de expandir/recolher */
.btn-expand-treino {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-expand-treino:hover {
    transform: scale(1.15);
}

.btn-expand-treino i {
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

/* Linha pai quando expandida */
tr.shown {
    background-color: #e8f4fd !important;
}

/* Child row container */
.child-row-treino td {
    padding: 0 !important;
    background-color: #f8f9fa;
    border-top: none;
}

.child-row-content {
    padding: 0.75rem 1rem 0.75rem 3.5rem;
}

/* Header dos detalhes na child row */
.treino-detalhes-header {
    font-weight: 600;
    color: #007bff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #dee2e6;
}

.treino-detalhes-header i {
    margin-right: 0.4rem;
}

/* Body dos detalhes */
.treino-detalhes-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Container dos detalhes */
.treino-detalhes-child {
    max-width: 600px;
}

/* Item de passo */
.passo-item {
    border-left: 3px solid #007bff;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.passo-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cabeçalho do passo */
.passo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.passo-numero {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.passo-tipo {
    color: #495057;
    font-size: 0.95rem;
}

/* Detalhes do passo */
.passo-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.passo-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.passo-info i {
    width: 16px;
    text-align: center;
}

.passo-info strong {
    color: #495057;
}

.passo-info em {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Container de repetições */
.repeticoes-container {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.repeticoes-header {
    font-weight: 600;
    color: #856404;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.passo-repeticao {
    padding: 0.3rem 0;
    font-size: 0.8rem;
    color: #856404;
    border-bottom: 1px solid rgba(133, 100, 4, 0.1);
}

.passo-repeticao:last-child {
    border-bottom: none;
}

.passo-rep-tipo {
    font-weight: 600;
}

/* Badges customizados para zonas */
.badge-success-light {
    background-color: #d4edda;
    color: #155724;
}

.badge-info-light {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-warning-light {
    background-color: #fff3cd;
    color: #856404;
}

.badge-orange-light {
    background-color: #ffe5cc;
    color: #cc5200;
}

.badge-danger-light {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-secondary-light {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Cores específicas para ícones de tipos de passo */
.text-orange {
    color: #fd7e14 !important;
}

/* Responsividade para mobile */
@media (max-width: 576px) {
    .child-row-content {
        padding: 0.5rem 0.75rem 0.5rem 1rem;
    }

    .passo-info {
        font-size: 0.8rem;
    }

    .passo-tipo {
        font-size: 0.85rem;
    }

    .treino-detalhes-child {
        max-width: 100%;
    }
}
