/* --- HELP SYSTEM STYLES --- */

/* Help Circle Button */
.help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    color: var(--primary-color, #272A8B);
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.help-trigger:focus,
.help-trigger:active {
    outline: none;
}

.help-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    position: relative;
}

/* Garantir que o card seja o pai relativo */

.help-trigger:hover {
    transform: scale(1.15);
    background: var(--primary-color, #272A8B);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Overlay do Modal de Ajuda */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-modal.show {
    display: flex;
    opacity: 1;
}

/* Caixa Flutuante Modal */
.help-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
}

.help-modal.show .help-modal-content {
    transform: translateY(0);
}

/* Botão Fechar Modal (X) */
.help-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.help-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Modal Help Content */
.help-modal-body {
    line-height: 1.6;
    color: #1e293b;
}

.help-title {
    color: var(--primary-color, #272A8B);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color, #E6007E);
    padding-bottom: 0.5rem;
}

.help-intro {
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #475569;
}

.help-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color, #E6007E);
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 700;
}

.help-detail-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #e2e8f0;
}

.help-detail-label {
    font-weight: 600;
    display: block;
    color: #0f172a;
}

.help-tip-box {
    margin-top: 2rem;
    background: #fdf2f8;
    border: 1px dashed var(--accent-color, #E6007E);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.help-tip-box svg {
    color: var(--accent-color, #E6007E);
    flex-shrink: 0;
}

/* Animations */
@keyframes helpExplode {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.help-explosion-active {
    animation: helpExplode 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}