:root {
    --primary: #007ed9;
    --primary-dark: #0066b3;
    --accent-text: #434344;
    --dark-text: #1e293b;
    --success: #2ecc71;
    --warning: #f59e0b;
    --danger: #e11d48;
    --bg-page: #f4f7f9;
    --bg-card: #ffffff;
    --border-color: #e1e8ed;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    background-color: var(--bg-page);
}

/* --- LADO ESQUERDO (BRAND) --- */
.brand-panel {
    flex: 1; width: 50%;
    background-image: url('./bg-salweb.png'); 
    background-color: #f0f4f8; 
    background-size: cover; background-position: center;
    padding: 0; position: relative;
    border-right: 1px solid #e2e8f0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

.brand-overlay {
    width: 100%; height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 50px 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.brand-header a {
    display: flex; justify-content: center; align-items: center;
    width: 120px; height: 120px;
    background-color: white; border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-header a:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25); }
.brand-header .logo { width: 75%; height: auto; object-fit: contain; display: block; }

.brand-overlay h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #0f172a; }

.service-list { list-style: none; padding: 0; margin-bottom: 25px; border-top: 1px solid #cbd5e1; padding-top: 20px; }
.service-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; margin-bottom: 10px; font-weight: 600; color: var(--dark-text); }
.service-list li i { color: var(--primary); font-size: 1.1rem; }

.contact-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }
.contact-item { display: flex; align-items: center; gap: 12px; color: var(--dark-text); text-decoration: none; font-size: 1rem; font-weight: 600; transition: transform 0.2s, color 0.2s; padding: 10px; border-radius: 8px; background-color: rgba(255, 255, 255, 0.6); border: 1px solid #e2e8f0; }
.contact-item:hover { color: var(--primary); border-color: var(--primary); transform: translateX(5px); background-color: white; }

.social-follow { display: flex; gap: 15px; margin-top: 10px; padding-top: 20px; border-top: 1px solid #cbd5e1; }
.social-btn {
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
    background: white; border-radius: 50%; color: var(--accent-text); text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; font-size: 1.2rem;
}
.social-btn:hover { transform: translateY(-3px); color: white; }
.social-btn.fb:hover { background: #1877F2; } .social-btn.ig:hover { background: #E4405F; }
.social-btn.li:hover { background: #0077B5; } .social-btn.wa:hover { background: #25D366; }

.brand-footer { font-size: 0.8rem; color: #64748b; font-weight: 500; margin-top: auto; border-top: 1px solid #cbd5e1; padding-top: 20px; }

/* --- LADO DIREITO (FERRAMENTA) --- */
.tool-panel {
    flex: 1; width: 50%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--bg-page); padding: 40px;
    overflow-y: auto; position: relative;
}

.share-container { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 100; }
.btn-share-tool {
    background-color: white; color: var(--accent-text); border: 1px solid var(--border-color);
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: all 0.2s; text-decoration: none;
}
.btn-share-tool:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); color: var(--primary); }
.btn-share-main { background-color: var(--primary); color: white; border: none; }
.btn-share-main:hover { background-color: var(--primary-dark); color: white; }

.container {
    background-color: var(--bg-card); width: 100%; max-width: 550px;
    padding: 40px; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); border: 1px solid var(--border-color);
}

h2 { text-align: center; margin-bottom: 25px; font-weight: 700; color: var(--accent-text); font-size: 1.6rem; }
.subtitle { text-align: center; color: #64748b; margin-bottom: 30px; font-size: 0.95rem; margin-top: -15px; }

.calc-inputs { margin-bottom: 20px; display: flex; flex-direction: column; gap: 20px; }
.input-wrapper { display: flex; flex-direction: column; gap: 8px; position: relative; }
.input-wrapper label { font-size: 0.9rem; font-weight: 600; color: var(--accent-text); display: flex; justify-content: space-between; }
.input-wrapper label span { color: #94a3b8; font-weight: 400; font-size: 0.8rem; }

.custom-input {
    width: 100%; 
    padding: 15px;
    padding-right: 60px;
    font-size: 1.1rem; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius);
    transition: all 0.2s; 
    color: var(--dark-text); 
    font-weight: 600;
}
.custom-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 126, 217, 0.1); }

.input-suffix { 
    position: absolute; 
    right: 35px;
    top: 43px; 
    color: #94a3b8; 
    font-weight: 600; 
    pointer-events: none; 
}

.result-group { 
    display: flex; flex-direction: column; 
    background-color: #f8fafc; border: 2px solid var(--primary); 
    border-radius: var(--radius); margin-bottom: 20px; 
    overflow: hidden; transition: border-color 0.3s;
}
.result-header { background: #e0f2fe; color: var(--primary-dark); padding: 8px 15px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #bae6fd; }
.result-main { padding: 20px; text-align: center; }
.result-value { font-family: 'Roboto Mono', monospace; font-size: 2.2rem; color: var(--primary); font-weight: 800; line-height: 1.2; word-break: break-all; }
.result-label { font-size: 0.9rem; color: #64748b; margin-top: 5px; }

/* Detalhes do Salário */
.tax-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-color);
}

.tax-info { 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    gap: 5px; text-align: center; padding: 15px 10px; 
    background-color: white;
    border-right: 1px solid var(--border-color);
}
.tax-info:last-child { border-right: none; }

.tax-text { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.tax-value { font-weight: 700; color: var(--danger); font-family: 'Roboto Mono', monospace; font-size: 1rem; }
.tax-value.neutral { color: var(--accent-text); }

.verify-box {
    display: flex; justify-content: space-between; align-items: center;
    background-color: #ecfdf5; border-top: 1px solid #a7f3d0;
    padding: 12px 20px;
}
.verify-text { font-size: 0.85rem; color: #047857; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.verify-value { font-family: 'Roboto Mono', monospace; font-weight: 800; color: #059669; }

.btn-copy { 
    width: 100%; background-color: var(--primary); color: white; border: none; padding: 16px; 
    border-radius: var(--radius); font-size: 1.1rem; font-weight: 700; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; 
}
.btn-copy:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-copy.success-state { background-color: var(--success); animation: pulseSuccess 0.6s; }

@keyframes pulseSuccess { 
    0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } 
}

.footer-disclaimer { margin-top: 25px; text-align: center; font-size: 0.75rem; color: #b0b8c4; line-height: 1.4; border-top: 1px solid #f1f5f9; padding-top: 15px; }

@media (max-width: 900px) {
    body { flex-direction: column; overflow-y: auto; height: auto; }
    .tool-panel { width: 100%; flex: none; order: 1; padding: 30px 20px; }
    .brand-panel { width: 100%; flex: none; order: 2; padding: 0; min-height: 500px; }
    .brand-overlay { padding: 40px 30px; height: auto; min-height: 100%; }
    .share-container { top: 15px; right: 15px; }
    .btn-share-tool span { display: none; } 
    .btn-share-tool { padding: 10px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
    .result-value { font-size: 1.8rem; }
    .verify-box { flex-direction: column; gap: 5px; text-align: center; }
}