/*.d-flex*/
.w-150{
    width: 150px;
}
/* Light mode warning box */
.alert-warning {
    background-color: #fef3c7; /* yellow-100 */
    border: 1px solid #fde68a; /* yellow-300 */
    color: #92400e; /* yellow-800 */
    border-radius: 0.5rem;
    padding: 1rem;
    gap: 0.75rem;
}

/* Icon sizing (optional) */
.alert-warning .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    color: #ca8a04; /* yellow-600 */
}

/* Dark mode support */
.dark .alert-warning {
    background-color: rgba(202, 138, 4, 0.1); /* rough match for dark:bg-yellow-900/30 */
    border-color: #78350f; /* darker yellow */
    color: #facc15; /* yellow-300 */
}

/* Light mode info box */
.alert-info {
    background-color: #dbeafe; /* blue-100 */
    border: 1px solid #93c5fd; /* blue-300 */
    color: #1e3a8a; /* blue-800 */
    border-radius: 0.5rem;
    padding: 1rem;
    gap: 0.75rem;
}

/* Icon styling (optional, scoped to .alert-info) */
.alert-info .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
    color: #2563eb; /* blue-600 */
}

/* Dark mode support */
.dark .alert-info {
    background-color: rgba(37, 99, 235, 0.1); /* dark blue with alpha */
    border-color: #1e40af; /* blue-700 */
    color: #bfdbfe; /* blue-300 */
}

code {
    background-color: rgba(30, 64, 175, 0.1); /* soft blue background */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ml-1 {
    margin-left: 0.5rem;
}

.ml-2 {
    margin-left: 0.75rem !important;
}

/* RTL overrides */
:dir(rtl) .ml-1 {
    margin-right: 0.5rem;
    margin-left: 0 !important;
}

:dir(rtl) .ml-2 {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
}

/* Version Badge */

.version-badge-wrapper {
    position: relative;
    display: inline-block;
    /*margin-inline-end: .5rem; !* adds space to the right in LTR, left in RTL *!*/
}

.version-badge {
    background-color: #3b82f6; /* Tailwind blue-500 fallback */
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    position: relative;
    cursor: default;
}

.version-tooltip {
    display: none;
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b; /* slate-800 */
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.version-badge:hover .version-tooltip {
    display: block;
}

/* Optional: dark mode override */
.dark .version-tooltip {
    background-color: #334155; /* slate-700 */
}

.version-badge-wrapper {
    position: relative;
    display: inline-block;
    margin-inline-start: 1rem; /* handles RTL automatically */
}

/* SPA BAR */

#nprogress .bar {
    background: #ec4899 !important;
}
#nprogress .spinner-icon {
    border-top-color: #ec4899 !important;
    border-left-color: #ec4899 !important;
}

/* Sidebar tweaks */

.fi-sidebar-item-grouped-border.relative.flex.h-6.w-6.items-center.justify-center{
    display: none;
}

.fi-sidebar-group .fi-sidebar-item-label{
    margin-left: 2.3rem;
}

li[x-data="{ label: null }"] .fi-sidebar-item-label{
    margin-left: 0;
}
