/* Investment Growth Calculator Styles */

.igc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
}

.igc-header {
    margin-bottom: 40px;
    text-align: left;
}

.igc-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333333;
}

.igc-header p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

.igc-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(200,230,150);stop-opacity:0.3"/><stop offset="100%" style="stop-color:rgb(100,200,50);stop-opacity:0.1"/></linearGradient></defs><path d="M 0 150 Q 250 50 500 120 T 1000 80 L 1000 0 L 0 0 Z" fill="url(%23grad)"/><circle cx="100" cy="100" r="30" fill="rgb(100,200,50)" opacity="0.1"/><circle cx="900" cy="120" r="50" fill="rgb(100,200,50)" opacity="0.08"/></svg>') no-repeat top right;
    background-size: 600px 400px;
    padding: 30px 0;
}

/* Controls Panel */
.igc-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.igc-control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.igc-control-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.igc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999999;
    font-size: 12px;
    cursor: help;
    flex-shrink: 0;
}

.igc-slider-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.igc-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4CAF50 0%, #4CAF50 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

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

.igc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

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

.igc-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.igc-slider::-moz-range-track {
    background: none;
    border: none;
}

.igc-input,
.igc-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: all 0.2s ease;
}

.igc-input:focus,
.igc-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.igc-percent {
    color: #999;
    font-size: 14px;
    margin-left: 4px;
}

.igc-checkbox {
    flex-direction: row;
    align-items: center;
}

.igc-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.igc-checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.igc-checkbox span {
    font-weight: 400;
}

.igc-radio-group {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.igc-radio-group label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.igc-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

/* Results Panel */
.igc-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.igc-summary {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.igc-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.igc-summary span {
    color: #4CAF50;
    font-weight: 700;
}

.igc-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.igc-breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eeeeee;
}

.igc-color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.igc-label {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.igc-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.igc-chart-container {
    position: relative;
    height: 350px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.igc-chart-container canvas {
    display: block;
    max-height: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .igc-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .igc-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .igc-header h2 {
        font-size: 24px;
    }

    .igc-header p {
        font-size: 14px;
    }

    .igc-slider-wrapper {
        flex-direction: column;
    }

    .igc-breakdown {
        grid-template-columns: 1fr;
    }

    .igc-chart-container {
        height: 250px;
    }
}

/* Utility Classes */
.igc-hidden {
    display: none !important;
}
