/* ===================================
   CALCULATOR TOOLTIPS STYLES
   =================================== */

/* Tooltip trigger button (? icon) */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    background: #E5E7EB;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.tooltip-trigger:hover {
    background: #0F7B3B;
    transform: scale(1.1);
}

.tooltip-trigger svg {
    width: 12px;
    height: 12px;
    color: #6B7280;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover svg {
    color: white;
}

/* Tooltip container */
.calculator-tooltip {
    position: absolute;
    background: white;
    border: 2px solid #0F7B3B;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    max-width: 380px;
    width: auto;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.calculator-tooltip.show {
    opacity: 1;
    transform: scale(1);
}

/* Tooltip header */
.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0F7B3B 0%, #0B2F6B 100%);
    color: white;
    padding: 14px 16px;
    border-radius: 10px 10px 0 0;
}

.tooltip-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.tooltip-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Tooltip body */
.tooltip-body {
    padding: 16px;
}

.tooltip-body p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.tooltip-body p:last-child {
    margin-bottom: 0;
}

/* Tooltip example box */
.tooltip-example {
    margin-top: 12px;
    padding: 12px;
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400E;
}

.tooltip-example strong {
    display: block;
    margin-bottom: 6px;
    color: #78350F;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .calculator-tooltip {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 20px !important;
        top: auto !important;
        max-width: none !important;
        width: auto !important;
    }
    
    .tooltip-header h4 {
        font-size: 15px;
    }
    
    .tooltip-body {
        padding: 14px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .tooltip-body p {
        font-size: 13px;
    }
    
    .tooltip-example {
        font-size: 12px;
    }
}

/* Smooth scrollbar for mobile */
.tooltip-body::-webkit-scrollbar {
    width: 4px;
}

.tooltip-body::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.tooltip-body::-webkit-scrollbar-thumb {
    background: #0F7B3B;
    border-radius: 2px;
}