/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0A192F;
}
::-webkit-scrollbar-thumb {
    background: #172A45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00D2FF;
}

/* Base resets & UI tuning */
body {
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Safe Area Padding support */
.safe-top {
    padding-top: calc(12px + env(safe-area-inset-top));
}
.safe-bottom {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* Glow effects */
.glow-cyan {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
}

/* Perspective view transitions */
.perspective-view {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* RTL Specific Overrides */
html[dir="rtl"] .font-cairo {
    font-family: 'Cairo', sans-serif;
}
html[dir="rtl"] .text-left {
    text-align: right;
}
html[dir="rtl"] .text-right {
    text-align: left;
}
html[dir="rtl"] .flex-row-reverse {
    flex-direction: row;
}