/* Estilos específicos da ferramenta Número por Extenso */
:root{
--ne-container-bg:#fff;
--ne-container-shadow:0 0.5rem 1rem rgba(0,0,0,0.15);
--ne-input-border:#e9ecef;
--ne-input-bg:#f8f9fa;
--ne-input-focus-border:#00a651;
--ne-input-focus-shadow:0 0 0 3px rgba(0,166,81,0.1);
--ne-input-placeholder:#6c757d;
--ne-opcoes-bg:linear-gradient(135deg,#f8f9fa,#e3f2fd);
--ne-opcoes-border:#e9ecef;
--ne-label-color:#343a40;
--ne-label-hover-bg:rgba(0,166,81,0.1);
--ne-label-hover-color:#007e3a;
--ne-resultado-border:#e9ecef;
--ne-resultado-bg:#f8f9fa;
--ne-resultado-color:#343a40;
--ne-resultado-focus-border:#00a651;
--ne-resultado-focus-shadow:0 0 0 3px rgba(0,166,81,0.1);
--ne-stats-bg:linear-gradient(135deg,#f8f9fa,#f0f8ff);
--ne-stats-border:#e9ecef;
--ne-stat-item-bg:#fff;
--ne-stat-number:#00a651;
--ne-stat-label:#6c757d;
--ne-loading-border:#e9ecef;
--ne-loading-border-top:#00a651;
}
[data-theme="dark"]{
--ne-container-bg:#2d2d2d;
--ne-container-shadow:0 0.5rem 1rem rgba(0,0,0,0.4);
--ne-input-border:#495057;
--ne-input-bg:#1a1a1a;
--ne-input-focus-border:#4cd964;
--ne-input-focus-shadow:0 0 0 3px rgba(76,217,100,0.2);
--ne-input-placeholder:#adb5bd;
--ne-opcoes-bg:linear-gradient(135deg,#1a1a1a,#2d3748);
--ne-opcoes-border:#495057;
--ne-label-color:#e9ecef;
--ne-label-hover-bg:rgba(76,217,100,0.15);
--ne-label-hover-color:#4cd964;
--ne-resultado-border:#495057;
--ne-resultado-bg:#1a1a1a;
--ne-resultado-color:#e9ecef;
--ne-resultado-focus-border:#4cd964;
--ne-resultado-focus-shadow:0 0 0 3px rgba(76,217,100,0.2);
--ne-stats-bg:linear-gradient(135deg,#1a1a1a,#2d3748);
--ne-stats-border:#495057;
--ne-stat-item-bg:#2d2d2d;
--ne-stat-number:#4cd964;
--ne-stat-label:#adb5bd;
--ne-loading-border:#495057;
--ne-loading-border-top:#4cd964;
}
.numero-extenso-container{max-width:800px;margin:0 auto;background:var(--ne-container-bg);border-radius:1rem;box-shadow:var(--ne-container-shadow);transition:all 0.3s ease;overflow:hidden;position:relative;}
.numero-extenso-content{padding:2rem;display:flex;flex-direction:column;gap:1rem;}
.numero-extenso-input{display:flex;gap:0.5rem;align-items:stretch;margin-bottom:1rem;}
.numero-extenso-input input{flex:1;padding:1rem;border:2px solid var(--ne-input-border);border-radius:0.5rem;font-size:1.1rem;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;line-height:1.6;transition:all 0.2s ease;background:var(--ne-input-bg);color:var(--color-text);box-sizing:border-box;}
.numero-extenso-input input:focus{outline:none;border-color:var(--ne-input-focus-border);background:var(--color-bg-card);box-shadow:var(--ne-input-focus-shadow);}
.numero-extenso-input input::placeholder{color:var(--ne-input-placeholder);font-style:italic;}
.numero-extenso-opcoes{display:flex;gap:1.5rem;align-items:center;padding:1rem;background:var(--ne-opcoes-bg);border-radius:0.5rem;border:1px solid var(--ne-opcoes-border);margin-bottom:1rem;justify-content:center;}
.numero-extenso-opcoes label{display:flex;gap:0.5rem;align-items:center;cursor:pointer;font-weight:500;color:var(--ne-label-color);padding:0.5rem 1rem;border-radius:0.25rem;transition:all 0.2s ease;}
.numero-extenso-opcoes label:hover{background:var(--ne-label-hover-bg);color:var(--ne-label-hover-color);}
.numero-extenso-opcoes input[type="radio"]{margin:0;transform:scale(1.2);}
.numero-extenso-opcoes-radios{display:flex;}
.numero-extenso-botoes{display:flex;justify-content:center;gap:1rem;align-items:center;margin:1rem 0;}
.numero-extenso-botoes-resultado{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:center;margin-top:1rem;}
.numero-extenso-botoes button,.numero-extenso-botoes-resultado button{padding:1rem 1.5rem;border:none;border-radius:0.5rem;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all 0.3s ease;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:0.5rem;min-height:52px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;}
.btn-converter{background:linear-gradient(135deg,#00a651,#0072bc);color:#fff;font-size:1.25rem;font-weight:800;border:none;border-radius:0.5rem;box-shadow:0 6px 24px rgba(0,145,234,0.15),0 1.5px 4px rgba(0,200,83,0.10);letter-spacing:0.5px;padding:1.1rem 2.2rem;transition:background 0.2s,box-shadow 0.2s,transform 0.1s,opacity 0.2s;outline:none;display:flex;align-items:center;gap:0.5rem;cursor:pointer;}
.btn-converter:hover:not(:disabled),.btn-converter:focus:not(:disabled){background:linear-gradient(90deg,#0091ea 0%,#00c853 100%);box-shadow:0 10px 32px rgba(0,145,234,0.22),0 2px 8px rgba(0,200,83,0.13);transform:translateY(-2px) scale(1.03);}
.btn-converter:active:not(:disabled){background:linear-gradient(90deg,#00bfae 0%,#00c853 100%);transform:scale(0.98);}
.btn-converter:disabled{background:#6c757d;cursor:not-allowed;transform:none;box-shadow:0 2px 8px rgba(0,0,0,0.1);opacity:0.6;}
.btn-converter.hidden{display:none!important;}
.btn-copiar{background:#0072bc;color:#fff;}
.btn-copiar:hover:not(:disabled){background:#005a93;transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,114,188,0.3);}
.btn-copiar:disabled{background:#6c757d;cursor:not-allowed;transform:none;box-shadow:none;opacity:0.6;}
[data-theme="dark"] .btn-copiar{background:#0091ea;}
[data-theme="dark"] .btn-copiar:hover:not(:disabled){background:#0072bc;box-shadow:0 6px 20px rgba(0,145,234,0.3);}
[data-theme="dark"] .btn-copiar:disabled{background:#495057;}
.btn-limpar{background:#6c757d;color:#fff;}
.btn-limpar:hover{background:#343a40;transform:translateY(-2px);box-shadow:0 6px 20px rgba(52,58,64,0.3);}
[data-theme="dark"] .btn-limpar{background:#495057;}
[data-theme="dark"] .btn-limpar:hover{background:#6c757d;box-shadow:0 6px 20px rgba(108,117,125,0.3);}
[data-theme="dark"] .btn-converter{background:linear-gradient(135deg,#4cd964,#0091ea);}
[data-theme="dark"] .btn-converter:hover:not(:disabled),[data-theme="dark"] .btn-converter:focus:not(:disabled){background:linear-gradient(90deg,#0091ea 0%,#4cd964 100%);box-shadow:0 10px 32px rgba(0,145,234,0.3),0 2px 8px rgba(76,217,100,0.2);}
[data-theme="dark"] .btn-converter:active:not(:disabled){background:linear-gradient(90deg,#4cd964 0%,#0091ea 100%);}
[data-theme="dark"] .btn-converter:disabled{background:#495057;box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.numero-extenso-resultado{border:2px solid var(--ne-resultado-border);padding:1.5rem;font-size:1.7rem;line-height:1.6;word-break:break-word;position:relative;background:var(--ne-resultado-bg);border-radius:0.5rem;min-height:120px;display:flex;align-items:center;justify-content:center;text-align:center;transition:all 0.3s ease;font-weight:500;color:var(--ne-resultado-color);}
.numero-extenso-resultado.has-content{background:var(--color-bg-card);border-color:var(--primary-green);color:var(--dark-green);box-shadow:0 0 0 3px rgba(0,166,81,0.1);}
[data-theme="dark"] .numero-extenso-resultado.has-content{color:var(--light-green);border-color:var(--light-green);box-shadow:0 0 0 3px rgba(76,217,100,0.2);}
.numero-extenso-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;padding:1rem;background:var(--ne-stats-bg);border-radius:0.5rem;border:1px solid var(--ne-stats-border);margin:1rem 0;}
.stat-item{text-align:center;padding:0.75rem;background:var(--ne-stat-item-bg);border-radius:0.25rem;box-shadow:0 0.125rem 0.25rem rgba(0,0,0,0.075);transition:all 0.2s ease;}
[data-theme="dark"] .stat-item{box-shadow:0 0.125rem 0.25rem rgba(0,0,0,0.3);}
.stat-item:hover{transform:translateY(-2px);box-shadow:0 0.5rem 1rem rgba(0,0,0,0.15);}
[data-theme="dark"] .stat-item:hover{box-shadow:0 0.5rem 1rem rgba(0,0,0,0.4);}
.stat-number{display:block;font-weight:700;font-size:1.6rem;color:var(--ne-stat-number);line-height:1;margin-bottom:0.25rem;}
.stat-label{display:block;font-size:0.8rem;text-transform:uppercase;letter-spacing:0.5px;color:var(--ne-stat-label);font-weight:500;}
.hidden{display:none!important;}
.fade-in{animation:fadeIn 0.3s ease-out;}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
.loading{position:relative;pointer-events:none;}
.loading::after{content:'';position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid var(--ne-loading-border);border-top:2px solid var(--ne-loading-border-top);border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
@media (max-width:992px){
.numero-extenso-content{padding:1.5rem;gap:1rem;}
.numero-extenso-botoes-resultado{grid-template-columns:1fr;gap:0.75rem;margin-top:0.75rem;}
.numero-extenso-botoes{margin:0.75rem 0;}
.numero-extenso-stats{grid-template-columns:repeat(2,1fr);gap:0.75rem;padding:0.75rem;margin:0.75rem 0;}
.stat-number{font-size:1.4rem;}
}
@media (max-width:768px){
.numero-extenso-content{padding:1rem;gap:0.75rem;}
.numero-extenso-input{flex-direction:column;gap:0.75rem;margin-bottom:0.75rem;}
.numero-extenso-opcoes{flex-direction:row;gap:1rem;padding:1rem;margin-bottom:0.75rem;justify-content:center;}
.numero-extenso-opcoes-radios{display:flex;gap:0.75rem;justify-content:center;flex-wrap:wrap;}
.numero-extenso-opcoes label{justify-content:center;padding:0.75rem;}
.numero-extenso-botoes{margin:0.75rem 0;}
.numero-extenso-botoes-resultado{grid-template-columns:1fr 1fr;margin-top:0.75rem;}
.numero-extenso-botoes button,.numero-extenso-botoes-resultado button{font-size:1rem;padding:0.875rem 1rem;min-height:48px;}
.btn-converter{font-size:1.1rem;}
.numero-extenso-stats{grid-template-columns:1fr 1fr;gap:0.5rem;padding:0.75rem;margin:0.75rem 0;}
.stat-item{padding:0.75rem 1rem;text-align:center;}
.stat-number{font-size:1.4rem;margin-bottom:0.25rem;}
.stat-label{font-size:0.85rem;text-transform:uppercase;letter-spacing:0.5px;}
.numero-extenso-resultado{font-size:1rem;padding:1.25rem;min-height:100px;}
}
@media (max-width:576px){
.numero-extenso-container{margin:0 0.5rem;border-radius:0.5rem;}
.numero-extenso-content{padding:0.75rem;gap:0.5rem;}
.numero-extenso-input input{font-size:1rem;padding:0.875rem;}
.numero-extenso-opcoes{flex-direction:column;gap:0.75rem;padding:0.75rem;justify-content:center;}
#modo-extenso-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;margin:0 0 0.25rem 0;color:var(--ne-label-color);font-weight:500;font-size:0.95rem;text-align:center;}
.numero-extenso-opcoes-radios{display:flex;gap:0.75rem;justify-content:center;flex-wrap:wrap;width:100%;}
.numero-extenso-opcoes label{font-size:0.9rem;padding:0.5rem 0.75rem;}
.numero-extenso-botoes{margin:0.5rem 0;}
.numero-extenso-botoes-resultado{grid-template-columns:1fr 1fr;margin-top:0.5rem;}
.numero-extenso-botoes button,.numero-extenso-botoes-resultado button{font-size:0.95rem;padding:0.75rem;min-height:44px;}
.btn-converter{font-size:1rem;}
.numero-extenso-stats{grid-template-columns:1fr 1fr;padding:0.5rem;margin:0.5rem 0;}
.stat-item{padding:0.5rem 0.75rem;text-align:center;}
.stat-number{font-size:1.2rem;margin-bottom:0.25rem;}
.stat-label{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.5px;}
.numero-extenso-resultado{font-size:0.95rem;padding:1rem;min-height:80px;}
}
@media (max-width:320px){
.numero-extenso-content{padding:0.5rem;}
.numero-extenso-input input{font-size:0.9rem;padding:0.75rem;}
.btn-converter{font-size:0.95rem;padding:0.75rem 1rem;}
.numero-extenso-opcoes{flex-direction:column;padding:0.75rem;gap:0.75rem;}
.numero-extenso-opcoes label{font-size:0.9rem;padding:0.5rem 0.75rem;}
.numero-extenso-botoes-resultado{grid-template-columns:1fr;}
.numero-extenso-stats{grid-template-columns:1fr;}
.stat-item{display:flex;justify-content:space-between;align-items:center;text-align:left;}
.stat-number{margin-bottom:0;}
.stat-label{text-transform:none;letter-spacing:normal;}
.numero-extenso-resultado{font-size:0.9rem;padding:0.875rem;min-height:70px;}
}