/* Investment Growth Pro CSS */

/* Container */
.igia-container {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Two-column layout */
.igia-two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.igia-controls-column {
    flex: 1;
    min-width: 300px;
}

.igia-chart-column {
    flex: 2;
    min-width: 500px;
}

/* Control row */
.igia-control-row {
    margin-bottom: 20px;
}

.igia-control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Slider */
.igia-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.igia-slider {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
}

.igia-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0066cc;
    cursor: pointer;
}

.igia-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0066cc;
    cursor: pointer;
    border: none;
}

/* Amount input */
.igia-amount-input {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
}

/* Percentage input */
.igia-percentage-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
}

/* Direction controls */
.igia-direction-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.igia-radio-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.igia-radio-label input[type="radio"] {
    margin-right: 5px;
}

.igia-radio-label input[type="radio"]:checked + .igia-radio-label {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Asset toggles */
.igia-asset-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.igia-asset-checkbox {
    display: none;
}

.igia-asset-toggle {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
    color: #666;
}

.igia-asset-toggle.active {
    color: white;
}

.igia-asset-toggle.inactive {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #666;
}

/* Chart container */
.igia-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

/* Loading indicator */
.igia-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.igia-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: igia-spin 2s linear infinite;
    margin-bottom: 10px;
}

.igia-loading-text {
    font-size: 14px;
    color: #333;
}

@keyframes igia-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats */
.igia-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.igia-stat-box {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.igia-stat-title {
    margin: -15px -15px 15px -15px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: white;
    font-weight: bold;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.igia-stat-content {
    font-size: 14px;
}

.igia-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.igia-stat-label {
    color: #666;
}

.igia-stat-value {
    font-weight: bold;
    color: #333;
}

/* Reset button */
.igia-reset-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.igia-reset-button:hover {
    background-color: #e0e0e0;
}

/* Sync with FAST AI */
.igia-sync-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.igia-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.igia-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Asset amount rows */
.igia-asset-amounts {
    margin-bottom: 20px;
}

.igia-asset-amount-row {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.igia-asset-amount-label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

/* Other percentage container */
.igia-other-percentage-container {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Error message */
.igia-error {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Title styling */
.igia-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .igia-two-column-layout {
        flex-direction: column;
    }
    
    .igia-controls-column,
    .igia-chart-column {
        width: 100%;
        min-width: 100%;
    }
    
    .igia-stats {
        flex-direction: column;
    }
    
    .igia-stat-box {
        width: 100%;
    }
}
