/* fix helP button group */
.prev-helpbutton {
    border: 1px solid #6c757d;
}
.help-btn {
	cursor: help!important;
}
/* Modern Dark Theme Tooltips */
.tooltip.ttclass {
    --bs-tooltip-max-width: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    z-index: 9999;
}

.tooltip.ttclass .tooltip-inner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.tooltip.ttclass .tooltip-arrow::before {
    border-top-color: #2c3e50 !important;
    border-bottom-color: #2c3e50 !important;
    border-left-color: #2c3e50 !important;
    border-right-color: #2c3e50 !important;
}

/* Glass Morphism Style */
.tooltip.glass {
    --bs-tooltip-max-width: 280px;
    font-size: 0.8rem;
}

.tooltip.glass .tooltip-inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tooltip.glass .tooltip-arrow::before {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
    border-left-color: rgba(255, 255, 255, 0.15) !important;
    border-right-color: rgba(255, 255, 255, 0.15) !important;
}

/* Minimal Clean Style */
.tooltip.minimal {
    --bs-tooltip-max-width: 250px;
    font-size: 0.82rem;
}

.tooltip.minimal .tooltip-inner {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.tooltip.minimal .tooltip-arrow::before {
    border-top-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
    border-left-color: #ffffff !important;
    border-right-color: #ffffff !important;
}

/* Neon Glow Style */
.tooltip.neon {
    --bs-tooltip-max-width: 260px;
    font-size: 0.85rem;
}

.tooltip.neon .tooltip-inner {
    background: #0f0f23;
    color: #00ff88;
    border: 1px solid #00ff88;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2),
        inset 0 0 10px rgba(0, 255, 136, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    font-family: 'Courier New', monospace;
}

.tooltip.neon .tooltip-arrow::before {
    border-top-color: #00ff88 !important;
    border-bottom-color: #00ff88 !important;
    border-left-color: #00ff88 !important;
    border-right-color: #00ff88 !important;
    filter: drop-shadow(0 0 2px rgba(0, 255, 136, 0.5));
}

/* Professional Blue */
.tooltip.professional {
    --bs-tooltip-max-width: 320px;
    font-size: 0.88rem;
}

.tooltip.professional .tooltip-inner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tooltip.professional .tooltip-arrow::before {
    border-top-color: #1e3a8a !important;
    border-bottom-color: #1e3a8a !important;
    border-left-color: #1e3a8a !important;
    border-right-color: #1e3a8a !important;
}

/* Warning/Error Style */
.tooltip.warning {
    --bs-tooltip-max-width: 280px;
    font-size: 0.85rem;
}

.tooltip.warning .tooltip-inner {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.tooltip.warning .tooltip-arrow::before {
    border-top-color: #dc2626 !important;
    border-bottom-color: #dc2626 !important;
    border-left-color: #dc2626 !important;
    border-right-color: #dc2626 !important;
}

/* Success Style */
.tooltip.success {
    --bs-tooltip-max-width: 270px;
    font-size: 0.85rem;
}

.tooltip.success .tooltip-inner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.tooltip.success .tooltip-arrow::before {
    border-top-color: #059669 !important;
    border-bottom-color: #059669 !important;
    border-left-color: #059669 !important;
    border-right-color: #059669 !important;
}

/* Animation Classes */
.tooltip {
    transition: opacity 0.2s ease-in-out;
}

/*.tooltip.show {
    animation: tooltipFadeIn 0.3s ease-out;
}*/

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tooltip {
        --bs-tooltip-max-width: 200px !important;
        font-size: 0.8rem !important;
    }
    
    .tooltip .tooltip-inner {
        padding: 8px 12px !important;
    }
}

/* Container for single row alignment */
.single-row-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Degree input - compact */
.degree-input-container {
    flex: 0 0 80px;
}

.degree-input-container input {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
}

/* Method selector - flexible width */
.method-selector-container {
    flex: 1 1 200px;
    min-width: 200px;
}

.method-selector-container select {
    font-size: 0.9rem;
}

/* Perfectly aligned help buttons and BigNumber group (light theme) */
.input-group .help-btn,
.bignum-container .help-btn {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.375rem 0.55rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(1.5em + 0.75rem + 2px); /* exact Bootstrap form-select height */
    box-sizing: border-box;
    margin-left: -1px;
}
.input-group .help-btn i,
.bignum-container .help-btn i {
    font-size: 0.85rem;
    line-height: 1;
}
.input-group .form-select,
.bignum-toggle.btn {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}
.bignum-container {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    width: 100%;
}
.col-md-4.mb-2 > .input-group,
.col-md-4.mb-2 > .bignum-container {
    display: flex;
    align-items: stretch;
}

.bignum-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    padding: 0.375rem 0.55rem;
    line-height: 1.5;
}
.bignum-toggle input[type="checkbox"] {
    display: none;
}
.bignum-toggle span {
    vertical-align: middle;
}
.tiny-number-input {
    background: #fff;
    border: 1px solid #ccc;
    color: #212529;
    width: 60px;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    padding: 0.25rem 0.4rem;
    text-align: center;
    transition: all 0.12s ease;
    box-sizing: border-box;
    margin-left: 0.25rem;
    height: calc(1.5em  + 2px);
}
.tiny-number-input:disabled {
    display: none;
}
.tiny-number-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.12rem rgba(13,110,253,0.12);
}


/* Interval inputs - compact inline */
.interval-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.interval-container input {
    width: 70px;
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
}

.interval-container label,
.interval-container span {
    margin: 0;
    font-weight: normal;
}

/* Symmetry checkbox */

.symmetry-container label {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .single-row-controls {
        gap: 8px;
    }
    
    .method-selector-container {
        flex: 1 1 180px;
        min-width: 180px;
    }
    
    .bignum-container {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 992px) {
    .single-row-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .degree-input-container {
        flex: 0 0 70px;
    }
    
    .method-selector-container {
        flex: 1 1 160px;
        min-width: 160px;
    }
    
    .interval-container input {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .single-row-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .degree-input-container,
    .method-selector-container,
    .bignum-container,
    .interval-container,
    .symmetry-container {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .interval-container {
        justify-content: center;
    }
}
#chart {
    width: 100%;
    height: 400px; /* or any desired height */
}

/*locally stored function history*/
.dropdown-menu {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
}
.input-group-text {
    position: relative;
}
.input-group-text .dropdown {
    position: static;
}
.input-group-text .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 0.125rem;
}

/* Align dropdown with the input field */
#fxHistory {
    left: auto;
    right: 0;
}

#wxHistory {
    left: auto;
    right: 0;
}
.dropdown-menu.show {
	display: block !important;
}
.dropdown-item {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}
.dropdown-item:hover {
	background-color: #f1f1f1;
}
.table-hover tbody tr:hover {
    cursor: pointer;
    background-color: rgba(0,0,0,.075);
}
table#savedTable tbody tr.clicked-row {
    background-color: #e0e0e0 !important;
    transition: background-color 0.3s ease;
}
table#savedTable tbody tr.clicked-row:hover {
    background-color: #d0d0d0 !important;
}
.collapse-header {
	cursor: pointer;
	padding: 10px;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
}
.collapse-header:hover {
	background-color: #e9ecef;
}
.collapse-icon {
	float: right;
	transition: transform 0.3s;
}
.collapsed .collapse-icon {
	transform: rotate(180deg);
}
/*three way radio switch*/
.switch-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.iteration-control-label, .find-reference-label {
    flex: 0 0 100%;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

@media (min-width: 576px) {
    .iteration-control-label, .find-reference-label {
        flex: 0 0 auto;
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

.btn-group-3way {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group-3way .btn {
    flex: 0 1 auto;
    padding: 0.375rem 0.75rem;
    margin: 2px;
    min-width: 0;
}

.btn-group-3way .btn i {
    font-size: 1rem;
}

.btn-group-3way .btn:has(input[type="number"]) {
    padding-right: 2rem;
}

.btn-group-3way .tiny-number-input {
    width: 2rem;
    padding: 0;
    margin-left: 0.25rem;
}

/* Fix for checked state when radio is inside div instead of label */
.btn-group-3way .btn:has(input[type="radio"]:checked),
.btn-group-3way .btn-outline-secondary:has(input[type="radio"]:checked) {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
    border-color: var(--bs-secondary);
}

/* Alternative if :has() is not supported in older browsers */
.btn-group-3way .btn.active,
.btn-group-3way .btn-outline-secondary.active {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
    border-color: var(--bs-secondary);
}

/* Hide the radio input visually but keep it functional */
.btn-group-3way .btn input[type="radio"] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* Make the entire button clickable for radio selection */
.btn-group-3way .btn {
    cursor: pointer;
}

@media (max-width: 575px) {
    .btn-group-3way {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-group-3way .btn {
        width: 100%;
    }
}

.small-number-input {
	width: 3.5rem;
	padding: 0.1rem 0.1rem;
}
/*end three way radio switch*/

/*waiting-cursor*/
.waiting-cursor,
.waiting-cursor *:not(.keep-clickable):not(label[for^="run"]):not(label[for^="pause"]) {
    cursor: wait !important;
}


/*console*/
#consoleOutput {
    resize: both;
    overflow: auto;
}
#consoleMessages p {
    font-family: monospace;
    line-height: 1.4;
}
.resizer {
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}
.rest-of-lines.expanded {
    display: block !important;
}
.expandable .rest-of-lines {
    display: none;
}
.expanded .toggle-button::after {
    content: '▼';
}
.toggle-button {
    cursor: pointer;
    display: none;
}
.expandable .toggle-button {
    display: inline-block;
}
        .function-preview {
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            max-height: 60px;
            overflow: hidden;
            background: #f8f9fa;
            padding: 5px;
            border-radius: 3px;
        }
        
        .comment-preview {
            font-size: 0.85rem;
            max-height: 40px;
            overflow: hidden;
            color: #6c757d;
        }
        
        .table-responsive {
            max-height: 400px;
            overflow-x: auto;
            overflow-y: auto;
            scrollbar-width: thin;
        }
        
        .table-responsive::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }
        
        .table-responsive::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 6px;
        }
        
        .table-responsive::-webkit-scrollbar-thumb {
            background: #6c757d;
            border-radius: 6px;
            border: 2px solid #f8f9fa;
        }
        
        .table thead th {
            position: sticky;
            top: 0;
            z-index: 10;
            background-color: #f8f9fa !important;
            border-bottom: 2px solid #dee2e6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .modal-lg-custom {
            max-width: 90%;
        }
        
        @media (max-width: 768px) {
            .modal-lg-custom {
                max-width: 95%;
            }
        }
/*stored test case table*/
.table-container {
    max-height: 380px; /* Adjust this value as needed */
    overflow-y: auto;
}
#savedTable thead tr {
    position: sticky;
    top: 0;
    background-color: #fff; /* Adjust this to match your table's background color */
    z-index: 1;
}
	/* long scrollable lines */
.scrollable-math {
	width: 100%;
	overflow-x: auto;
	background-color: #f0f0f0;
	padding: 5px 10px;
	border-radius: 5px;
	display: flex;
	align-items: center;
}
.scrollable-math p {
	margin: 0;
	white-space: nowrap;
}
.scrollable-math::-webkit-scrollbar {
	height: 6px;
}
.scrollable-math::-webkit-scrollbar-thumb {
	background-color: #888;
	border-radius: 3px;
}
.scrollable-math::-webkit-scrollbar-track {
	background-color: #f0f0f0;
}
        .custom-select-wrapper {
            position: relative;
            user-select: none;
            width: 300px;
        }
        .custom-select {
            position: relative;
            display: flex;
            flex-direction: column;
            border: 1px solid #394a6d;
        }
        .custom-select__trigger {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 22px;
            font-size: 16px;
            font-weight: 300;
            color: #3b3b3b;
            height: 40px;
            line-height: 40px;
            background: #ffffff;
            cursor: pointer;
        }
        .custom-options {
            position: absolute;
            display: block;
            top: 100%;
            left: 0;
            right: 0;
            border: 1px solid #394a6d;
            border-top: 0;
            background: #fff;
            transition: all 0.5s;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            z-index: 2;
        }
        .custom-select.open .custom-options {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }
        .custom-option {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 22px;
            font-size: 16px;
            font-weight: 300;
            color: #3b3b3b;
            line-height: 40px;
            cursor: pointer;
            transition: all 0.5s;
        }
        .custom-option:hover {
            cursor: pointer;
            background-color: #b2b2b2;
        }
        .custom-option.selected {
            color: #ffffff;
            background-color: #305c91;
        }
        .custom-select input {
            width: 40px;
			height: 30px;
            margin-left: 10px;
        }
        .custom-option .option-value {
            margin-left: 10px;
        }
    .mode-badge {
        cursor: pointer;
        user-select: none;
        transition: all 0.2s ease;
    }
    .mode-badge:hover {
        opacity: 0.9;
    }
    .mode-badge input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
	
	
/* Function History Dropdown - More specific styles */
#fxHistory, #wxHistory {
    max-height: 300px;
    overflow-y: auto;
    min-width: 250px;
    padding: 0;
    z-index: 1001; /* FIXED: Even higher z-index for function history */
    background-color: #ffffff; /* FIXED: White background for better visibility */
    border: 1px solid #ced4da; /* FIXED: Better border */
    border-radius: 0.375rem; /* FIXED: Rounded corners */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* FIXED: Better shadow */
}

#fxHistory.show, #wxHistory.show {
    display: block !important; /* FIXED: Added !important */
}

#fxHistory .dropdown-item, #wxHistory .dropdown-item {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    white-space: normal;
    word-break: break-word;
    color: #212529; /* FIXED: Better text color */
}

#fxHistory .dropdown-item:last-child, #wxHistory .dropdown-item:last-child {
    border-bottom: none;
}

#fxHistory .dropdown-item:hover, #wxHistory .dropdown-item:hover {
    background-color: #f8f9fa;
    cursor: pointer; /* FIXED: Added cursor pointer */
}





#fxHistory .dropdown-item a, #wxHistory .dropdown-item a {
    color: #212529;
    text-decoration: none;
    flex-grow: 1;
    padding: 0.25rem 0;
}

/* Badge Styles */
#fxHistory .badge, #wxHistory .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    width: 34px;
    text-align: center;
}

/* Syntax Radio Button Styles */
.btn-group .btn-outline-warning:hover {
    color: #212529;
}
.btn-check:checked + .btn-outline-warning {
    color: #212529;
}
/* Responsive Styles */
@media (max-width: 576px) {
    .btn-group {
        flex-wrap: wrap;
    }
    .btn-group .btn {
        flex: 1 0 40%;
        margin-bottom: 0.25rem;
    }
    #fxHistory {
        min-width: 100%;
    }
}


/* Bootstrap Dropdown Position Fix */
/* Make the dropdown container position relative to the entire input group */
.form-group .input-group {
  position: relative;
}

/* Override Bootstrap's dropdown positioning */
.form-group .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Make dropdown width match the entire input group */
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 1000;
}

/* Ensure the dropdown button doesn't affect dropdown positioning */
.form-group .dropdown {
  position: static;
}

/* Make sure the dropdown toggle button's dropdown is aligned with input group */
.form-group .dropdown-toggle::after {
  vertical-align: middle;
}

/* Additional style to ensure proper spacing */
.form-group .dropdown-menu {
  padding: 0.5rem 0;
}
/* CSS for dropdown positioning and function input styling */
.form-group .input-group {
  position: relative;
}

.form-group .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  z-index: 1000;
}

.form-group .dropdown {
  position: static;
}

/* Function input with prefix and suffix styling */
.function-input-group {
  display: flex;
  position: relative;
  align-items: stretch;
  width: 100%;
}

.syntax-prefix,
.syntax-suffix {
  display: flex;
  align-items: center;
  background-color: #e9ecef;
  color: #495057;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  white-space: nowrap;
}

.syntax-prefix {
  border-right: none;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.syntax-suffix {
  border-left: none;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}


/* Alternative Badge Color Scheme (Optional) */
.badge.bg-warning {
    background-color: #ff9800 !important; /* Brighter orange for arrow functions */
    color: #212529;
}
.badge.bg-primary {
    background-color: #2979ff !important; /* Brighter blue for JS functions */
    color: white;
}
.badge.bg-info {
    background-color: #00b0ff !important; /* Cyan for mathematical */
    color: #212529;
}
.badge.bg-success {
    background-color: #00c853 !important; /* Brighter green for TeX */
    color: #212529;
}
/* Custom Scrollbar for Function History Dropdown */
#fxHistory::-webkit-scrollbar {
    width: 8px;
}
#fxHistory::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#fxHistory::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
#fxHistory::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Fade-in Animation for Help Text */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* infoBox start */	
.info-box-container {
    max-width: 400px;
}
.info-box {
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    word-wrap: break-word;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    animation: infoBoxFadeIn 0.3s ease-out forwards;
}
.info-box:last-child {
    margin-bottom: 0;
}

.info-box.fade-out {
    animation: infoBoxFadeOut 0.3s ease-in forwards;
}

@keyframes infoBoxFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes infoBoxFadeOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}
        /* Success variant */
        .info-box.success {
            background: rgba(40, 167, 69, 0.9);
            border-color: rgba(40, 167, 69, 0.3);
        }

        /* Warning variant */
        .info-box.warning {
            background: rgba(255, 193, 7, 0.9);
            color: #212529;
            border-color: rgba(255, 193, 7, 0.3);
        }

        /* Error variant */
        .info-box.error {
            background: rgba(220, 53, 69, 0.9);
            border-color: rgba(220, 53, 69, 0.3);
        }

        /* Info variant */
        .info-box.info {
            background: rgba(13, 110, 253, 0.9);
            border-color: rgba(13, 110, 253, 0.3);
        }
/* infoBox end */	
/* Remove the original radio button groups entirely */
.syntax-toggle {
    display: none;
}

/* Style the function input groups to use flexbox layout */
.function-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Style the syntax dropdown selectors */
.syntax-dropdown {
    min-width: 140px;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
}

.syntax-dropdown:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure the syntax prefix maintains its styling */
.syntax-prefix {
    white-space: nowrap;
    font-family: monospace;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    margin: 0;
}

/* Make the main input field take remaining space */
.function-input-group input[type="text"] {
    flex: 1;
}

/* Style the syntax suffix */
.syntax-suffix {
    white-space: nowrap;
    font-family: monospace;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .function-input-group {
        flex-wrap: wrap;
    }
    
    .syntax-dropdown {
        min-width: 120px;
        font-size: 0.8rem;
    }
}

/* Optional: Style for when dropdown is active/focused */
.syntax-dropdown:hover {
    border-color: #adb5bd;
}

/* Ensure proper spacing between the two function groups */
.form-group fieldset + .function-input-group {
    margin-top: 15px;
}