.phish-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #00bcd4;
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header h1 span {
    font-size: 0.4em;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

header p {
    color: #aaa;
    font-size: 1.1em;
}

.input-area {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    border: 1px solid #333;
}

.input-area label {
    display: block;
    margin-bottom: 10px;
    color: #00bcd4;
    font-weight: bold;
    font-size: 1.1em;
}

.input-area textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: #222;
    border: 2px solid #444;
    border-radius: 8px;
    color: #eee;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-area textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.advanced-toggle {
    margin-bottom: 15px;
}

#btnHeaders {
    background: none;
    border: none;
    color: #00bcd4;
    cursor: pointer;
    font-size: 0.9em;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

#btnHeaders:hover {
    color: #00e0ff;
}

#emailHeaders {
    margin-top: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    background: #111;
    color: #ccc;
    border: 1px solid #444;
}

.btn-outline-secondary {
    background: #222;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-outline-secondary:hover {
    background: #00bcd4;
    color: #000;
    transform: translateY(-1px);
}

#btnAnalisar {
    background: #00bcd4;
    border: none;
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    width: 100%;
}

#btnAnalisar:hover:not(:disabled) {
    background: #00e0ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,188,212,0.4);
}

#btnAnalisar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.result-panel {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 5px solid #00bcd4;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    color: #e0e0e0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* =========================================
   CARD MODERNO - ÚNICO CÍRCULO DA APLICAÇÃO
========================================= */
.risk-modern-card {
    display: inline-block;
    text-align: center;
}

.risk-gradient-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        #dc2626 0deg,
        #f59e0b 180deg,
        #10b981 360deg
    );
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.risk-gradient-circle::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.risk-percentage {
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1;
    white-space: nowrap;
}

.risk-label .badge {
    font-size: 14px;
    padding: 6px 12px;
    background: #333;
    color: white;
    border-radius: 20px;
}

/* Cores do badge baseadas no nível de risco */
.risk-label .badge.seguro { background: #10b981; }
.risk-label .badge.suspeito { background: #f59e0b; }
.risk-label .badge.perigoso { background: #dc2626; }

.veredito-text h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.5em;
}

.status-seguro    { color: #10b981 !important; font-weight: bold; font-size: 1.3em; }
.status-suspeito  { color: #f59e0b   !important; font-weight: bold; font-size: 1.3em; }
.status-perigoso  { color: #dc2626   !important; font-weight: bold; font-size: 1.3em; }

#recomendacao {
    color: #ddd;
    line-height: 1.6;
    font-size: 1.1em;
    margin: 10px 0 0 0;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
}

.details {
    border-top: 1px solid #444;
    padding-top: 25px;
}

.details h4 {
    color: #00bcd4;
    margin-bottom: 20px;
    font-size: 1.2em;
}

#listaMotivos {
    list-style: none;
    padding: 0;
    margin: 0;
}

#listaMotivos li {
    background: #222;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-left: 5px solid #00bcd4;
    color: #f0f0f0;
    border-radius: 0 10px 10px 0;
    font-size: 1em;
    transition: all 0.2s;
}

#listaMotivos li:hover {
    transform: translateX(4px);
    background: #2a2a2a;
}

/* =========================================
   PAINÉIS DE AUTENTICAÇÃO E ORIGEM (UX/UI)
========================================= */
/* Remove o fundo branco padrão do Bootstrap */
.detalhes-adicionais .card {
    background-color: transparent !important;
    border: none !important;
}

/* Sublinhado tecnológico nos títulos */
.detalhes-adicionais h4 {
    color: #00bcd4;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Caixas de SPF, DKIM e DMARC */
.auth-item {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.auth-item:hover {
    border-color: #00bcd4;
    background: #2a2a2a;
    transform: translateX(4px);
}

.auth-label {
    color: #aaa;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Caixa de Informações do Remetente */
.origem-box {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 18px;
    height: 100%; /* Mantém a altura igual à da autenticação */
    transition: all 0.3s ease;
}

.origem-box:hover {
    border-color: #00bcd4;
    background: #2a2a2a;
}

.origem-box div {
    margin-bottom: 12px;
    font-size: 0.95em;
    color: #ffffff;
    word-break: break-all;
}

.origem-box div:last-child {
    margin-bottom: 0;
}

.origem-box strong {
    color: #00bcd4; /* Azul do site para as etiquetas */
    display: inline-block;
    width: 75px;
}

/* Lista de URLs no padrão escuro */
.detalhes-adicionais .list-group-item {
    background-color: #222 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
    transition: background 0.2s;
}

.detalhes-adicionais .list-group-item:hover {
    background-color: #2a2a2a !important;
}

.auth-label {
    color: #aaa;
}

.auth-value {
    color: #ffffff;
    font-weight: bold;
}

.badge-success    { background: #10b981; color: #000; }
.badge-danger     { background: #dc2626; color: #fff; }
.badge-warning    { background: #f59e0b; color: #000; }
.badge-secondary  { background: #4b5563; color: #fff; }

/* Mantém as cores de alerta vivas */
.text-danger, .bi-exclamation-triangle-fill { color: #ff4d4d !important; }
.text-warning                                { color: #fbbf24 !important; }
.text-success, .bi-check-circle              { color: #34d399 !important; }
.text-primary                                { color: #00bcd4   !important; }

/* Adição para quebrar linhas longas (URLs, etc.) */
.result-panel p, .result-panel div, .result-panel li, .urls-details, .urls-details * {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* =========================================
   GERADOR DE PDF NATIVO (ENTERPRISE)
========================================= */
@media print {
    /* 1. Esconde APENAS o topo, a área de submissão e os botões */
    header, 
    nav, 
    footer, 
    .input-area, 
    button {
        display: none !important;
    }

    /* Bloqueia qualquer resquício do popup de tentar sair no PDF */
    .swal2-container {
        display: none !important;
    }

    /* Impede que o navegador corte o site caso haja barras de scroll ativas */
    html, body {
        overflow: visible !important;
        height: auto !important;
    }

    /* 2. Remove as margens laterais para a folha A4 ser 100% do Relatório */
    body, .phish-container, .container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 3. Força o navegador a imprimir o Dark Mode */
    body {
        background-color: #1a1a1a !important;
        color: #e0e0e0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 4. Garante que o Painel se expande na folha */
    #resultPanel {
        display: block !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    /* 5. Mantém as cores Premium dos painéis internos */
    .card, .auth-item, .origem-box, .list-group-item, .sandbox-container {
        background-color: #222 !important;
        border: 1px solid #444 !important;
        color: #eee !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 6. A REGRA DE OURO: Evita o corte das caixas a meio da página */
    .card, .row, .auth-item, .origem-box, .sandbox-container, .list-group-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* 7. Ajustes das Etiquetas (Badges) */
    .badge.bg-success { background-color: #198754 !important; color: white !important; border: 1px solid #198754 !important; }
    .badge.bg-danger { background-color: #dc3545 !important; color: white !important; border: 1px solid #dc3545 !important; }
}
