#ct-calc-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.5;
}

.ct-calc-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.ct-calc-header {
    text-align: center;
    margin-bottom: 35px;
}

.ct-calc-header h2 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
}

.ct-calc-header p {
    color: #777;
    margin: 0;
    font-size: 16px;
}

/* Grid System */
.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.ct-field {
    margin-bottom: 20px;
}

.ct-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.ct-field input, 
.ct-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ct-field input:focus, 
.ct-field select:focus {
    outline: none;
    border-color: #ff8c61;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 140, 97, 0.1);
}

.ct-actions {
    margin-top: 10px;
    text-align: center;
}

.ct-btn {
    background: #ff8c61; /* Laranja do print */
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 140, 97, 0.3);
}

.ct-btn:hover {
    background: #f07b50;
    transform: translateY(-2px);
}

.ct-btn:active {
    transform: translateY(0);
}

/* Results Area */
.ct-results-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
}

.ct-result-main {
    background: #fcfcfc;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #f5f5f5;
}

.ct-result-main .ct-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 10px;
}

.ct-result-main .ct-value {
    font-size: 42px;
    font-weight: 900;
    color: #2e7d32; /* Verde profissional */
}

/* Results Table */
.ct-results-table {
    margin-top: 30px;
    overflow-x: auto;
}

.ct-results-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ct-results-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.ct-results-table th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: #444;
}

.ct-results-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.ct-results-table tbody tr:hover {
    background-color: #fafafa;
}

.ct-results-table tbody tr.separator {
    border-top: 2px solid #ddd;
    background-color: #fcfcfc;
}

.ct-results-table tbody tr.separator td {
    font-weight: 600;
    color: #333;
}

.ct-results-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}

.ct-results-table td.negative {
    color: #d32f2f;
}

/* Detail Items (Fallback) */
.ct-result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ct-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.ct-detail-item span {
    color: #666;
}

.ct-detail-item strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .ct-calc-container {
        padding: 25px;
        box-shadow: none;
        border: none;
    }
    
    .ct-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #ct-calc-wrapper {
        margin: 0;
    }

    .ct-result-main .ct-value {
        font-size: 32px;
    }
    
    .ct-calc-header h2 {
        font-size: 22px;
    }

    .ct-results-table {
        font-size: 13px;
    }

    .ct-results-table th,
    .ct-results-table td {
        padding: 10px;
    }
}

/* Footer Note */
.ct-calc-footer-note {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #ff8c61;
    border-radius: 4px;
}

.ct-calc-footer-note p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ct-calc-footer-note strong {
    color: #444;
}

/* Tooltip */
.ct-tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #eee;
    color: #666;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    cursor: help;
    margin-left: 5px;
    font-weight: bold;
    position: relative;
}

.ct-tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    width: 200px;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: normal;
}

/* Share Area */
.ct-share-area {
    margin-top: 20px;
    text-align: center;
}

.ct-btn-secondary {
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ct-btn-secondary:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

.ct-btn-secondary.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}
