.ic-container {
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    color: #333;
}
.ic-heading {
    margin-top: 0;
    margin-bottom: 24px;
}
.ic-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.ic-left {
    flex: 1 1 300px;
}
.ic-right {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ic-input-group {
    margin-bottom: 25px;
}
.ic-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ic-input-header label {
    font-weight: 500;
    color: #4b5563;
}
.ic-input-wrapper.plain-text-input {
    display: flex;
    align-items: center;
    background: #f8fafc !important; /* Added background for visibility */
    padding: 8px 12px !important; /* Added padding for visibility */
    border: 1px solid #e2e8f0 !important; /* Added border for visibility */
    box-shadow: none !important;
    border-radius: 4px !important; /* Added border radius for visibility */
}
.ic-input-wrapper span {
    color: #00d09c;
    font-weight: bold;
}
.ic-input-val {
    border: none !important;
    background: transparent !important;
    color: #00d09c;
    font-weight: bold;
    text-align: right;
    width: 120px; /* Increased width to make longer numbers fully visible */
    font-size: 16px;
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0 4px;
    box-shadow: none !important;
}
.ic-input-val:focus {
    outline: none;
    box-shadow: none !important;
    border: none !important;
}
.ic-input-val::-webkit-outer-spin-button,
.ic-input-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Slider Styling with custom fill */
.ic-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px; /* Increased height slightly */
    border-radius: 3px;
    outline: none;
    /* CSS variables used for fill tracking, fallback provided */
    --slider-fill: #00d09c; 
    --slider-track: #e2e8f0;
    background: linear-gradient(to right, var(--slider-fill) 0%, var(--slider-fill) var(--val, 50%), var(--slider-track) var(--val, 50%), var(--slider-track) 100%);
}

/* Webkit (Chrome, Safari, Edge) */
.ic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; /* Increased thumb size */
    height: 18px; /* Increased thumb size */
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--slider-fill); /* Match border to fill color instead of gray */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mozilla Firefox */
.ic-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--slider-fill); /* Match border to fill color instead of gray */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ic-slider::-moz-range-track {
    background: transparent; /* Changed to transparent, let linear-gradient handle it */
    height: 6px;
}
.ic-slider::-moz-range-progress {
    background: transparent; /* Prevent firefox from adding default fill over our linear gradient */
}


.ic-chart-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6b7280;
}
.ic-chart-legend {
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}
.ic-chart-wrapper {
    position: relative;
    /* Dimensions are now controlled via Elementor settings */
}
.ic-results {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    width: 100%;
}
.ic-result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #4b5563;
}
.ic-result-row:last-child {
    font-weight: bold;
    color: #1f2937;
}