

/* =================================================================== */
/* ===  ESTILO "HERO" PREMIUM (VISUAL IDÊNTICO + JS SEGURO)        === */
/* =================================================================== */

/* --- 1. O Card Principal --- */
.card-hero-style {
    border: none !important;
    border-radius: 30px !important;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 41, 155, 0.15), 
                0 0 0 1px rgba(0, 41, 155, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}



.card-hero-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 41, 155, 0.2);
}

/* --- 2. Cabeçalho (Header) --- */
.card-hero-header {
    background: #fff;
    padding: 3rem 2.5rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-hero-header h3, 
.card-hero-header h4 {
    font-family: var(--heading-font);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.card-hero-header p {
    color: var(--gray-text);
    font-size: 1rem;
    font-weight: 500;
}

/* --- 3. Inputs (Form Control) --- */
.form-control-hero,
.form-select-hero {
    background-color: #f8faff !important;
    border: 2px solid #eef2f7 !important;
    border-radius: 15px !important;
    padding: 0.9rem 1.2rem !important;
    font-size: 1rem !important;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.form-control-hero::placeholder { color: #adb5bd; font-weight: 400; }

.form-control-hero:focus,
.form-select-hero:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 20px rgba(83, 158, 213, 0.1) !important;
    transform: translateY(-2px);
}

/* Input CPF Gigante */
.input-cpf-hero {
    font-size: 1.4rem !important;
    text-align: center;
    letter-spacing: 2px;
    background: #fff !important;
    border: 2px dashed var(--primary-color) !important;
}

/* --- 4. O Botão Confirmar (Grand Finale) --- */
.btn-hero-confirm {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.5), 
                0 15px 30px rgba(0, 41, 155, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.btn-hero-confirm::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.7s ease;
}

.btn-hero-confirm:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: inset 0 0 0 2px var(--gold-color), 
                0 20px 40px rgba(0, 41, 155, 0.4);
    color: #fff;
}

.btn-hero-confirm:hover::before { left: 100%; }


/* --- 5. ADAPTAÇÃO MAGICA: RADIO BUTTONS --- */
/* Esta parte pega a estrutura padrão do Bootstrap e transforma no visual Hero */

/* O container (a div d-flex) vira a pílula cinza */
.radio-hero-container-wrapper {
    background-color: #f0f4f8;
    padding: 5px;
    border-radius: 50px;
    display: inline-flex !important; /* Força inline-flex mesmo sendo d-flex */
    gap: 0 !important; /* Removemos o gap do bootstrap para controlar manualmente */
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* Removemos as margens do .form-check padrão */
.radio-hero-container-wrapper .form-check {
    margin: 0;
    padding: 0;
}

/* Escondemos a bolinha original do input, mas mantemos ela lá pro JS funcionar */
.radio-hero-container-wrapper .form-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Estilizamos o Label para parecer o botão */
.radio-hero-container-wrapper .form-check-label {
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--gray-text);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    min-width: 80px;
    text-align: center;
    display: inline-block; /* Garante que padding funcione */
}

/* O EFEITO VISUAL: Quando o input (invisível) está checado, muda o label vizinho */
.radio-hero-container-wrapper .form-check-input:checked + .form-check-label {
    color: #fff;
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 65, 155, 0.4);
    transform: scale(1.05);
}




/* =================================================================== */
/* ===  ESTILO DINÂMICO (LISTAS E UPLOAD DE FOTO HERO)             === */
/* =================================================================== */

/* --- 1. Lista de Cursos (Cenário A) --- */
.list-group-hero {
    background: transparent;
    border: none;
}

.list-group-item-hero {
    background-color: #fff;
    border: 1px solid #eef2f7; /* Borda bem sutil */
    border-radius: 20px !important; /* Itens bem arredondados */
    margin-bottom: 12px; /* Espaço entre os itens */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.list-group-item-hero:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 65, 155, 0.1);
    z-index: 2;
}

/* Quando bloqueado */
.list-group-item-hero.bloqueado {
    background-color: #f8f9fa;
    opacity: 0.7;
    border-color: transparent;
}

/* Ícone de Cadeado/Status */
.badge-hero {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* --- 2. Box de Informações do Aluno (Cenário B) --- */
.alert-hero-student {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: none;
    border-left: 5px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.alert-hero-student h4 {
    color: var(--secondary-color);
    font-family: var(--heading-font);
}

/* --- 3. Área de Foto (Upload) --- */
.photo-box-hero {
    background-color: #ffffff;
    border: 2px dashed var(--primary-color); /* Borda tracejada moderna */
    border-radius: 25px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.photo-box-hero:hover {
    background-color: #fcfdff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.img-hero-preview {
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--gold-color), /* Borda dupla Dourada */
                0 10px 20px rgba(0,0,0,0.15);
}

/* Botão "Escolher Foto" (Label) */
.btn-upload-hero {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-upload-hero:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(83, 158, 213, 0.4);
}


/* =================================================================== */
/* ===   ÁREA DE INSTRUÇÕES (MATRÍCULA HELP) - DESIGN SUTIL        === */
/* =================================================================== */

.instruction-card {
    background-color: #f8faff; /* Fundo azul quase imperceptível */
    border: 1px solid rgba(0, 65, 155, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-3px);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: rgba(0, 65, 155, 0.1);
}

/* Círculo do Ícone */
.icon-instruction {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid #f0f4f8;
}

.instruction-card:hover .icon-instruction {
    color: var(--secondary-color);
    border-color: var(--gold-color); /* Toque de dourado no hover */
}

/* Ajustes finos no Accordion para ficar "invisível" */
.accordion-button::after {
    transform: scale(0.8); /* Seta menor */
    opacity: 0.5;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background: transparent !important;
    box-shadow: none !important;
}






/* Atalho sutil para Ferramentas Musicais */
.btn-tools-shortcut {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 25px 8px 10px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 41, 155, 0.12);
    border: 1px solid rgba(0, 65, 155, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-tools-shortcut:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 41, 155, 0.18);
    background-color: #f8fbff;
}

.shortcut-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(83, 158, 213, 0.3);
}

.shortcut-text {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

.shortcut-text small {
    font-weight: 500;
    color: var(--gray-text);
    margin-left: 5px;
    display: inline-block;
}

/* Ajuste Mobile */
@media (max-width: 575.98px) {
    .shortcut-text small {
        display: none; /* Esconde o texto menor em telas muito pequenas */
    }
    .btn-tools-shortcut {
        padding: 6px 15px 6px 8px;
    }
}


.bpm-pulse {
    transform: scale(1.15); /* Aumenta 15% */
    color: var(--gold-color) !important; /* Muda para o azul escuro do seu tema */
    text-shadow: 0 0 15px rgba(0, 65, 155, 0.3);
    transition: transform 0.05s ease-out; /* Transição ultra rápida */
}

#bpm-display {
    transition: all 0.1s ease-in; /* Volta ao normal suavemente */
    display: inline-block; /* Necessário para o scale funcionar bem */
}