:root {
    /* fonts */
    --sm-regular: Poppins;
  
    /* font sizes */
    --sm-regular-size: 14px;
    --xl-medium-size: 24px;
    --base-regular-size: 17px;
    --xl-medium1-size: 30px;
  
    /* Colors */
    --bg-colors: #eef6fd;
    --previous-bg-colors: #e7f3ff;
    --blue-grey-900: #101828;
    --color-gray-100: rgba(255, 255, 255, 0.5);
    --black-0: #fff;
    --primary-900: #055ffc;
    --blue-grey-100: #e7e8e9;
    --blue-grey-700: #404653;
    --blue-grey-800: #282f3e;
    --colors-red-600: #dc2626;
    --primary-200: #cddffe;
  
    /* Gaps */
    --gap-21xl: 40px;
    --gap-xl: 20px;
    --gap-5xs: 8px;
    --gap-11xl: 30px;
    --gap-9xs: 4px;
  
    /* Paddings */
    --padding-43xl: 62px;
    --padding-xl: 20px;
    --padding-19xl: 38px;
    --padding-40xl: 59px;
    --padding-6xl: 25px;
    --padding-10xl: 29px;
    --padding-xs: 12px;
    --padding-3xs: 10px;
    --padding-2xs: 11px;
    --padding-61xl: 80px;
    --padding-11xs: 2px;
    --padding-5xs: 8px;
    --padding-4xs: 9px;
  
    /* Border radiuses */
    --br-base: 16px;
    --br-9xs: 4px;
    --br-40xl: 59px;
    --br-30xs: 30px;
  }
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 5px;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.errorMsg {
    color: red; 
    text-align: center;
}
.errorMsgAnnuity {
    color: red; 
}
.errorMsgPortfolio {
    color: red; 
    text-align: center;
}
.globalstyle {
    font-family: var(--sm-regular);
    font-size: var(--base-regular-size);
}
.buttonColor {
    background-color: var(--primary-900) !important;
}
.toasterDiv {
    width: 50px;
    height: 50px; 
    top: 50%;
    left: 50%;
    border-radius: 50%;
}
#spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}
.marginRightRollUp {
    margin: 8px 15px 0px;
}
.marginRightPayOut {
    margin: 8px 27px 0px;
}
.marginInvestmentPortfolio {
    margin: 8px 15px 0px;
}
.font-medium {
    font-weight: 500;
    font-size: smaller;
}

/* Toast Notification Styling */
.toast {
    display: none; /* Initially hidden */
    /* position: fixed; */
    /* top: 20px;
    right: 20px; */
    background-color: #4CAF50; /* Green background */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    animation: fadeIn 0.5s, fadeOut 0.5s 3s forwards;
    margin-top: 5px;
}

/* Checkmark Style */
.checkmark {
    font-size: 18px;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade-out Animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Results Block */
#results_div {
    display: none;
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

#results_div.visible {
    display: block;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Overlay for spinner */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 999;
}

@media (max-width: 640px) {
    .marginRightPayOut {
        margin: 8px 22px 0px;
    }
}

/* Toggle Button Styles */
#calculateIncome, #calculatePremium {
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.active-toggle {
    background-color: var(--primary-900);
    color: white !important;
}

@media (max-width: 640px) {
    .marginRightPayOut {
        margin: 8px 22px 0px;
    }
    #calculateIncome, #calculatePremium {
        font-size: 12px;
        padding: 8px 4px;
    }
}