.calculafin-driver-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    color: #334155;
    line-height: 1.5;
}

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

.calculafin-driver-container h2 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.calculafin-driver-container .subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.cf-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.cf-toggle-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 14px;
}

.cf-toggle-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 850px) {
    .cf-grid {
        grid-template-columns: 1fr;
    }
}

.cf-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.cf-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.cf-card h3 .dashicons {
    color: #3b82f6;
}

.cf-card h3.section-title {
    margin-top: 30px;
}

.cf-input-group {
    margin-bottom: 18px;
}

.cf-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cf-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}

.cf-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.info-text {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.cf-progress-container {
    margin-bottom: 24px;
}

.cf-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cf-progress-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.bar-segment {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.custo-bar {
    background-color: #ef4444;
}

.lucro-bar {
    background-color: #22c55e;
}

.cf-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.cf-result-row strong {
    font-size: 20px;
}

.text-danger { color: #ef4444; }
.text-success { color: #22c55e; }

hr {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 20px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.metric-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}

.metric-box:hover {
    transform: translateY(-2px);
}

.metric-box small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.metric-box span {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.meta-container {
    margin-top: 30px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 24px;
    border-radius: 16px;
}

.meta-container h3 {
    border-bottom: 1px solid #bbf7d0;
    color: #166534;
}

.meta-container h3 .dashicons {
    color: #22c55e;
}

.meta-result {
    text-align: center;
    margin-top: 20px;
}

.meta-result p {
    margin: 5px 0;
    color: #166534;
}

.meta-result h2 {
    color: #15803d;
    margin: 12px 0;
    font-size: 32px;
    font-weight: 800;
}

.meta-subtext {
    font-size: 13px;
    color: #166534;
    opacity: 0.8;
}

.cf-footer-info {
    margin-top: 30px;
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
}

.cf-footer-info p {
    margin: 0;
    font-size: 14px;
    color: #9a3412;
}
