/* ============================================
   TESTE DE WEBHOOK - ESTILOS
   ============================================ */

/* ======= VARIÁVEIS ESPECÍFICAS ======= */
:root {
--webhook-bg-primary:#f8f9fa;
--webhook-bg-secondary:#ffffff;
--webhook-bg-tertiary:#e9ecef;
--webhook-border-primary:#e1e8ed;
--webhook-border-secondary:#dee2e6;
--webhook-border-tertiary:#e9ecef;
--webhook-text-primary:#2c3e50;
--webhook-text-secondary:#495057;
--webhook-text-tertiary:#6c757d;
--webhook-focus-color:#3498db;
--webhook-focus-shadow:rgba(52,152,219,0.1);
--webhook-hover-bg:rgba(52,152,219,0.05);
--webhook-success-bg:#d4edda;
--webhook-success-text:#155724;
--webhook-success-border:#c3e6cb;
--webhook-error-bg:#f8d7da;
--webhook-error-text:#721c24;
--webhook-error-border:#f5c6cb;
--webhook-warning-bg:#fff3cd;
--webhook-warning-text:#856404;
--webhook-warning-border:#ffeaa7;
--webhook-btn-primary-start:#10b981;
--webhook-btn-primary-end:#059669;
--webhook-btn-secondary-start:#95a5a6;
--webhook-btn-secondary-end:#7f8c8d;
--webhook-btn-danger-start:#e74c3c;
--webhook-btn-danger-end:#c0392b;
--webhook-btn-success-start:#27ae60;
--webhook-btn-success-end:#219a52;
--webhook-btn-info-start:#3b82f6;
--webhook-btn-info-end:#1e40af;
--webhook-btn-gray-start:#6c757d;
--webhook-btn-gray-end:#5a6268;
--webhook-security-bg-start:#e8f5e8;
--webhook-security-bg-end:#d4edda;
--webhook-security-border:#c3e6cb;
--webhook-security-text:#155724;
--webhook-security-icon:#28a745;
}
[data-theme="dark"] {
--webhook-bg-primary:#1e1e1e;
--webhook-bg-secondary:#2d2d2d;
--webhook-bg-tertiary:#3a3a3a;
--webhook-border-primary:#404040;
--webhook-border-secondary:#4a4a4a;
--webhook-border-tertiary:#505050;
--webhook-text-primary:#e9ecef;
--webhook-text-secondary:#d1d5db;
--webhook-text-tertiary:#adb5bd;
--webhook-focus-color:#5dade2;
--webhook-focus-shadow:rgba(93,173,226,0.2);
--webhook-hover-bg:rgba(93,173,226,0.1);
--webhook-success-bg:#1e4620;
--webhook-success-text:#7dcea0;
--webhook-success-border:#2d5a2e;
--webhook-error-bg:#4a1c1c;
--webhook-error-text:#f1948a;
--webhook-error-border:#6e2c2c;
--webhook-warning-bg:#4d3c1a;
--webhook-warning-text:#f9e79f;
--webhook-warning-border:#6b5420;
--webhook-security-bg-start:#1e4620;
--webhook-security-bg-end:#2d5a2e;
--webhook-security-border:#3d6e3f;
--webhook-security-text:#7dcea0;
--webhook-security-icon:#52be80;
}
/* ======= CONTAINER PRINCIPAL ======= */
.teste-webhook-container{max-width:900px;margin:0 auto;padding:30px 20px;background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-secondary) 100%);border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,0.1);overflow:hidden;}
[data-theme="dark"] .teste-webhook-container{box-shadow:0 8px 32px rgba(0,0,0,0.4);}
.webhook-form-group{margin-bottom:25px;}
.webhook-form-group label{font-weight:600;color:var(--webhook-text-primary);font-size:14px;text-transform:uppercase;letter-spacing:0.5px;}
.webhook-input-group{display:flex;gap:12px;margin-bottom:20px;align-items:stretch;}
.teste-webhook-container input[type="text"],.teste-webhook-container input[type="url"],.teste-webhook-container input[type="password"]{flex:1;padding:14px 16px;border:2px solid var(--webhook-border-primary);border-radius:8px;font-size:16px;transition:all 0.3s ease;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);}
.teste-webhook-container input[type="text"]:focus,.teste-webhook-container input[type="url"]:focus,.teste-webhook-container input[type="password"]:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);transform:translateY(-1px);}
.teste-webhook-container select{padding:14px 16px;border:2px solid var(--webhook-border-primary);border-radius:8px;font-size:16px;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);cursor:pointer;transition:all 0.3s ease;min-width:120px;}
.teste-webhook-container select:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);}
.teste-webhook-container textarea{width:100%;padding:14px 16px;border:2px solid var(--webhook-border-primary);border-radius:8px;font-size:14px;font-family:'Courier New',monospace;resize:vertical;min-height:100px;transition:all 0.3s ease;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);}
.teste-webhook-container textarea:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);}
.webhook-actions{display:flex;gap:12px;margin:25px 0;flex-wrap:wrap;}
.teste-webhook-container button{padding:14px 24px;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all 0.3s ease;text-transform:uppercase;letter-spacing:0.5px;display:inline-flex;align-items:center;gap:8px;}
.teste-webhook-container button svg{flex-shrink:0;}
.btn-primary{background:linear-gradient(135deg,var(--webhook-btn-primary-start) 0%,var(--webhook-btn-primary-end) 100%);color:white;box-shadow:0 4px 15px rgba(16,185,129,0.3);}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(16,185,129,0.4);}
.btn-secondary{background:linear-gradient(135deg,var(--webhook-btn-secondary-start) 0%,var(--webhook-btn-secondary-end) 100%);color:white;box-shadow:0 4px 15px rgba(149,165,166,0.3);}
.btn-secondary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(149,165,166,0.4);}
.btn-limpar-historico-webhook{background:var(--medium-gray);color:var(--white);border:none;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-sm);cursor:pointer;transition:all var(--transition-fast);font-weight:500;display:none;}
.btn-limpar-historico-webhook.show{display:inline-block;}
.btn-limpar-historico-webhook:hover{background:var(--dark-gray);transform:translateY(-1px);}
.btn-toggle-headers{background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-tertiary) 100%);color:var(--webhook-text-secondary);border:2px solid var(--webhook-border-secondary);padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s ease;display:none;align-items:center;gap:8px;text-transform:none;letter-spacing:normal;}
.btn-toggle-headers:hover{background:linear-gradient(135deg,var(--webhook-bg-tertiary) 0%,var(--webhook-border-secondary) 100%);border-color:var(--webhook-text-tertiary);transform:translateY(-1px);}
.btn-toggle-headers svg{transition:transform 0.3s ease;}
.btn-toggle-headers.active svg{transform:rotate(45deg);}
.json-input-mode{display:flex;gap:8px;margin-bottom:20px;align-items:center;justify-content:center;background:var(--webhook-bg-primary);padding:6px;border-radius:12px;border:2px solid var(--webhook-border-tertiary);}
.json-mode-btn{padding:10px 20px;border:none;background:transparent;color:var(--webhook-text-tertiary);border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);text-transform:none;letter-spacing:normal;position:relative;overflow:hidden;flex:1;text-align:center;}
.json-mode-btn::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--webhook-focus-shadow),transparent);transition:left 0.5s ease;}
.json-mode-btn:hover::before{left:100%;}
.json-mode-btn.active{background:linear-gradient(135deg,#3498db 0%,#2980b9 100%);color:white;box-shadow:0 3px 10px rgba(52,152,219,0.3);transform:scale(1.02);}
.json-mode-btn:hover:not(.active){background:var(--webhook-hover-bg);color:var(--webhook-focus-color);transform:scale(1.02);}
.json-mode-btn:active{transform:scale(0.98);transition:transform 0.1s ease;}
.json-builder{display:none;border:2px solid var(--webhook-border-primary);border-radius:12px;background:linear-gradient(135deg,var(--webhook-bg-secondary) 0%,var(--webhook-bg-primary) 100%);padding:24px;box-shadow:0 4px 16px rgba(0,0,0,0.08);transition:all 0.3s ease;}
[data-theme="dark"] .json-builder{box-shadow:0 4px 16px rgba(0,0,0,0.3);}
.json-builder.active{display:block;}
.json-pair{display:flex;gap:12px;margin-bottom:16px;align-items:stretch;background:var(--webhook-bg-secondary);padding:16px;border-radius:10px;border:1px solid var(--webhook-border-tertiary);box-shadow:0 2px 8px rgba(0,0,0,0.04);transition:all 0.3s ease;position:relative;}
[data-theme="dark"] .json-pair{box-shadow:0 2px 8px rgba(0,0,0,0.2);}
.json-pair:hover{border-color:var(--webhook-focus-color);box-shadow:0 3px 12px rgba(52,152,219,0.12);transform:translateY(-1px);}
[data-theme="dark"] .json-pair:hover{box-shadow:0 3px 12px rgba(93,173,226,0.2);}
.json-pair input{flex:1;padding:12px 16px;border:2px solid var(--webhook-border-tertiary);border-radius:8px;font-size:14px;transition:all 0.3s ease;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);}
.json-pair input:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);}
.json-pair input.duplicate-key{border-color:#e74c3c !important;background:linear-gradient(135deg,#fdf2f2 0%,#fce4e4 100%) !important;box-shadow:0 0 0 3px rgba(231,76,60,0.1) !important;}
[data-theme="dark"] .json-pair input.duplicate-key{background:linear-gradient(135deg,#4a1c1c 0%,#5a2424 100%) !important;}
.json-pair input.duplicate-key:focus{border-color:#c0392b !important;box-shadow:0 0 0 3px rgba(231,76,60,0.2) !important;}
.json-pair select.json-type{flex:0 0 130px;padding:12px 12px;border:2px solid var(--webhook-border-tertiary);border-radius:8px;font-size:13px;background:var(--webhook-bg-primary);color:var(--webhook-text-primary);cursor:pointer;transition:all 0.3s ease;font-weight:600;}
.json-pair select.json-type:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);}
.json-pair input[placeholder*="Chave"]{flex:0.8;font-weight:600;background:linear-gradient(135deg,var(--webhook-bg-secondary) 0%,var(--webhook-bg-primary) 100%);}
.json-pair input[placeholder*="Valor"]{flex:1.2;}
.json-pair-remove{padding:10px;background:linear-gradient(135deg,var(--webhook-btn-danger-start) 0%,var(--webhook-btn-danger-end) 100%);color:white;border:none;border-radius:8px;cursor:pointer;transition:all 0.3s ease;flex-shrink:0;font-weight:600;box-shadow:0 2px 6px rgba(231,76,60,0.3);display:flex;align-items:center;justify-content:center;min-width:40px;}
.json-pair-remove:hover{background:linear-gradient(135deg,var(--webhook-btn-danger-end) 0%,#a93226 100%);transform:translateY(-1px);box-shadow:0 3px 8px rgba(231,76,60,0.4);}
.json-builder-actions{display:flex;gap:12px;margin-top:20px;align-items:center;justify-content:center;padding-top:16px;border-top:1px solid var(--webhook-border-tertiary);}
.json-add-pair{padding:12px 24px;background:linear-gradient(135deg,var(--webhook-btn-success-start) 0%,var(--webhook-btn-success-end) 100%);color:white;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.3s ease;display:flex;align-items:center;gap:8px;box-shadow:0 3px 10px rgba(39,174,96,0.3);text-transform:uppercase;letter-spacing:0.5px;}
.json-add-pair:hover{background:linear-gradient(135deg,var(--webhook-btn-success-end) 0%,#1e8449 100%);transform:translateY(-2px);box-shadow:0 4px 12px rgba(39,174,96,0.4);}
.json-preview{margin-top:20px;padding:16px;background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-tertiary) 100%);border:2px solid var(--webhook-border-secondary);border-radius:10px;font-family:'Courier New',monospace;font-size:13px;color:var(--webhook-text-secondary);max-height:200px;overflow-y:auto;white-space:pre-wrap;box-shadow:0 2px 8px rgba(0,0,0,0.04);}
[data-theme="dark"] .json-preview{box-shadow:0 2px 8px rgba(0,0,0,0.2);}
/* ======= RESPOSTA DO WEBHOOK ======= */
.teste-webhook-resposta{margin-top:30px;padding:0;background:var(--webhook-bg-secondary);border:2px solid var(--webhook-border-tertiary);border-radius:12px;font-family:'Courier New',monospace;font-size:14px;line-height:1.6;word-break:break-word;position:relative;overflow:hidden;}
.webhook-response-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;margin:0;background:var(--webhook-bg-primary);border-bottom:1px solid var(--webhook-border-secondary);}
.webhook-status-badge{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;line-height:1.4;word-break:break-word;max-width:none;}
.webhook-status-success{background:var(--webhook-success-bg);color:var(--webhook-success-text);border:1px solid var(--webhook-success-border);}
.webhook-status-error{background:var(--webhook-error-bg);color:var(--webhook-error-text);border:1px solid var(--webhook-error-border);}
.webhook-response-time{font-size:13px;color:var(--webhook-text-secondary);font-weight:600;display:flex;align-items:center;gap:4px;}
.webhook-method-info{padding:12px 20px;margin:0;background:var(--webhook-bg-tertiary);border-bottom:1px solid var(--webhook-border-secondary);font-size:12px;color:var(--webhook-text-secondary);display:flex;gap:20px;flex-wrap:wrap;}
.webhook-method-item{display:flex;align-items:center;gap:4px;}
.webhook-method-label{font-weight:600;color:var(--webhook-text-primary);}
.webhook-response-content{padding:20px;margin:0;background:var(--webhook-bg-secondary);font-family:'Courier New',monospace;font-size:13px;line-height:1.6;color:var(--webhook-text-primary);white-space:pre-wrap;word-wrap:break-word;overflow-x:auto;border:none;border-radius:0;}
.webhook-error-content{padding:20px;margin:0;background:var(--webhook-error-bg);color:var(--webhook-error-text);border-radius:0;}
.webhook-error-title{font-weight:700;margin-bottom:8px;color:var(--webhook-error-text);}
.webhook-error-tip{margin-top:15px;padding:12px;background:var(--webhook-warning-bg);border:1px solid var(--webhook-warning-border);border-radius:6px;color:var(--webhook-warning-text);font-size:12px;}
.response-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid var(--webhook-border-secondary);}
.status-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;}
.status-success{background:var(--webhook-success-bg);color:var(--webhook-success-text);}
.status-error{background:var(--webhook-error-bg);color:var(--webhook-error-text);}
.response-time{font-size:12px;color:var(--webhook-text-tertiary);font-weight:600;}
.teste-webhook-historico{margin-top:var(--spacing-xl);padding:var(--spacing-lg);background:var(--light-gray);border-radius:var(--border-radius-md);display:none;}
.teste-webhook-historico.show{display:block;}
.teste-webhook-historico h3{margin:0 0 var(--spacing-md) 0;color:var(--dark-gray);font-size:1.3rem;font-weight:700;display:flex;align-items:center;gap:10px;}
#webhook-historico-lista{list-style:none;padding:0;margin:0 0 var(--spacing-md) 0;}
.history-item{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-sm) var(--spacing-md);margin-bottom:var(--spacing-xs);background:var(--white);border-radius:var(--border-radius-sm);cursor:pointer;transition:all var(--transition-fast);border:1px solid transparent;}
.history-item:hover{border-color:var(--primary-green);transform:translateX(5px);}
.history-item-content{flex:1;}
.history-item-content:hover{background:var(--webhook-hover-bg);border-radius:6px;padding:8px;margin:-8px;transition:all 0.2s ease;}
.history-item-url{font-weight:600;color:var(--dark-gray);margin-bottom:2px;font-size:0.9rem;word-break:break-all;}
.history-item-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:4px;font-size:0.9rem;color:var(--medium-gray);word-break:break-word;}
.history-item-details{font-size:0.8rem;color:var(--medium-gray);}
.btn-excluir-webhook{background:var(--danger)!important;color:var(--white)!important;border:none!important;padding:4px 8px!important;border-radius:var(--border-radius-sm)!important;font-size:0.8rem!important;cursor:pointer;transition:all var(--transition-fast);font-weight:400!important;line-height:1.2!important;}
.btn-excluir-webhook:hover{background:#c82333!important;transform:scale(1.05);padding:4px 8px!important;font-size:0.8rem!important;}
.empty-state{text-align:center;padding:40px 20px;color:var(--medium-gray);font-style:italic;}
.loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;color:var(--webhook-text-tertiary);}
.spinner{width:20px;height:20px;border:2px solid var(--webhook-border-tertiary);border-top:2px solid var(--webhook-focus-color);border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
.btn-paste{background:linear-gradient(135deg,var(--webhook-btn-info-start) 0%,var(--webhook-btn-info-end) 100%);color:white;border:none;border-radius:8px;padding:12px 16px;cursor:pointer;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);font-size:0.9rem;font-weight:500;display:flex;align-items:center;gap:8px;white-space:nowrap;box-shadow:0 4px 12px rgba(59,130,246,0.2);position:relative;overflow:hidden;}
.btn-paste::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);transition:left 0.5s ease;}
.btn-paste:hover::before{left:100%;}
.btn-paste:hover{background:linear-gradient(135deg,var(--webhook-btn-info-end) 0%,#1e3a8a 100%);transform:translateY(-2px);box-shadow:0 8px 24px rgba(59,130,246,0.3);}
.btn-paste:active{transform:translateY(0);transition:transform 0.1s ease;}
.webhook-response-actions{padding:12px 20px;background:var(--webhook-bg-primary);border-bottom:1px solid var(--webhook-border-secondary);display:flex;justify-content:flex-end;}
.btn-copy-response{background:linear-gradient(135deg,var(--webhook-btn-gray-start) 0%,var(--webhook-btn-gray-end) 100%);color:white;border:none;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s ease;display:flex;align-items:center;gap:6px;box-shadow:0 2px 6px rgba(108,117,125,0.3);}
.btn-copy-response:hover{background:linear-gradient(135deg,var(--webhook-btn-gray-end) 0%,#495057 100%);transform:translateY(-1px);box-shadow:0 3px 8px rgba(108,117,125,0.4);}
.security-badge{display:flex;align-items:center;gap:10px;padding:12px 20px;margin-top:20px;background:linear-gradient(135deg,var(--webhook-security-bg-start) 0%,var(--webhook-security-bg-end) 100%);border:2px solid var(--webhook-security-border);border-radius:12px;color:var(--webhook-security-text);font-size:14px;font-weight:500;box-shadow:0 2px 8px rgba(21,87,36,0.1);}
[data-theme="dark"] .security-badge{box-shadow:0 2px 8px rgba(82,190,128,0.2);}
.security-badge svg{color:var(--webhook-security-icon);flex-shrink:0;}
.auth-checkbox-container{margin-bottom:10px;display:flex;gap:12px;align-items:stretch;flex-wrap:nowrap;}
.auth-checkbox-label{display:flex;align-items:center;gap:10px;cursor:pointer;padding:12px 16px;background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-tertiary) 100%);border:2px solid var(--webhook-border-secondary);border-radius:8px;transition:all 0.3s ease;font-weight:600;color:var(--webhook-text-secondary);user-select:none;flex:1;white-space:nowrap;}
.auth-checkbox-label:hover{background:linear-gradient(135deg,var(--webhook-bg-tertiary) 0%,var(--webhook-border-secondary) 100%);border-color:var(--webhook-text-tertiary);transform:translateY(-1px);}
.auth-checkbox-label input[type="checkbox"]{width:18px;height:18px;margin:0;cursor:pointer;accent-color:var(--webhook-focus-color);}
.auth-checkbox-text{font-size:14px;text-transform:uppercase;letter-spacing:0.5px;}
#auth-type-group{flex:1;display:flex;align-items:center;}
#auth-type-group label{display:none;}
#auth-type{width:100%;padding:12px 16px;border:2px solid var(--webhook-border-secondary);border-radius:8px;font-size:14px;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);cursor:pointer;transition:all 0.3s ease;margin:0;}
#auth-type:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 3px var(--webhook-focus-shadow);}
.auth-section{background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-secondary) 100%);border:2px solid var(--webhook-border-tertiary);border-radius:12px;padding:20px;margin-top:8px;transition:all 0.3s ease;}
.auth-section:hover{border-color:var(--webhook-focus-color);box-shadow:0 2px 12px var(--webhook-focus-shadow);}
.auth-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:0;}
.auth-toggle{display:flex;align-items:center;gap:12px;cursor:pointer;font-weight:600;color:var(--webhook-text-secondary);user-select:none;margin:0;}
.auth-toggle input[type="checkbox"]{width:18px;height:18px;margin:0;cursor:pointer;}
.auth-label{font-size:14px;color:var(--webhook-text-secondary);font-weight:600;}
.auth-type-selector{flex:1;max-width:200px;}
.auth-type-selector select{width:100%;padding:8px 12px;border:1px solid var(--webhook-border-secondary);border-radius:6px;font-size:13px;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);cursor:pointer;transition:all 0.3s ease;}
.auth-type-selector select:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 2px var(--webhook-focus-shadow);}
.auth-content{margin-top:16px;}
.auth-content .webhook-form-group{margin-bottom:0;}
.auth-content .webhook-form-group label{margin-bottom:8px;font-size:13px;color:var(--webhook-text-tertiary);font-weight:600;}
.auth-content textarea{border:1px solid var(--webhook-border-secondary);border-radius:8px;padding:12px;font-size:13px;font-family:'Courier New',monospace;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);transition:all 0.3s ease;}
.auth-content textarea:focus{border-color:var(--webhook-focus-color);box-shadow:0 0 0 2px var(--webhook-focus-shadow);}
.auth-easy-mode{display:none;background:var(--webhook-bg-secondary);border:1px solid var(--webhook-border-tertiary);border-radius:8px;padding:16px;margin-top:8px;}
.auth-easy-mode.active{display:block;}
.auth-easy-fields{display:none;background:var(--webhook-bg-primary);border:1px solid var(--webhook-border-tertiary);border-radius:6px;padding:12px;margin-top:8px;}
.auth-easy-fields.active{display:block;}
.auth-field{margin-bottom:12px;}
.auth-field:last-child{margin-bottom:0;}
.auth-field label{display:block;margin-bottom:4px;font-size:12px;color:var(--webhook-text-tertiary);font-weight:600;}
.auth-field input{width:100%;padding:8px 12px;border:1px solid var(--webhook-border-secondary);border-radius:4px;font-size:13px;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);transition:all 0.3s ease;}
.auth-field input:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 2px var(--webhook-focus-shadow);}
.auth-field input::placeholder{color:var(--webhook-text-tertiary);font-style:italic;}
.password-field{position:relative;}
.password-field input{padding-right:40px;position:relative;}
.password-toggle{position:absolute;right:12px;bottom:15px;background:none;border:none;cursor:pointer;padding:2px;color:var(--webhook-text-tertiary);transition:color 0.3s ease;border-radius:4px;height:20px;width:20px;display:flex;align-items:center;justify-content:center;}
.password-toggle:hover{color:var(--webhook-focus-color);background:var(--webhook-hover-bg);}
.password-toggle svg{width:16px;height:16px;}
.auth-checkbox-save{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;color:var(--webhook-text-secondary);user-select:none;background:var(--webhook-bg-primary);padding:10px 12px;border-radius:6px;border:1px solid var(--webhook-border-tertiary);transition:all 0.3s ease;margin-top:10px;}
.auth-checkbox-save:hover{background:var(--webhook-bg-tertiary);border-color:var(--webhook-border-secondary);}
.auth-manual-mode{display:none;margin-top:8px;}
.auth-manual-mode.active{display:block;}
.body-section{background:linear-gradient(135deg,var(--webhook-bg-primary) 0%,var(--webhook-bg-secondary) 100%);border:2px solid var(--webhook-border-tertiary);border-radius:12px;padding:20px;margin-top:8px;transition:all 0.3s ease;}
.body-section:hover{border-color:var(--webhook-focus-color);box-shadow:0 2px 12px var(--webhook-focus-shadow);}
.body-content{display:flex;flex-direction:column;gap:16px;}
.json-input-mode{display:flex;gap:12px;margin-bottom:16px;align-items:center;}
.json-mode-radio{display:flex;align-items:center;gap:8px;cursor:pointer;padding:6px 8px;border-radius:6px;transition:all 0.3s ease;}
.json-mode-radio:hover{background:var(--webhook-hover-bg);}
.json-mode-radio input[type="radio"]{margin:0;accent-color:var(--webhook-focus-color);}
.json-mode-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--webhook-text-secondary);cursor:pointer;}
.json-mode-radio input[type="radio"]:checked+.json-mode-label{color:var(--webhook-focus-color);}
.json-manual-mode{display:none;}
.json-manual-mode.active{display:block;}
.json-manual-mode textarea{min-height:120px;font-family:'Courier New',monospace;font-size:13px;line-height:1.4;background:var(--webhook-bg-secondary);color:var(--webhook-text-primary);border:1px solid var(--webhook-border-secondary);border-radius:6px;padding:12px;resize:vertical;}
.json-manual-mode textarea:focus{outline:none;border-color:var(--webhook-focus-color);box-shadow:0 0 0 2px var(--webhook-focus-shadow);}
@media (max-width:768px){
.teste-webhook-container{padding:20px 15px;margin:10px;border-radius:12px;}
.webhook-input-group{flex-direction:column;gap:12px;align-items:stretch;}
.webhook-input-group select{width:100%;order:-1;flex-shrink:0;}
.webhook-input-group input[type="url"]{flex:1;min-width:0;}
.webhook-input-group input[type="url"],.webhook-input-group .btn-paste{order:1;}
.webhook-input-group input[type="url"]{display:inline-flex;width:calc(100% - 52px);margin-right:8px;}
.btn-paste{width:44px;min-width:44px;padding:14px 8px;flex-shrink:0;position:absolute;right:15px;margin-top:0;display:flex;align-items:center;justify-content:center;}
.btn-paste{font-size:0;text-indent:-9999px;}
.btn-paste svg{width:18px;height:18px;margin:0;flex-shrink:0;}
.webhook-form-group{position:relative;}
@supports (display:grid){
.webhook-input-group{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:12px 8px;align-items:stretch;}
.webhook-input-group select{grid-column:1 / -1;order:unset;width:100%;}
.webhook-input-group input[type="url"]{grid-column:1;width:100%;margin-right:0;order:unset;}
.webhook-input-group .btn-paste{grid-column:2;position:static;right:auto;margin-top:0;order:unset;}
}
.btn-toggle-headers{display:flex;width:100%;justify-content:center;margin-bottom:10px;}
.json-input-mode{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:20px;padding:8px;}
.json-mode-btn{flex:1;min-width:120px;text-align:center;justify-content:center;padding:12px 16px;}
.json-builder{padding:20px;}
.json-pair{flex-direction:column;gap:10px;background:var(--webhook-bg-secondary);padding:16px;border-radius:10px;margin-bottom:18px;position:relative;border:1px solid var(--webhook-border-tertiary);box-shadow:0 2px 8px rgba(0,0,0,0.04);}
[data-theme="dark"] .json-pair{box-shadow:0 2px 8px rgba(0,0,0,0.2);}
.json-pair input{width:100%;margin-bottom:6px;padding:12px 16px;border:2px solid var(--webhook-border-tertiary);border-radius:8px;}
.json-pair select.json-type{width:100%;flex:none;margin-bottom:6px;padding:12px;border:2px solid var(--webhook-border-tertiary);border-radius:8px;}
.json-pair input[placeholder*="Chave"]{flex:none;font-weight:600;background:linear-gradient(135deg,var(--webhook-bg-secondary) 0%,var(--webhook-bg-primary) 100%);}
.json-pair input[placeholder*="Valor"]{flex:none;}
.json-pair-remove{position:absolute;top:12px;right:12px;width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:16px;line-height:1;background:linear-gradient(135deg,var(--webhook-btn-danger-start) 0%,var(--webhook-btn-danger-end) 100%);box-shadow:0 2px 6px rgba(231,76,60,0.3);}
.json-builder-actions{margin-top:24px;justify-content:center;padding-top:20px;}
.json-add-pair{width:100%;padding:14px 20px;justify-content:center;font-size:15px;}
.webhook-actions{flex-direction:column;gap:12px;}
.teste-webhook-container button:not(.json-pair-remove):not(.btn-paste):not(.json-mode-btn):not(.json-add-pair):not(.btn-copy-response):not(.history-item-remove){width:100%;padding:16px;font-size:15px;justify-content:center;}
.teste-webhook-container input,.teste-webhook-container select,.teste-webhook-container textarea{font-size:16px;}
.webhook-response-header{flex-direction:column;align-items:flex-start;gap:8px;}
.webhook-method-info{flex-direction:column;gap:8px;}
.teste-webhook-historico{padding:var(--spacing-md);}
.history-item{flex-direction:column;align-items:flex-start;gap:var(--spacing-sm);}
.history-item-content{width:100%;}
.security-badge{padding:10px 16px;font-size:13px;margin-top:16px;}
.auth-header{flex-direction:column;align-items:flex-start;gap:12px;}
.auth-type-selector{max-width:none;width:100%;}
.auth-checkbox-container{flex-direction:column;gap:8px;align-items:stretch;}
.auth-checkbox-label{white-space:normal;min-height:auto;}
}
@media (max-width:480px){
.teste-webhook-container{padding:15px 10px;margin:5px;}
.webhook-form-group label{font-size:13px;}
.teste-webhook-container input,.teste-webhook-container select,.teste-webhook-container textarea{padding:12px 14px;font-size:16px;}
.webhook-input-group{gap:6px;}
.webhook-input-group select{min-width:70px;padding:12px 8px;font-size:14px;}
.btn-paste{min-width:44px;padding:12px 10px;}
.json-pair{padding:10px;margin-bottom:12px;}
.json-pair input{padding:10px 12px;font-size:15px;}
.json-pair select.json-type{width:100%;flex:none;margin-bottom:4px;}
.json-pair-remove{width:26px;height:26px;top:6px;right:6px;font-size:14px;}
.teste-webhook-resposta{font-size:13px;}
.webhook-response-content{padding:15px;font-size:12px;}
.webhook-response-header{padding:12px 15px;}
.webhook-response-actions{padding:10px 15px;}
.history-item{padding:var(--spacing-xs) var(--spacing-sm);font-size:11px;}
.json-preview{font-size:11px;padding:10px;max-height:120px;}
.webhook-method-info{padding:10px 15px;font-size:11px;}
.security-badge{padding:10px 15px;font-size:13px;margin-top:15px;}
}