/* Tooltip info icon */
.field-tooltip-icon {
    font-size: 0.80rem;
    color: #005F73;
    cursor: help;
    vertical-align: middle;
}

/* Smooth modal resize when content changes */
.modal-dialog {
    transition: all 0.25s ease;
}

/* Collapsible form fields */
.collapsible-field {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
    max-height: 200px;
    opacity: 1;
}

.collapsible-field.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    pointer-events: none;
}

#popup-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

#popup {
    max-width: 100%;
    min-width: min(500px, 100%);
    width: max-content;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.borderless-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}

.borderless-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.borderless-btn:active {
    transform: scale(1.02);
}

.borderless-btn i {
    color: black;
    transition: transform 0.3s ease;
}