/* ========================================
   MODERN FLOATING TOOLTIP SYSTEM
   ======================================== */
.grimoire-tooltip {
    position: fixed;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    color: #d1d5db;
    padding: 0;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 340px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
    border: 1px solid rgba(91, 155, 213, 0.4);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.9), 0 8px 32px rgba(91, 155, 213, 0.3);
    font-family: 'Lora', serif;
    overflow: hidden;
}

.grimoire-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.25), rgba(123, 201, 166, 0.2));
    padding: 10px 16px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #7bc9a6;
    border-bottom: 1px solid rgba(91, 155, 213, 0.3);
    text-transform: uppercase;
}

.tooltip-body {
    padding: 12px 16px;
    color: #d1d5db;
}

#result table th.has-tooltip {
    position: relative;
    cursor: help;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7bc9a6;
    font-size: 13px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-style: normal;
    line-height: 1;
    margin-left: 4px;
}

#result table th.has-tooltip:hover .tooltip-icon {
    opacity: 1;
}

/* INPUT FIELDS WITH TOOLTIPS IN TOP RIGHT */
.form-group {
    position: relative;
    margin-bottom: 32px;
}

.input-help-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(91, 155, 213, 0.2);
    border: 1px solid rgba(91, 155, 213, 0.4);
    border-radius: 50%;
    color: #7bc9a6;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    transition: all 0.3s ease;
    z-index: 10;
}

.input-help-icon:hover {
    background: rgba(91, 155, 213, 0.35);
    border-color: rgba(91, 155, 213, 0.6);
    transform: scale(1.15);
}

textarea, input {
    padding-right: 45px !important;
}
