/* =========================================================
   🌟 ELGHARIB HAYYAKUM ALLAH TAWEEL FONT DECLARATIONS
   ========================================================= */

@font-face {
    font-family: 'Elgharib Hayyakum Allah Taweel';
    src: url('/fonts/Elgharib-Hayyakum-Allah-Taweel-Light.ttf') format('truetype'),
         url('../fonts/Elgharib-Hayyakum-Allah-Taweel-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Elgharib Hayyakum Allah Taweel';
    src: url('/fonts/Elgharib-Hayyakum-Allah-Taweel-Regular.ttf') format('truetype'),
         url('../fonts/Elgharib-Hayyakum-Allah-Taweel-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Elgharib Hayyakum Allah Taweel';
    src: url('/fonts/Elgharib-Hayyakum-Allah-Taweel-Medium.ttf') format('truetype'),
         url('../fonts/Elgharib-Hayyakum-Allah-Taweel-Medium.ttf') format('truetype');
    font-weight: 500;
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Elgharib Hayyakum Allah Taweel';
    src: url('/fonts/Elgharib-Hayyakum-Allah-Taweel-Bold.ttf') format('truetype'),
         url('../fonts/Elgharib-Hayyakum-Allah-Taweel-Bold.ttf') format('truetype');
    font-weight: 700;
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --vortex-font: 'Elgharib Hayyakum Allah Taweel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================
   🌐 GLOBAL UNIVERSAL FONT ENFORCEMENT
   ========================================================= */

*,
*::before,
*::after,
html,
body, 
.fi-body, 
.fi-layout, 
.filament-main, 
.fi-header, 
.fi-sidebar, 
.fi-topbar, 
.fi-page, 
button, 
input, 
select, 
textarea,
table,
th,
td,
.fi-ta,
.fi-ta-header,
.fi-ta-record,
.fi-section,
.fi-wi,
.fi-modal,
.fi-dropdown,
.fi-badge,
.fi-btn,
.fi-tabs,
.fi-in,
.pricing-page,
.pricing-title,
.pricing-badge,
.pricing-card {
    font-family: 'Elgharib Hayyakum Allah Taweel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   📐 VERTICAL SIDEBAR SEPARATOR & BORDER
   ========================================================= */

.fi-sidebar {
    border-inline-end: 1px solid rgba(156, 163, 175, 0.25) !important;
    box-shadow: 2px 0 16px -4px rgba(0, 0, 0, 0.04) !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dark .fi-sidebar {
    border-inline-end: 1px solid rgba(75, 85, 99, 0.35) !important;
    box-shadow: 2px 0 16px -4px rgba(0, 0, 0, 0.25) !important;
}

[dir="rtl"] .fi-sidebar {
    box-shadow: -2px 0 16px -4px rgba(0, 0, 0, 0.04) !important;
}

[dir="rtl"] .dark .fi-sidebar {
    box-shadow: -2px 0 16px -4px rgba(0, 0, 0, 0.25) !important;
}

/* Topbar Bottom Border */
.fi-topbar {
    border-bottom: 1px solid rgba(156, 163, 175, 0.2) !important;
}

.dark .fi-topbar {
    border-bottom: 1px solid rgba(75, 85, 99, 0.3) !important;
}

/* =========================================================
   🗂️ SIDEBAR ENHANCEMENTS (Dividers, Spacing, Item Glow)
   ========================================================= */

/* Subtle Divider between Sidebar Groups */
.fi-sidebar-group {
    position: relative;
    padding-top: 10px !important;
    margin-top: 10px !important;
    border-top: 1px solid rgba(156, 163, 175, 0.15) !important;
}

.fi-sidebar-group:first-of-type {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Group Label Styling */
.fi-sidebar-group-label,
.fi-sidebar-group-label span,
.fi-sidebar-group-label button {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: rgba(156, 163, 175, 0.9) !important;
    margin-bottom: 4px !important;
}

/* Sidebar Item Links */
.fi-sidebar-item-btn {
    border-radius: 10px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 2px 0 !important;
    padding: 8px 12px !important;
}

/* Active Sidebar Item */
.fi-sidebar-item-active .fi-sidebar-item-btn {
    background: rgba(0, 168, 150, 0.12) !important;
    color: #00a896 !important;
    font-weight: 700 !important;
    box-shadow: inset 3px 0 0 0 #00a896 !important;
}

[dir="rtl"] .fi-sidebar-item-active .fi-sidebar-item-btn {
    box-shadow: inset -3px 0 0 0 #00a896 !important;
}

/* Hover effect */
.fi-sidebar-item-btn:hover {
    background: rgba(0, 168, 150, 0.06) !important;
    transform: translateX(-2px);
}

[dir="ltr"] .fi-sidebar-item-btn:hover {
    transform: translateX(2px);
}

/* Badges in Sidebar */
.fi-sidebar-item-badge {
    border-radius: 999px !important;
    padding: 2px 8px !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
}

/* =========================================================
   ✨ ULTRA-SMOOTH SPA TRANSITIONS & TAB ANIMATIONS
   ========================================================= */

/* Main page content smooth fade */
.fi-page {
    animation: vortexFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vortexFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Tab Navigation */
.fi-tabs-item-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 8px !important;
}

.fi-tabs-item-active .fi-tabs-item-btn {
    font-weight: 700 !important;
}

/* Top Progress bar when navigating (SPA loading bar) */
#nprogress .bar {
    background: #00a896 !important;
    height: 3px !important;
    box-shadow: 0 0 10px #00a896, 0 0 5px #00b4d8 !important;
}

/* =========================================================
   💬 FORM FIELD HINT, TOOLTIP ICONS & LABEL GROUPING
   ========================================================= */

/* Keep Label and Hint Icon tightly grouped together without separating */
.fi-fo-field-label-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.fi-fo-field-label-ctn,
.fi-fo-field-wrp-header,
.fi-fo-field-wrp-label {
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
}

.fi-fo-field-label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 4px !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

.fi-fo-field-label-content {
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* Hint & Info Icons */
.fi-sc-icon,
.fi-fo-field-wrp-hint-icon,
.fi-fo-field-wrp-hint {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.fi-sc-icon svg,
.fi-fo-field-wrp-hint-icon svg,
.fi-sc-icon .fi-icon,
.fi-fo-field-wrp-hint-icon .fi-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    color: #00a896 !important;
    cursor: help !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
}

.fi-sc-icon:hover svg,
.fi-fo-field-wrp-hint-icon:hover svg,
.fi-sc-icon:hover .fi-icon,
.fi-fo-field-wrp-hint-icon:hover .fi-icon {
    transform: scale(1.25) !important;
    color: #028090 !important;
}

/* =========================================================
   🏷️ SIDEBAR FOOTER COMPONENT STYLING
   ========================================================= */

.vortex-sidebar-footer {
    padding: 10px 12px;
    margin: 8px 6px;
    border-radius: 12px;
    background: rgba(0, 168, 150, 0.05);
    border: 1px solid rgba(0, 168, 150, 0.2);
    transition: all 0.25s ease;
    overflow: hidden;
}

/* Card and Section Shadows */
.fi-section {
    border-radius: 16px !important;
    border: 1px solid rgba(156, 163, 175, 0.15) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
}

