/* Investment Calculator Styles */

.inv-calc-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #333;
}

.inv-calc-wrapper * {
    box-sizing: border-box;
}

.inv-calc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.inv-calc-left, .inv-calc-right {
    flex: 1;
    min-width: 300px;
}

.inv-calc-right {
    border-left: 1px solid #333;
    padding-left: 40px;
}

/* Header */
.inv-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.inv-calc-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-calc-icon {
    color: #f3c35b;
}

.inv-calc-subtitle-desktop, .inv-calc-subtitle-mobile {
    font-size: 13px;
    color: #888;
}

.inv-calc-subtitle-mobile {
    display: none;
}

/* Input Section */
.inv-calc-input-section {
    margin-bottom: 40px;
}

.inv-calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.inv-calc-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #f3c35b;
    font-weight: 600;
}

.inv-calc-amount-display {
    font-size: 18px;
    font-weight: 700;
}

.inv-calc-main-amount {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
}

.inv-calc-main-amount .currency {
    font-size: 24px;
    color: #f3c35b;
    margin-right: 5px;
}

/* Slider */
.inv-calc-slider-container {
    margin-bottom: 30px;
}

input[type=range]#inv-calc-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]#inv-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #f3c35b;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(243, 195, 91, 0.5);
}

input[type=range]#inv-calc-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

input[type=range]#inv-calc-slider:focus {
    outline: none;
}

.inv-calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

/* Presets */
.inv-calc-presets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inv-calc-preset-btn,
.inv-calc-preset-btn:focus,
.inv-calc-preset-btn:active {
    flex: 1;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #333 !important;
    color: #ccc !important;
    padding: 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.inv-calc-preset-btn:hover {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* Loan Toggle */
.inv-calc-loan-toggle-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.inv-calc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.inv-calc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.inv-calc-slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}

.inv-calc-slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .inv-calc-slider-round {
    background-color: #f3c35b;
}

input:checked + .inv-calc-slider-round:before {
    transform: translateX(22px);
}

.inv-calc-toggle-label {
    font-size: 14px;
    color: #ccc;
}

/* Loan Scenario Box */
.inv-calc-loan-scenario {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    background: #222;
}

.inv-calc-loan-title {
    font-size: 12px;
    color: #f3c35b;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.inv-calc-loan-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #aaa;
}

.inv-calc-loan-row strong {
    color: #fff;
}

.inv-calc-net-gain {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.inv-calc-text-red { color: #e74c3c !important; }
.inv-calc-text-green { color: #4ade80 !important; }
.inv-calc-text-gold { color: #f3c35b !important; }
.inv-calc-text-white { color: #ffffff !important; }

/* Right Panel Elements */
.inv-calc-subtitle-desktop {
    text-align: right;
    margin-bottom: 30px;
}

.inv-calc-monthly-box {
    background: linear-gradient(135deg, #2a2415 0%, #1a1a1a 100%);
    border: 1px solid #4a3e20;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.inv-calc-result-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #f3c35b;
    margin-bottom: 10px;
}

.inv-calc-result-value-large {
    font-size: 48px;
    font-weight: 800;
    color: #f3c35b;
    margin-bottom: 10px;
}

.inv-calc-result-desc {
    font-size: 13px;
    color: #aaa;
}

.inv-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.inv-calc-grid-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.inv-calc-result-value {
    font-size: 24px;
    font-weight: 700;
}

.inv-calc-cta-btn {
    display: block;
    width: 100%;
    background-color: #e74c3c;
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.inv-calc-cta-btn:hover {
    background-color: #c0392b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .inv-calc-container {
        flex-direction: column;
        gap: 0;
    }
    
    .inv-calc-right {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid #333;
    }

    .inv-calc-subtitle-desktop {
        display: none;
    }

    .inv-calc-subtitle-mobile {
        display: block;
    }
    
    .inv-calc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
