/* ═══════════════════════════════════════════════════
   FOLHAS DO HÁBITO — Bem-Estar (C1 Fase 3)
   ═══════════════════════════════════════════════════ */

.wellbeing-card {
    margin: 16px 0;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(74,222,128,0.04), rgba(74,222,128,0.01));
    border: 1px solid rgba(74,222,128,0.12);
    transition: all 0.3s ease;
}

.wellbeing-card.mood-bem {
    background: linear-gradient(135deg, rgba(74,222,128,0.06), rgba(74,222,128,0.02));
    border-color: rgba(74,222,128,0.2);
}
.wellbeing-card.mood-cansado {
    background: linear-gradient(135deg, rgba(251,191,36,0.05), rgba(251,191,36,0.02));
    border-color: rgba(251,191,36,0.2);
}
.wellbeing-card.mood-mal {
    background: linear-gradient(135deg, rgba(168,130,255,0.06), rgba(168,130,255,0.02));
    border-color: rgba(168,130,255,0.25);
    box-shadow: 0 0 20px rgba(168,130,255,0.05);
}

/* ── Estado inicial: pergunta ── */
.wellbeing-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.wellbeing-question {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    flex: 1;
    min-width: 180px;
}
.wellbeing-mood-buttons {
    display: flex;
    gap: 8px;
}
.wellbeing-mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}
.wellbeing-mood-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}
.wb-emoji {
    font-size: 1.5rem;
    line-height: 1;
}
.wb-label {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Form expandido pra "mal" ── */
.wellbeing-mal-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(168,130,255,0.15);
}
.wellbeing-mal-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: #d8b4fe;
    margin-bottom: 4px;
}
.wellbeing-mal-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.wellbeing-radar-select {
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(168,130,255,0.3);
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a78bfa' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.wellbeing-radar-select option {
    background: #1a1a26;
    color: #fff;
    padding: 8px;
}
.wellbeing-radar-select:focus {
    outline: none;
    border-color: rgba(168,130,255,0.5);
    box-shadow: 0 0 0 3px rgba(168,130,255,0.1);
}
.wellbeing-note {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}
.wellbeing-note::placeholder {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}
.wellbeing-mal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.wellbeing-mal-cancel,
.wellbeing-mal-confirm {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}
.wellbeing-mal-cancel {
    background: transparent;
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
}
.wellbeing-mal-cancel:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
}
.wellbeing-mal-confirm {
    background: rgba(168,130,255,0.15);
    border-color: rgba(168,130,255,0.4);
    color: #d8b4fe;
}
.wellbeing-mal-confirm:hover {
    background: rgba(168,130,255,0.25);
    border-color: rgba(168,130,255,0.6);
    color: #fff;
}

/* ── Estado pós-checkin ── */
.wellbeing-done {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}
.wellbeing-done-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.wellbeing-done-content {
    flex: 1;
}
.wellbeing-done-title {
    font-family: 'Lora', serif;
    font-size: 1.02rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}
.wellbeing-done-sub {
    font-size: 0.82rem;
    color: #d8b4fe;
    margin-bottom: 6px;
}
.wellbeing-done-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 2px solid rgba(255,255,255,0.15);
    margin-top: 6px;
}
.wellbeing-done-clear {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s ease;
    line-height: 1;
}
.wellbeing-done-clear:hover {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 640px) {
    .wellbeing-prompt {
        flex-direction: column;
        align-items: stretch;
    }
    .wellbeing-mood-buttons {
        justify-content: space-between;
    }
    .wellbeing-mood-btn {
        flex: 1;
    }
}
