/**
 * Investment Growth Chart - Optimized Styles
 */

.igc-input-with-edit input {
    max-width: 120px !important;
}

/* Main container */
.igc-container {
    max-width: 1100px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Form styles */
.igc-form {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.igc-input-group {
    width: 100%;
}

.igc-input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.igc-input-group label span {
    font-weight: 700;
    color: #1a73e8;
}

/* Input with edit mode */
.igc-input-with-edit {
    position: relative;
    width: 100%;
    padding-top: 0;
}

.igc-text-input {
    position: absolute;
    top: -30px;
    right: 0;
    width: 120px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
    text-align: right;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.igc-text-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.25);
}

/* Slider styles */
.igc-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 4px;
    margin: 10px 0;
}

/* Slider thumb */
.igc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease;
}

.igc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease;
}

/* Slider active state */
.igc-slider::-webkit-slider-thumb:active,
.igc-slider::-webkit-slider-thumb:hover {
    background: #0d62d0;
}

.igc-slider::-moz-range-thumb:active,
.igc-slider::-moz-range-thumb:hover {
    background: #0d62d0;
}

/* Slider track */
.igc-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
}

.igc-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

/* Checkbox styles */
.igc-checkbox-group {
    margin-top: 10px;
}

.igc-checkbox-title {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
}

.igc-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.igc-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* font-size: 15px; */
    flex: 0 0 calc(50% - 5px);
    min-width: 110px;
    margin-bottom: 0px;
}

.igc-checkbox {
    margin-right: 8px;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.igc-checkbox:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.igc-checkbox:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.igc-checkbox-text {
    font-size: 16px;
    color: #333;
    /* font-weight: bold; */
}

/* Chart container styles */
.igc-chart-container {
    flex: 2;
    min-width: 300px;
    height: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Stats container */
.igc-stats-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.igc-stat-card {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.igc-stat-title {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.igc-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a73e8;
}

.igc-stat-subtitle {
    font-size: 11px;
    color: #6c757d;
    margin-top: 3px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .igc-container {
        flex-direction: column;
    }
    
    .igc-form {
        max-width: 100%;
    }
    
    .igc-chart-container {
        height: 350px;
    }
    
    .igc-checkbox-container {
        gap: 10px;
    }
    
    .igc-checkbox-label {
        min-width: 45%;
    }
    
    .igc-stat-card {
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .igc-chart-container {
        height: 300px;
    }
    
    .igc-form {
        padding: 12px;
    }
    
    .igc-input-group label {
        font-size: 12px;
    }
    
    .igc-checkbox-label {
        min-width: 100%;
    }
    
    .igc-stat-card {
        min-width: 100%;
    }
}
