﻿/* ═══════════════════════════════════════
   Módulo: Privacidade do Perfil
   ═══════════════════════════════════════ */

.priv-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    font-family: 'Inter', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
}

/* ── Cabeçalhos ── */
.priv-header {
    margin-bottom: 32px;
}

.priv-main-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.priv-main-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.priv-section-header {
    margin-bottom: 12px;
}

    .priv-section-header h3 {
        font-size: 12px;
        font-weight: 700;
        color: #4b5563;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

/* ── Cards e Listas ── */
.priv-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.priv-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

    .priv-list-item:last-child {
        border-bottom: none;
    }

.priv-clickable {
    cursor: pointer;
}

    .priv-clickable:hover {
        background-color: #f9fafb;
    }

/* ── Elementos da Lista ── */
.priv-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.priv-icon-box {
    width: 40px;
    height: 40px;
    background-color: #f0f9ff;
    color: #111827; /* Ícone preto conforme Figma */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.priv-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.priv-label-main {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.priv-label-sub {
    font-size: 13px;
    color: #6b7280;
}

.priv-chevron {
    color: #111827; /* Seta preta conforme Figma */
    font-size: 14px;
}

/* ── Toggle Switch (Interruptores) ── */
.priv-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .priv-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.priv-slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 24px;
}

    .priv-slider-toggle:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

.priv-toggle input:checked + .priv-slider-toggle {
    background-color: #111827; /* Preto */
}

    .priv-toggle input:checked + .priv-slider-toggle:before {
        transform: translateX(20px);
    }

/* ── Danger Zone (Excluir Conta) ── */
.priv-danger-card {
    padding: 24px;
}

.priv-danger-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.priv-danger-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.priv-danger-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.priv-btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

    .priv-btn-danger:hover {
        background-color: #b91c1c;
    }

/* ── Modal Overlay (Confirmar Exclusão) ── */
.priv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.priv-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.2s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.priv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

    .priv-modal-header h4 {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

.priv-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
}

    .priv-modal-close:hover {
        color: #111827;
    }

.priv-modal-body {
    padding: 32px 24px;
    text-align: center;
}

.priv-warning-icon {
    width: 56px;
    height: 56px;
    background-color: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
}

.priv-modal-text {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.priv-modal-text-strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.priv-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
}

.priv-btn-outline {
    flex: 1;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

    .priv-btn-outline:hover {
        background: #f3f4f6;
    }

.priv-btn-danger-solid {
    flex: 1;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

    .priv-btn-danger-solid:hover {
        background: #b91c1c;
    }

/* ── Fullscreen Views (Verificação e Sucesso) ── */
.priv-fullscreen-view {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.priv-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
}

.priv-btn-back {
    background: none;
    border: none;
    color: #111827; /* Seta preta conforme Figma */
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .priv-btn-back:hover {
        color: #374151;
    }

.invisible {
    visibility: hidden;
}

.priv-flow-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.priv-verify-content, .priv-success-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Ícones centrais ajustados conforme Figma */
.priv-verify-icon, .priv-success-icon {
    font-size: 32px;
    color: #111827; /* Ícone preto */
    background-color: #e0f2fe; /* Azul clarinho */
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
}

.priv-verify-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.priv-verify-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.priv-form-group {
    text-align: left;
    margin-bottom: 24px;
}

.priv-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
}

.priv-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.priv-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .priv-input:focus {
        border-color: #0ea5e9;
    }

.priv-btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

    .priv-btn-toggle-pwd:hover {
        color: #374151;
    }

.priv-btn-danger-large {
    width: 100%;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .priv-btn-danger-large:hover:not(:disabled) {
        background-color: #b91c1c;
    }

    .priv-btn-danger-large:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.priv-btn-primary-large {
    width: 100%;
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .priv-btn-primary-large:hover {
        background-color: #0284c7;
    }

/* ── Responsivo Geral ── */
@media (max-width: 600px) {
    .priv-container {
        padding: 24px 16px 48px;
    }

    .priv-list-item {
        padding: 16px;
    }
}
