Spaces:
Running
Running
Z User
fix(mobile+load): full platform review — phone cropping, boot race, hung-provider stalls
8054c5d Download src/index.css from ahmdelbaz28/AHMDRTAP: direct link, hf CLI and curl.
- Browser
- Download file 76.9 kB
-
https://huggingface.co/spaces/ahmdelbaz28/AHMDRTAP/resolve/main/src/index.css
- Command line
-
hf download hf://spaces/ahmdelbaz28/AHMDRTAP/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/ahmdelbaz28/AHMDRTAP/resolve/main/src/index.css
76.9 kB
/* Self-hosted @font-face declarations — MUST be first so the fonts resolve
before Tailwind base styles reference the families. */
@import './fonts.css';
@import './elite-animations.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ════════════════════════════════════════════════════════════════════
CHATBOT — text containment + word wrapping
Ensures long words + URLs don't break out of the chat bubble.
════════════════════════════════════════════════════════════════════ */
.overflow-wrap-anywhere {
overflow-wrap: anywhere;
word-wrap: break-word;
}
.word-break-break-word {
overflow-wrap: break-word;
-webkit-hyphens: auto;
hyphens: auto;
}
/* Chatbot messages: ensure code blocks scroll horizontally instead of
overflowing the bubble width */
.chatbot-messages pre {
max-width: 100%;
overflow-x: auto;
}
.chatbot-messages code {
word-break: break-all;
}
.chatbot-messages p {
margin-bottom: 0.5rem;
}
.chatbot-messages p:last-child {
margin-bottom: 0;
}
.chatbot-messages ul, .chatbot-messages ol {
padding-inline-start: 1.2rem;
margin-bottom: 0.5rem;
}
.chatbot-messages li {
margin-bottom: 0.2rem;
}
/* ── Chat markdown: numbered steps, bullets, headings ──
RTL-aware via logical properties (inset-inline-start): the number badge and
bullet dot sit on the RIGHT in Arabic bubbles and on the LEFT in English. */
.chatbot-messages .chat-h {
font-weight: 700;
color: #f8fafc;
font-size: 0.92em;
margin: 0.45rem 0 0.2rem;
}
.chatbot-messages .chat-ol {
list-style: none;
margin: 0.3rem 0;
padding: 0;
}
.chatbot-messages .chat-ol li {
position: relative;
padding-inline-start: 2.05rem;
margin-bottom: 0.45rem;
min-height: 1.35rem;
}
.chatbot-messages .chat-ol li::before {
content: attr(data-n);
position: absolute;
inset-inline-start: 0;
top: 0.02em;
min-width: 1.35rem;
height: 1.35rem;
padding-inline: 0.28rem;
border-radius: 0.45rem;
display: inline-flex;
align-items: center;
justify-content: center;
/* WCAG AA: explicit dark base under the translucent cyan tint so the
analyzer composites the text color against the real dark theme
(cyan-400 #22d3ee vs #0a0e17 = ~10.6:1, well above the 4.5:1 floor). */
background-color: #0a0e17;
background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.3));
border: 1px solid rgba(6, 182, 212, 0.35);
color: #22d3ee;
font-size: 10.5px;
font-weight: 700;
line-height: 1;
box-sizing: border-box;
}
.chatbot-messages .chat-ul {
list-style: none;
margin: 0.3rem 0;
padding: 0;
}
.chatbot-messages .chat-ul li {
position: relative;
padding-inline-start: 1.1rem;
margin-bottom: 0.3rem;
}
.chatbot-messages .chat-ul li::before {
content: "";
position: absolute;
inset-inline-start: 0.1rem;
top: 0.5em;
width: 5px;
height: 5px;
border-radius: 9999px;
background: #22d3ee;
}
:root {
/* ════════════════════════════════════════════════════════════════════
PREMIUM DARK THEME — WCAG AA compliant contrast ratios
════════════════════════════════════════════════════════════════════ */
/* Surfaces */
--color-background: #0B0F19;
--color-primary: #111827;
--color-secondary: #1F2937;
--color-muted: #374151;
--color-border: #4B5563;
/* Text — high contrast for readability */
--color-foreground: #F9FAFB;
--color-on-primary: #FFFFFF;
--color-text: #F9FAFB;
--color-text-secondary: #D1D5DB;
--color-text-muted: #9CA3AF;
--color-text-faint: #6B7280;
/* Accents */
--color-accent: #F97316;
--color-accent-secondary: #06B6D4;
--color-destructive: #EF4444;
--color-ring: #F97316;
/* Aliases */
--color-bg: var(--color-background);
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;
--space-3xl: 64px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
/* Bottom-corner FAB stack offset (safe-area aware) — used by the
chatbot / scroll-top floating action buttons. */
--fab-edge: max(env(safe-area-inset-bottom, 0px) + 0.75rem, 0.75rem);
/* Brand signature system (docs/BRAND-KIT.md) — orange→cyan gradient */
--brand-sig-from: #F97316;
--brand-sig-to: #06B6D4;
--brand-sig-thickness: 3px;
--brand-sig-gradient: linear-gradient(
90deg,
var(--brand-sig-from),
var(--brand-sig-to)
);
}
/* ✅ MOBILE SAFETY NET (owner report 2026-12-02, "page wider than the phone
frame"): one unbreakable token (a long email, URL, or ID) inside any future
component must never widen the whole page again. `clip` (not `hidden`) is
deliberate: `hidden` turns the element into a scroll container and breaks
position:sticky headers, while `clip` simply forbids overflow painting with
no side effects on scrolling or sticky positioning. Individual components
still own their inner horizontal scrollers (tables etc.) — this only stops
the page-level blowout. */
html,
body {
overflow-x: clip;
}
body {
background-color: var(--color-bg);
color: var(--color-text);
margin: 0;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Notched phones (viewport-fit=cover): pad the page edges away from the
sensor notch / home indicator. env() evaluates to 0 on ordinary
displays → zero visual change there. */
padding-left: env(safe-area-inset-left, 0px);
padding-right: env(safe-area-inset-right, 0px);
padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Primary Button */
.btn-primary {
background: var(--color-accent);
/* WCAG AA: near-black text on the bright accent (orange #F97316 dark theme
/ cyan-600 light theme). White text measured only 2.80:1 / 3.68:1. */
color: #0a0e17;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: opacity 200ms ease, transform 200ms ease;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-primary:hover {
opacity: 0.9;
transform: translateY(-1px);
}
/* Secondary Button */
.btn-secondary {
background: transparent;
color: var(--color-accent);
border: 2px solid var(--color-accent);
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: background-color 200ms ease;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-secondary:hover {
background: rgba(249, 115, 22, 0.1);
}
/* Cards */
.card {
background: var(--color-primary);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 24px;
box-shadow: var(--shadow-md);
transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
cursor: pointer;
}
.card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
border-color: var(--color-accent);
}
/* Inputs */
.input {
padding: 12px 16px;
background: var(--color-background);
border: 1px solid var(--color-muted);
color: var(--color-foreground);
border-radius: 8px;
font-size: 16px;
transition: border-color 200ms ease;
}
.input:focus {
border-color: var(--color-accent);
outline: none;
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
/* Cyberpunk specific effects */
.text-neon {
text-shadow: 0 0 8px rgba(249, 115, 22, 0.8), 0 0 20px rgba(249, 115, 22, 0.4);
}
.border-hud {
border: 1px solid var(--color-border);
box-shadow: inset 0 0 10px rgba(67, 56, 202, 0.2);
}
/* ════════════════════════════════════════════════════════════════════
STARFIELD BACKGROUND — sits behind everything (z-index: -1).
════════════════════════════════════════════════════════════════════ */
#root {
position: relative;
z-index: 0;
}
/* ── Hero glow effect ── */
.hero-glow {
background: radial-gradient(ellipse at 20% 30%, rgba(249,115,22,0.15) 0%, transparent 50%);
}
/* ── CTA gradient banner ── */
.cta-gradient {
background: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(249,115,22,0.05) 100%);
border: 1px solid rgba(249,115,22,0.2);
}
/* ── Promo pattern overlay ── */
.promo-pattern {
background-image: radial-gradient(circle at 25% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
radial-gradient(circle at 75% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
/* ── Gradient text utility ──
Brand Kit §2: the headline keyword uses the OFFICIAL signature gradient
(orange #F97316 → cyan #06B6D4) — the same signature as the scroll bar,
splash and course-card hover, so every screenshot carries the brand mark. */
.gradient-text {
background: linear-gradient(120deg, #F97316 15%, #F97316 35%, #06B6D4 85%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ════════════════════════════════════════════════════════════════════
FLOATING ANIMATIONS — Lightweight CSS-only (GPU-accelerated)
════════════════════════════════════════════════════════════════════ */
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.animate-float {
animation: float 3s ease-in-out infinite;
will-change: transform;
}
@keyframes floatSlow {
0%, 100% { transform: translateY(0) rotate(0deg); }
33% { transform: translateY(-6px) rotate(1deg); }
66% { transform: translateY(-3px) rotate(-1deg); }
}
.animate-float-slow {
animation: floatSlow 5s ease-in-out infinite;
will-change: transform;
}
@keyframes floatIcon {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-5px) scale(1.05); }
}
.animate-float-icon {
animation: floatIcon 2.5s ease-in-out infinite;
will-change: transform;
}
/* ── Pulse glow for icons ── */
@keyframes pulseGlow {
0%, 100% { box-shadow: 0 0 8px rgba(6,182,212,0.2); }
50% { box-shadow: 0 0 20px rgba(6,182,212,0.4), 0 0 40px rgba(6,182,212,0.1); }
}
.animate-pulse-glow {
animation: pulseGlow 3s ease-in-out infinite;
}
/* ── ADVANCED FLOATING ANIMATIONS ── */
/* Float Up with subtle rotation - for scroll reveal */
@keyframes floatUp {
0% { transform: translateY(40px) rotate(-2deg); opacity: 0; }
60% { transform: translateY(-8px) rotate(1deg); opacity: 1; }
100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}
.animate-float-up {
animation: floatUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
will-change: transform, opacity;
}
/* Float Down - for elements entering from top */
@keyframes floatDown {
0% { transform: translateY(-40px) rotate(2deg); opacity: 0; }
60% { transform: translateY(8px) rotate(-1deg); opacity: 1; }
100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}
.animate-float-down {
animation: floatDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
will-change: transform, opacity;
}
/* Float Scale - for icon pop-in */
@keyframes floatScale {
0% { transform: scale(0.5) translateY(20px); opacity: 0; }
70% { transform: scale(1.1) translateY(-5px); opacity: 1; }
100% { transform: scale(1) translateY(0); opacity: 1; }
}
.animate-float-scale {
animation: floatScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
will-change: transform, opacity;
}
/* Continuous Float with subtle drift - for hero sections */
@keyframes floatDrift {
0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
25% { transform: translateY(-12px) translateX(5px) rotate(1deg); }
50% { transform: translateY(-6px) translateX(-3px) rotate(-0.5deg); }
75% { transform: translateY(-15px) translateX(3px) rotate(0.5deg); }
}
.animate-float-drift {
animation: floatDrift 6s ease-in-out infinite;
will-change: transform;
}
/* Float Bounce - playful bounce effect */
@keyframes floatBounce {
0%, 100% { transform: translateY(0); }
15% { transform: translateY(-12px) scale(1.05); }
30% { transform: translateY(-5px) scale(0.98); }
45% { transform: translateY(-10px) scale(1.02); }
60% { transform: translateY(-3px) scale(0.99); }
75% { transform: translateY(-7px) scale(1.01); }
}
.animate-float-bounce {
animation: floatBounce 4s ease-in-out infinite;
will-change: transform;
}
/* Float Wave - sequential wave effect for lists */
@keyframes floatWave {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-8px) scale(1.02); }
}
.animate-float-wave {
animation: floatWave 3s ease-in-out infinite;
will-change: transform;
}
/* Float Pulse - breathing effect combined with float */
@keyframes floatPulse {
0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
50% { transform: translateY(-10px) scale(1.03); opacity: 0.9; }
}
.animate-float-pulse {
animation: floatPulse 2.5s ease-in-out infinite;
will-change: transform, opacity;
}
/* Float Rotate - gentle rotation while floating */
@keyframes floatRotate {
0%, 100% { transform: translateY(0) rotate(0deg); }
33% { transform: translateY(-10px) rotate(5deg); }
66% { transform: translateY(-5px) rotate(-3deg); }
}
.animate-float-rotate {
animation: floatRotate 4s ease-in-out infinite;
will-change: transform;
}
/* Scroll-triggered animation delay utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }
/* ── Grid pattern for sections ── */
.grid-pattern {
background-image: linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
background-size: 60px 60px;
}
/* ── Fade in animation ── */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
/* ── Glow button effect ── */
.glow-btn {
box-shadow: 0 0 20px rgba(6,182,212,0.3);
transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.glow-btn:hover {
box-shadow: 0 0 30px rgba(6,182,212,0.5), 0 0 60px rgba(6,182,212,0.2);
transform: translateY(-1px);
}
.glow-btn:active {
transform: translateY(0);
}
/* ── Hero background image ── */
.hero-bg-image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
opacity: 0.4;
filter: brightness(0.8) saturate(1.2);
}
/* ── Hero image animations ── */
@keyframes heroGlowPulse {
0%, 100% { box-shadow: 0 0 30px rgba(6,182,212,0.4), 0 0 60px rgba(6,182,212,0.2), 0 0 100px rgba(6,182,212,0.1), inset 0 0 30px rgba(6,182,212,0.05); }
50% { box-shadow: 0 0 40px rgba(6,182,212,0.6), 0 0 80px rgba(6,182,212,0.3), 0 0 120px rgba(6,182,212,0.15), inset 0 0 40px rgba(6,182,212,0.08); }
}
@keyframes heroShimmer {
0% { transform: translateX(-100%); }
50% { transform: translateX(100%); }
100% { transform: translateX(-100%); }
}
@keyframes heroFloat {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}
.hero-image-wrapper {
position: relative;
animation: heroFloat 4s ease-in-out infinite;
will-change: transform;
}
.hero-image-glow-ring {
position: relative;
border-radius: 1rem;
padding: 3px;
background: linear-gradient(135deg, rgba(6,182,212,0.6), rgba(16,185,129,0.3), rgba(6,182,212,0.6));
animation: heroGlowPulse 3s ease-in-out infinite;
}
.hero-image-display {
display: block;
width: 100%;
height: auto;
border-radius: 0.85rem;
opacity: 1;
object-fit: cover;
}
.hero-image-shimmer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
border-radius: 0 0 1rem 1rem;
overflow: hidden;
background: linear-gradient(90deg, transparent, rgba(6,182,212,0.5), transparent);
animation: heroShimmer 4s ease-in-out infinite;
}
/* ── Video protection utilities ── */
.no-select {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.watermark {
pointer-events: none;
}
/* ── Mobile menu backdrop ── */
.mobile-menu-backdrop {
background: rgba(7,11,18,0.97);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
/* ── SidebarX-style drawer cells (port of selectedItemDecoration:
gradient fill + 37% border + boxShadow blur 30) ── */
.sidebarx-cell-active {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .sidebarx-cell-active {
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
/* ── Notification toast entrance/exit ── */
.notification-toast {
will-change: transform, opacity;
animation: notificationSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes notificationSlideIn {
from {
transform: translateY(12px) scale(0.95);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}
/* ════════════════════════════════════════════════════════════════════
CHATBOT FAB — Shake + Sparkle Animations
════════════════════════════════════════════════════════════════════ */
@keyframes chatbotFabShake {
0%, 100% { transform: rotate(0deg); }
10% { transform: rotate(-8deg) scale(1.05); }
20% { transform: rotate(8deg) scale(1.05); }
30% { transform: rotate(-6deg) scale(1.03); }
40% { transform: rotate(6deg) scale(1.03); }
50% { transform: rotate(-4deg) scale(1.02); }
60% { transform: rotate(4deg) scale(1.02); }
70% { transform: rotate(-2deg); }
80% { transform: rotate(2deg); }
90% { transform: rotate(0deg); }
}
.chatbot-fab-shake {
animation: chatbotFabShake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
/* Sparkle container positioning + bottom-corner layout for the FAB
(merged per SonarCloud S4666): the chatbot FAB sits bottom-most on
mobile (primary assistant, best thumb reach). */
.chatbot-fab {
overflow: visible;
right: 0.75rem;
bottom: var(--fab-edge);
}
/* ════════════════════════════════════════════════════════════════════
SCROLLBAR STYLING
════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #070b12;
}
::-webkit-scrollbar-thumb {
background: #1f2d44;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #2d3f52;
}
/* ════════════════════════════════════════════════════════════════════
RTL / ARABIC SUPPORT
════════════════════════════════════════════════════════════════════ */
/* Arabic font family for RTL */
[dir="rtl"] body {
font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.75;
font-size: 1.05rem; /* Slightly larger for better Arabic legibility */
}
/* Formal headings */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
font-family: 'Cairo', sans-serif;
font-weight: 700;
line-height: 1.4;
letter-spacing: normal !important;
}
/* Paragraphs need more breathing room in Arabic */
[dir="rtl"] p {
line-height: 1.85;
}
/* Disable uppercase and tracking for Arabic (no concept of uppercase) */
[dir="rtl"] .uppercase {
text-transform: none !important;
}
[dir="rtl"] .tracking-wider,
[dir="rtl"] .tracking-widest,
[dir="rtl"] .tracking-wide {
letter-spacing: normal !important;
}
/* Mirror hero glow for RTL */
[dir="rtl"] .hero-glow {
background: radial-gradient(ellipse at 80% 30%, rgba(6,182,212,0.08) 0%, transparent 50%);
}
/* Mirror shimmer direction for RTL — combined with the animation-name
declaration below to avoid a duplicate selector (SonarCloud S4666). */
[dir="rtl"] .hero-image-shimmer {
background: linear-gradient(270deg, transparent, rgba(6,182,212,0.5), transparent);
animation-name: heroShimmerRtl;
}
@keyframes heroShimmerRtl {
0% { transform: translateX(100%); }
50% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
/* Safe area insets for notch phones + smooth scrolling. The two `html`
rules were merged per SonarCloud S4666. */
html {
--sat: env(safe-area-inset-top);
--sab: env(safe-area-inset-bottom);
--sal: env(safe-area-inset-left);
--sar: env(safe-area-inset-right);
scroll-behavior: smooth;
}
/* Ensure proper touch targets on mobile */
@media (pointer: coarse) {
button, a, [role="button"] {
min-height: 44px;
min-width: 44px;
}
/* ✅ ROOT FIX (owner report 2026-12-01, "select-all checkbox ضخم ومش احترافي
ومش قادر أختار كذا يوزر"): form CONTROLS are exempt from the 44px inflate.
A 16px checkbox stretched to 44px looks broken, distorts the approval rows
and made multi-select unreliable on phones. The touch target is restored
with a transparent ::before hit-pad around the TRUE visual size — same
44px thumb-reach, zero visual distortion (the Apple-HIG pattern). */
button[role="checkbox"],
button[role="switch"] {
position: relative;
min-height: 0;
min-width: 0;
}
button[role="checkbox"]::before,
button[role="switch"]::before {
content: "";
position: absolute;
inset: -14px; /* 16px control + 14px pad on each side = 44px hit area */
}
}
/* ── Mobile-native platform baseline (mobile-native skill) ── */
/* §4: iOS zooms the page when an input under 16px gets focus and never
zooms back out. 16px on touch devices only — desktop keeps its sizes. */
@media (pointer: coarse) {
input, textarea, select {
font-size: 16px !important;
}
}
/* §5 + §8: instant taps (no double-tap-zoom wait) and no long-press text
selection / callout on controls. Content text stays selectable. */
button, a, [role="button"] {
touch-action: manipulation;
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
}
/* ── Floating action buttons — compact bottom-corner stack ───────────
The two FABs (chatbot, scroll-top) form ONE tidy vertical column
hugging the bottom edge: smaller on mobile (40px) so they cover
minimal reading space, and thumb-reachable. Step = 40px btn + 10px gap
= 3.125rem. Desktop (md+) uses full-size buttons in the real corners:
scroll-top bottom-left, chatbot bottom-right. */
/* --fab-edge custom property lives in the :root block at the top of this
file (merged per SonarCloud S4666). */
/* Scroll-top: top of the mobile column (appears only after scrolling).
The transition drives the YouTube-style reveal (.fab-scroll-hidden below). */
.scroll-top-fab {
right: 0.75rem;
left: auto;
bottom: calc(var(--fab-edge) + 3.125rem);
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
@media (min-width: 768px) {
.scroll-top-fab {
bottom: max(env(safe-area-inset-bottom, 0px) + 1.5rem, 1.5rem);
left: 1.5rem;
right: auto;
}
}
@media (min-width: 768px) {
.chatbot-fab {
right: 1.5rem;
bottom: max(env(safe-area-inset-bottom, 0px) + 1.5rem, 1.5rem);
}
}
/* Minimized chat bubble lands exactly in the chatbot FAB slot. */
.chatbot-min {
right: 0.75rem;
bottom: var(--fab-edge);
}
@media (min-width: 768px) {
.chatbot-min {
right: 1.5rem;
bottom: max(env(safe-area-inset-bottom, 0px) + 1.5rem, 1.5rem);
}
}
/* The 44px coarse-pointer minimum does not apply to the compact FABs —
they are 40px on mobile by design (still comfortable tap targets). */
@media (pointer: coarse) {
button.chatbot-fab,
button.scroll-top-fab {
min-height: 0;
min-width: 0;
}
}
/* ── Chat header compaction (owner request: reclaim vertical chat space) ──
The global 44px coarse-pointer touch rule and the RTL Arabic line-height
rules (h3 1.4 / p 1.85) inflate the chat header on phones. Inside the
header only, restore the compact sizes: 32px icon buttons and tight title
lines. Chat MESSAGE bubbles keep the roomy Arabic line-height. */
@media (pointer: coarse) {
.chatbot-header button,
.chatbot-header [role="button"] {
min-height: 32px;
min-width: 32px;
}
}
.chatbot-header h3 {
line-height: 1.25 !important;
}
.chatbot-header p {
line-height: 1.3 !important;
}
/* ── YouTube-style scroll behavior (useFabScrollVisibility) ─────────────
While the user scrolls DOWN the FABs dip below the screen edge so they
never cover the text being read; scrolling UP or pausing reveals them
again. The 130% offset guarantees the button fully clears the edge. */
.fab-scroll-hidden {
transform: translateY(calc(130% + 2rem)) scale(0.8) !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* ── Mobile fullscreen chat (owner request) ──────────────────────────────
On phones the chat window opens edge-to-edge over the whole screen for a
larger, clearer reading area. Desktop (>767px) keeps the 420px card. */
.chatbot-fullscreen {
border-radius: 0 !important;
}
.chatbot-fullscreen .chatbot-messages {
font-size: 15px;
}
.chatbot-fullscreen .chatbot-bubble {
font-size: 14.5px;
line-height: 1.75;
}
@media (min-width: 768px) {
/* Class is only attached under 768px by the component; this guard keeps
the fullscreen geometry from ever leaking into desktop layouts. */
.chatbot-fullscreen:not(.chatbot-min) {
max-width: 420px !important;
}
}
/* RTL overrides are now handled via Tailwind logical properties (end-, start-, ms-, me-)
Legacy CSS RTL overrides removed — see ChatBot, CourseCard, CourseDetail, Home, Navbar */
/* ════════════════════════════════════════════════════════════════════
ACCESSIBILITY
════════════════════════════════════════════════════════════════════ */
/* Focus visible for all interactive elements */
*:focus-visible {
outline: 2px solid #06b6d4;
outline-offset: 2px;
}
/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
outline: none;
}
/* Skip nav link */
.skip-link:focus {
clip: auto !important;
width: auto !important;
height: auto !important;
margin: 0 !important;
padding: 8px 16px !important;
}
/* ── Reduced motion preference — the ONE consolidated kill-switch for
every motion-bearing selector in this file (SonarCloud S9440) ── */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation: none !important;
transition-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
}
.animate-float,
.animate-float-slow,
.animate-float-icon,
.animate-pulse-glow,
.logo-3d-container {
animation: none !important;
}
}
/* ════════════════════════════════════════════════════════════════════
PERFORMANCE: Smooth scrolling & render optimization
════════════════════════════════════════════════════════════════════ */
/* Merged with the `html` rule above (L486) per SonarCloud S4666. The
scroll-behavior declaration has been added to that block. */
/* Only use paint containment to avoid clipping absolute children and breaking backdrop-filter.
layout containment creates new stacking/containing blocks that break fixed/absolute positioning. */
section {
contain: paint;
}
/* GPU-accelerated transitions for interactive elements */
a, button {
-webkit-tap-highlight-color: transparent;
}
.group:hover .group-hover\:will-change-transform {
will-change: transform;
}
/* Image placeholder while loading — matches site background to avoid visible rectangle */
img[loading="lazy"] {
background: #0a0e17;
}
/* ════════════════════════════════════════════════════════════════════
LOGO BADGE
────────────────────────────────────────────────────────────────────
The breathing glow + hover scale on the Logo3D component are driven
inline by the component (so they stay co-located with the JSX). This
block is intentionally minimal — keep the container GPU-friendly.
════════════════════════════════════════════════════════════════════ */
.logo-3d-container {
transform-style: preserve-3d;
will-change: transform;
}
/* ── Card shimmer shine sweep effect ── */
@keyframes shimmerShine {
0% { transform: translateX(-100%) rotate(45deg); }
100% { transform: translateX(200%) rotate(45deg); }
}
.shimmer-shine {
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: linear-gradient(
90deg,
transparent 0%,
rgba(6, 182, 212, 0.06) 50%,
transparent 100%
);
transform: skewX(-20deg);
animation: shimmerShine 3s ease-in-out infinite;
animation-delay: 1s;
pointer-events: none;
}
/* ── Animated gradient border on hover ── */
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* ── Ripple effect for buttons ── */
@keyframes ripple {
0% { transform: scale(0); opacity: 0.6; }
100% { transform: scale(4); opacity: 0; }
}
.ripple-effect {
position: relative;
overflow: hidden;
}
.ripple-effect::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
background-image: radial-gradient(circle, rgba(6,182,212,0.3) 10%, transparent 10%);
background-repeat: no-repeat;
background-position: center;
transform: scale(0);
opacity: 0;
}
.ripple-effect:active::after {
animation: ripple 0.6s ease-out;
}
/* ── Animated typing cursor for chatbot ── */
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.animate-typing-cursor {
animation: blink 0.8s ease-in-out infinite;
}
/* ── Streaming text fade-in (smooth appearance of each chunk) ── */
@keyframes streamFadeIn {
from { opacity: 0.75; transform: translateY(3px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-stream-fade {
animation: streamFadeIn 0.2s ease-out;
}
/* ── Typing indicator enter/exit (bouncing dots) ── */
@keyframes typingEnter {
from { opacity: 0; transform: translateY(8px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typingExit {
from { opacity: 1; transform: translateY(0) scale(1); }
to { opacity: 0; transform: translateY(8px) scale(0.96); }
}
.animate-typing-enter {
animation: typingEnter 0.25s ease-out both;
}
.animate-typing-exit {
animation: typingExit 0.2s ease-in both;
}
/* ── Staggered entrance for testimonial cards ── */
@keyframes slideInRight {
from { opacity: 0; transform: translateX(-20px); }
to { opacity: 1; transform: translateX(0); }
}
.testimonial-enter {
animation: slideInRight 0.5s ease-out forwards;
}
/* ── Animated number counter ── */
@keyframes countUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.count-up {
animation: countUp 0.4s ease-out forwards;
}
/* ── Glass morphism card effect ── */
.glass-card {
background: rgba(17, 24, 39, 0.6);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(31, 45, 68, 0.5);
}
/* Light mode glass card */
[data-theme="light"] .glass-card {
background: rgba(255, 255, 255, 0.8);
border-color: rgba(226, 232, 240, 0.6);
}
/* ── Hover scale with spring for cards ── */
.card-hover-scale {
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
box-shadow 0.3s ease,
border-color 0.3s ease;
}
.card-hover-scale:hover {
transform: scale(1.02) translateY(-4px);
}
/* ── Software logo carousel animation ── */
@keyframes scrollLogos {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.logo-carousel {
animation: scrollLogos 25s linear infinite;
}
.logo-carousel:hover {
animation-play-state: paused;
}
/* ── Section reveal with blur ── */
@keyframes revealBlur {
from { opacity: 0; filter: blur(8px); transform: translateY(20px); }
to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.reveal-blur {
animation: revealBlur 0.6s ease-out forwards;
}
/* ── FAQ accordion smooth animation ── */
.accordion-content {
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
/* ── Loading skeleton pulse ── */
@keyframes skeletonPulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 0.7; }
}
.skeleton-pulse {
animation: skeletonPulse 1.5s ease-in-out infinite;
}
.footer-glow-text {
text-shadow: 0 0 10px rgba(6,182,212,0.3), 0 0 20px rgba(6,182,212,0.15);
transition: text-shadow 0.3s ease;
}
.footer-glow-text:hover {
text-shadow: 0 0 15px rgba(6,182,212,0.5), 0 0 30px rgba(6,182,212,0.25), 0 0 45px rgba(6,182,212,0.1);
}
/* Light mode footer glow */
[data-theme="light"] .footer-glow-text {
text-shadow: 0 0 8px rgba(8,145,178,0.2), 0 0 15px rgba(8,145,178,0.1);
}
[data-theme="light"] .footer-glow-text:hover {
text-shadow: 0 0 12px rgba(8,145,178,0.4), 0 0 25px rgba(8,145,178,0.2);
}
/* ════════════════════════════════════════════════════════════════════
LIGHT THEME OVERRIDES
────────────────────────────────────────────────────────────────────
Activated when <html data-theme="light"> is set.
Overrides all hardcoded dark Tailwind arbitrary classes with light
equivalents so the entire site flips to a clean light palette
without modifying any component code.
Light palette:
bg primary: #f8fafc (slate-50)
bg secondary: #ffffff (white)
bg tertiary: #f1f5f9 (slate-100)
card: #ffffff
card hover: #f8fafc
border: #e2e8f0 (slate-200)
border strong: #cbd5e1 (slate-300)
text primary: #0f172a (slate-900)
text heading: #1e293b (slate-800)
text muted: #475569 (slate-600)
text faint: #64748b (slate-500)
accent: #0891b2 (cyan-600 — darker for contrast on light)
════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
--color-bg: #f8fafc;
--color-text: #0f172a;
--color-text-secondary: #334155;
--color-text-muted: #64748b;
--color-text-faint: #94a3b8;
--color-accent: #0891b2;
--color-accent-secondary: #0e7490;
color-scheme: light;
}
/* Body background for light theme — declared earlier at L59. Duplicate
rule removed per SonarCloud S4666. */
/* ── Background colors ─────────────────────────────────────────────── */
[data-theme="light"] .bg-\[\#070b12\], /* main bg */
[data-theme="light"] .bg-\[\#0a0e17\] { /* section bg */
background-color: #f8fafc !important;
}
[data-theme="light"] .bg-\[\#111827\] { /* card bg */
background-color: #ffffff !important;
}
[data-theme="light"] .bg-\[\#1a2233\], /* lighter card */
[data-theme="light"] .bg-\[\#0d1420\] { /* nav/control bg */
background-color: #f1f5f9 !important;
}
[data-theme="light"] .bg-\[\#0a0e17\]/95,
[data-theme="light"] .bg-\[rgba\(7\,11\,18\,0\.95\)\] {
background-color: rgba(248, 250, 252, 0.95) !important;
}
/* ── Text colors ───────────────────────────────────────────────────── */
[data-theme="light"] .text-\[\#f0f4f8\], /* primary text */
[data-theme="light"] .text-\[\#e8f0fe\] { /* heading text */
color: #0f172a !important;
}
[data-theme="light"] .text-\[\#94a3b8\] { /* muted text */
color: #475569 !important;
}
[data-theme="light"] .text-\[\#64748b\] { /* faint text */
color: #64748b !important;
}
/* ── Accent color — slightly darker cyan for light bg contrast ─────── */
[data-theme="light"] .text-\[\#06b6d4\] {
color: #0891b2 !important;
}
[data-theme="light"] .bg-\[\#06b6d4\] {
background-color: #0891b2 !important;
}
[data-theme="light"] .border-\[\#06b6d4\] {
border-color: #0891b2 !important;
}
/* ── Borders ───────────────────────────────────────────────────────── */
[data-theme="light"] .border-\[\#1f2d44\], /* standard border */
[data-theme="light"] .border-\[\#1e2d3d\] { /* navbar border */
border-color: #e2e8f0 !important;
}
/* ── Navbar glass effect in light mode ─────────────────────────────── */
[data-theme="light"] nav {
background-color: rgba(248, 250, 252, 0.95) !important;
border-bottom-color: #e2e8f0 !important;
box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08) !important;
}
/* ── Mobile menu backdrop ──────────────────────────────────────────── */
[data-theme="light"] .mobile-menu-backdrop {
background: rgba(248, 250, 252, 0.98) !important;
}
/* ── Hover states — use rgba(slate) instead of rgba(white) ─────────── */
[data-theme="light"] .hover\:bg-\[rgba\(255\,255\,255\,0\.04\)\]:hover,
[data-theme="light"] .hover\:bg-\[rgba\(255\,255\,255\,0\.05\)\]:hover {
background-color: rgba(15, 23, 42, 0.04) !important;
}
/* ── Hover accent text ─────────────────────────────────────────────── */
[data-theme="light"] .hover\:text-\[\#e8f0fe\]:hover {
color: #0f172a !important;
}
[data-theme="light"] .hover\:text-\[\#06b6d4\]:hover {
color: #0e7490 !important;
}
/* ── Gradient text — signature hue, darkened for AA contrast on light bg ── */
[data-theme="light"] .gradient-text {
background: linear-gradient(120deg, #C2410C 20%, #EA580C 40%, #0E7490 85%) !important;
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
background-clip: text !important;
}
/* ── Cards & surfaces — add subtle shadow for depth on light bg ───── */
[data-theme="light"] .border-\[\#1f2d44\].bg-\[\#111827\],
[data-theme="light"] .border-\[\#1f2d44\].bg-\[\#0a0e17\] {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
/* ── Hero radial glow — softer on light bg ─────────────────────────── */
[data-theme="light"] .hero-glow {
background: radial-gradient(ellipse at 20% 30%, rgba(8, 145, 178, 0.06) 0%, transparent 50%) !important;
}
/* ── CTA gradient banner ───────────────────────────────────────────── */
[data-theme="light"] .cta-gradient {
background: linear-gradient(135deg, rgba(8, 145, 178, 0.06) 0%, rgba(13, 148, 136, 0.04) 100%) !important;
}
/* ── Image placeholder while loading ───────────────────────────────── */
[data-theme="light"] img[loading="lazy"] {
background: #f1f5f9;
}
/* ── Smooth theme transition ───────────────────────────────────────── */
/* The .theme-transitioning class is added to <html> for 300ms during a
theme switch, then removed. This gives a smooth color transition
WITHOUT permanently affecting hover/animation timings. */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
transition: background-color 0.25s ease, border-color 0.25s ease,
color 0.25s ease, box-shadow 0.25s ease, fill 0.25s ease !important;
}
/* ════════════════════════════════════════════════════════════════════
LIGHT MODE — WHITE TEXT → BLACK & ENHANCED COLOR HARMONY
════════════════════════════════════════════════════════════════════
In light mode, all white/light text from dark mode is inverted to
black for proper readability. Also enhanced color harmony with more
sophisticated accent colors. */
/* ── Canvas / StarfieldBackground: light bg in light mode ──────────── */
[data-theme="light"] canvas[style*="background"] {
background: #f8fafc !important;
}
/* ── INVERTED: White text → Black (Primary) ── */
[data-theme="light"] .text-\[\#f0f4f8\],
[data-theme="light"] .text-\[\#e8f0fe\],
[data-theme="light"] .text-\[\#eaf0ff\],
[data-theme="light"] .text-white {
color: #0a0e17 !important;
}
/* ── INVERTED: Gray/Muted text → Darker gray ── */
[data-theme="light"] .text-\[\#94a3b8\],
[data-theme="light"] .text-\[\#64748b\],
[data-theme="light"] .text-\[\#475569\],
[data-theme="light"] .text-\[\#94a3b8\]:hover {
color: #334155 !important;
}
/* ── Navbar links: dark text in light mode ── */
[data-theme="light"] nav a,
[data-theme="light"] nav button {
color: #1e293b !important;
}
[data-theme="light"] nav a:hover,
[data-theme="light"] nav button:hover {
color: #0891b2 !important;
}
[data-theme="light"] nav a[aria-current="page"] {
color: #0891b2 !important;
}
/* ── INVERTED: Card backgrounds → White ── */
[data-theme="light"] .bg-\[\#111827\],
[data-theme="light"] .bg-\[\#0a0e17\],
[data-theme="light"] .bg-\[\#1a2233\],
[data-theme="light"] .bg-\[\#0d1420\] {
background-color: #ffffff !important;
}
/* ── INVERTED: Card borders → Light gray ── */
[data-theme="light"] .border-\[\#1f2d44\],
[data-theme="light"] .border-\[\#1e2d3d\],
[data-theme="light"] .border-\[\#2d3f52\] {
border-color: #e2e8f0 !important;
}
/* ── INVERTED: Stat cards in light mode ── */
[data-theme="light"] .rounded-xl.border.border-\[\#1f2d44\].bg-\[\#0a0e17\] {
background-color: #ffffff !important;
border-color: #e2e8f0 !important;
}
/* ── INVERTED: Footer → Light gray bg, dark text ── */
[data-theme="light"] footer {
background-color: #f1f5f9 !important;
border-top-color: #e2e8f0 !important;
}
[data-theme="light"] footer span,
[data-theme="light"] footer p {
color: #334155 !important;
}
[data-theme="light"] footer .text-\[\#06b6d4\] {
color: #0891b2 !important;
}
/* ── Links in light mode: professional blue ── */
[data-theme="light"] a:not([class*="text-"]):not([class*="bg-"]) {
color: #0891b2;
}
[data-theme="light"] a:not([class*="text-"]):not([class*="bg-"]):hover {
color: #0e7490;
}
/* ── Headings in light mode: dark text ── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
color: #0a0e17 !important;
}
/* ── INVERTED: Testimonial quote text ── */
[data-theme="light"] .text-sm.leading-relaxed.italic.text-\[\#f0f4f8\] {
color: #334155 !important;
}
/* ── INVERTED: Testimonial name ── */
[data-theme="light"] .text-sm.font-semibold.text-\[\#f0f4f8\] {
color: #0a0e17 !important;
}
/* ── INVERTED: FAQ answer text ── */
[data-theme="light"] .text-sm.leading-relaxed.text-\[\#94a3b8\] {
color: #475569 !important;
}
/* ── INVERTED: CTA text in light mode ── */
[data-theme="light"] .text-3xl.font-bold.text-\[\#f0f4f8\].lg\:text-4xl {
color: #0a0e17 !important;
}
[data-theme="light"] .mt-3.text-base.text-\[\#94a3b8\] {
color: #64748b !important;
}
/* ── INVERTED: Button variants in light mode ── */
[data-theme="light"] .border-\[\#1f2d44\].bg-transparent.text-\[\#f0f4f8\]:hover {
color: #0891b2 !important;
border-color: #0891b2 !important;
}
/* ── INVERTED: Mobile menu backdrop (merged with earlier rule at L833) ── */
/* The duplicate selector was removed per SonarCloud S4666. */
/* ── INVERTED: Dropdown menus ── */
[data-theme="light"] [data-user-menu] .absolute.end-0.top-full.mt-2 {
background-color: #ffffff !important;
border-color: #e2e8f0 !important;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] [data-user-menu] .text-\[\#94a3b8\] {
color: #64748b !important;
}
[data-theme="light"] [data-user-menu] .text-\[\#94a3b8\]:hover {
color: #0891b2 !important;
}
/* ── INVERTED: Star rating in testimonials ── */
[data-theme="light"] .fill-\[\#f59e0b\"\].text-\[\#f59e0b\] {
color: #d97706 !important;
}
/* ── INVERTED: Badge/tag components ── */
[data-theme="light"] .badge {
background-color: #f1f5f9 !important;
color: #475569 !important;
border-color: #e2e8f0 !important;
}
/* ── Code blocks: light bg, dark text ── */
[data-theme="light"] pre,
[data-theme="light"] code {
background-color: #f1f5f9 !important;
color: #0f172a !important;
}
/* ── Table styling in light mode ── */
[data-theme="light"] table {
border-color: #e2e8f0 !important;
}
[data-theme="light"] th {
background-color: #f1f5f9 !important;
color: #1e293b !important;
border-color: #e2e8f0 !important;
}
[data-theme="light"] td {
border-color: #e2e8f0 !important;
color: #334155 !important;
}
[data-theme="light"] tr:nth-child(even) {
background-color: #f8fafc !important;
}
/* ── Blockquote: light theme ── */
[data-theme="light"] blockquote {
border-left-color: #0891b2 !important;
background-color: #f8fafc !important;
color: #334155 !important;
}
/* ── Software logo background in light mode ── */
[data-theme="light"] .bg-\[\#1a2233\] {
background-color: #f1f5f9 !important;
}
/* ── INVERTED: Loading spinner in light mode ── */
[data-theme="light"] .animate-spin {
border-color: #e2e8f0 !important;
border-top-color: #0891b2 !important;
}
/* ── Scrollbar: light theme ── */
[data-theme="light"] ::-webkit-scrollbar {
width: 10px;
height: 10px;
}
[data-theme="light"] ::-webkit-scrollbar-track {
background: #f1f5f9;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 5px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* ── Tailwind semantic color overrides for light mode ─────────────── */
/* FAQ, References, and other pages use Tailwind semantic classes like
text-slate-400, text-cyan-400, bg-[#0d1521] etc. These DON'T match
the arbitrary-value selectors (text-[#94a3b8]) used above, so we need
explicit overrides for the Tailwind utility colors. */
/* Slate tones */
[data-theme="light"] .text-slate-300 { color: #475569 !important; }
[data-theme="light"] .text-slate-400 { color: #64748b !important; }
[data-theme="light"] .text-slate-500 { color: #64748b !important; }
[data-theme="light"] .text-slate-600 { color: #94a3b8 !important; }
/* Cyan accent tones */
[data-theme="light"] .text-cyan-400 { color: #0891b2 !important; }
[data-theme="light"] .text-cyan-500 { color: #0e7490 !important; }
[data-theme="light"] .border-cyan-500\/20 { border-color: rgba(8, 145, 178, 0.2) !important; }
[data-theme="light"] .border-cyan-500\/30 { border-color: rgba(8, 145, 178, 0.25) !important; }
[data-theme="light"] .bg-cyan-500\/10 { background-color: rgba(8, 145, 178, 0.08) !important; }
[data-theme="light"] .bg-cyan-500\/20 { background-color: rgba(8, 145, 178, 0.12) !important; }
[data-theme="light"] .hover\:border-cyan-500\/30:hover { border-color: rgba(8, 145, 178, 0.25) !important; }
[data-theme="light"] .hover\:shadow-cyan-500\/20:hover { box-shadow: 0 4px 14px rgba(8, 145, 178, 0.15) !important; }
[data-theme="light"] .shadow-cyan-500\/25 { box-shadow: 0 4px 14px rgba(8, 145, 178, 0.2) !important; }
[data-theme="light"] .hover\:shadow-cyan-500\/25:hover { box-shadow: 0 6px 20px rgba(8, 145, 178, 0.25) !important; }
/* Colored icon tones (file types — References page, stats, badges) */
[data-theme="light"] .text-red-400 { color: #dc2626 !important; }
[data-theme="light"] .text-green-400 { color: #16a34a !important; }
[data-theme="light"] .text-blue-400 { color: #2563eb !important; }
[data-theme="light"] .text-orange-400 { color: #ea580c !important; }
[data-theme="light"] .text-yellow-400 { color: #ca8a04 !important; }
[data-theme="light"] .text-purple-400 { color: #9333ea !important; }
[data-theme="light"] .text-violet-400 { color: #7c3aed !important; }
[data-theme="light"] .text-emerald-400 { color: #059669 !important; }
[data-theme="light"] .text-rose-400 { color: #e11d48 !important; }
/* ── Fill colors for inline SVG icons (stars, etc.) ─────────────── */
[data-theme="light"] .fill-yellow-400 { fill: #ca8a04 !important; }
/* ── Placeholder text colors — darker for readability on white bg ── */
[data-theme="light"] .placeholder\:text-slate-500::placeholder { color: #94a3b8 !important; }
[data-theme="light"] .placeholder\:text-\[\#475569\]::placeholder { color: #94a3b8 !important; }
/* ── Tailwind opacity-modifier classes (from FAQ, References, Admin) ── */
/* These use Tailwind's opacity modifier syntax (e.g. border-[#1e2d3d]/50),
which produces a different CSS class than the plain border-[#1e2d3d] */
[data-theme="light"] .border-\[\#1e2d3d\]\/50 {
border-color: rgba(226, 232, 240, 0.5) !important;
}
[data-theme="light"] .border-\[\#1f2d44\]\/50 {
border-color: rgba(226, 232, 240, 0.5) !important;
}
[data-theme="light"] .hover\:bg-white\/5:hover {
background-color: rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .hover\:text-white:hover {
color: #0f172a !important;
}
[data-theme="light"] .hover\:text-slate-300:hover {
color: #475569 !important;
}
[data-theme="light"] .focus\:border-cyan-500\/50:focus {
border-color: rgba(8, 145, 178, 0.3) !important;
}
[data-theme="light"] .border-red-500\/30 {
border-color: rgba(220, 38, 38, 0.25) !important;
}
[data-theme="light"] .hover\:bg-red-500\/10:hover {
background-color: rgba(220, 38, 38, 0.08) !important;
}
[data-theme="light"] .hover\:text-red-300:hover {
color: #dc2626 !important;
}
/* ── Hover text colors for links, buttons, and icons ────────────────── */
[data-theme="light"] .hover\:text-\[\#22d3ee\]:hover {
color: #0e7490 !important;
}
[data-theme="light"] .hover\:text-\[\#f0f4f8\]:hover {
color: #0f172a !important;
}
/* ── Hover backgrounds for icons, chips, and menu items ───────────── */
[data-theme="light"] .hover\:bg-cyan-400\/10:hover {
background-color: rgba(8, 145, 178, 0.08) !important;
}
[data-theme="light"] .hover\:bg-\[rgba\(6\,182\,212\,0\.08\)\]:hover {
background-color: rgba(8, 145, 178, 0.06) !important;
}
[data-theme="light"] .hover\:bg-\[\#1f2d44\]:hover {
background-color: rgba(226, 232, 240, 0.5) !important;
}
/* ── Outline button hover border (ForgotPassword resend button) ──────── */
[data-theme="light"] .hover\:border-\[\#06b6d4\]:hover {
border-color: #0891b2 !important;
}
/* ── File card shadow on hover (References page) ─────────────────────── */
[data-theme="light"] .hover\:shadow-cyan-500\/5:hover {
--tw-shadow-color: rgba(8, 145, 178, 0.05) !important;
}
/* ── Dropzone hover border and focus ring (References upload modal) ──── */
[data-theme="light"] .hover\:border-cyan-500\/40:hover {
border-color: rgba(8, 145, 178, 0.25) !important;
}
[data-theme="light"] .focus\:ring-cyan-500\/40:focus {
--tw-ring-color: rgba(8, 145, 178, 0.2) !important;
}
[data-theme="light"] .focus\:ring-cyan-500\/20:focus {
--tw-ring-color: rgba(8, 145, 178, 0.12) !important;
}
/* ── Amber accent (eye protection toggle, star ratings) ──────────────── */
[data-theme="light"] .text-amber-400 {
color: #d97706;
}
/* ── Admin panel status badges — tinted backgrounds ───────────────── */
[data-theme="light"] .bg-\[rgba\(16\,185\,129\,0\.15\)\] {
background-color: rgba(5, 150, 105, 0.12) !important;
}
[data-theme="light"] .bg-\[rgba\(16\,185\,129\,0\.12\)\] {
background-color: rgba(5, 150, 105, 0.1) !important;
}
[data-theme="light"] .bg-\[rgba\(248\,113\,113\,0\.12\)\] {
background-color: rgba(220, 38, 38, 0.1) !important;
}
[data-theme="light"] .bg-\[rgba\(245\,158\,11\,0\.12\)\] {
background-color: rgba(217, 119, 6, 0.1) !important;
}
/* ── Admin tab active state — data-[state=active] ─────────────────── */
[data-theme="light"] [data-state="active"].bg-\[\#06b6d4\] {
background-color: #0891b2 !important;
}
[data-theme="light"] [data-state="active"].text-\[\#070b12\] {
color: #ffffff !important;
}
/* ── Admin table header bg ────────────────────────────────────────── */
[data-theme="light"] .bg-\[\#0d1117\] {
background-color: #f1f5f9 !important;
}
/* ── Google Sign-In button hover (Login & Register) ──────────────────── */
[data-theme="light"] .hover\:bg-\[\#1a1a2e\]:hover {
background-color: rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .hover\:border-\[\#4285f4\]\/50:hover {
border-color: rgba(66, 133, 244, 0.3) !important;
}
/* ── Hero radial gradient — override the cyan color inside the gradient ── */
[data-theme="light"] .bg-\[radial-gradient\(circle_at_50%_120%\,rgba\(6\,182\,212\,0\.15\)\,transparent_60%\)\] {
background-image: radial-gradient(circle at 50% 120%, rgba(8, 145, 178, 0.08), transparent 60%) !important;
}
/* ── Common arbitrary-value text colors (from ALL pages) ─────────────── */
/* Success / Premium / Checkmarks — green */
[data-theme="light"] .text-\[\#10b981\] {
color: #059669 !important;
}
/* Stars / Gold accents — amber */
[data-theme="light"] .text-\[\#f59e0b\],
[data-theme="light"] .fill-\[\#f59e0b\] {
color: #d97706 !important;
}
[data-theme="light"] .fill-\[\#f59e0b\] {
fill: #d97706 !important;
}
/* Error / Danger — red */
[data-theme="light"] .text-\[\#ef4444\],
[data-theme="light"] .text-\[\#f43f5e\] {
color: #dc2626 !important;
}
/* Lighter red (sign out hover) */
[data-theme="light"] .text-\[\#f87171\] {
color: #ef4444 !important;
}
/* Lighter cyan accent */
[data-theme="light"] .text-\[\#22d3ee\] {
color: #0891b2 !important;
}
/* Darker blue */
[data-theme="light"] .text-\[\#0284c7\] {
color: #0369a1 !important;
}
/* Dark icon color */
[data-theme="light"] .text-\[\#1f2d44\] {
color: #94a3b8 !important;
}
/* ── Common rgba accent backgrounds (from ALL pages) ──────────────── */
/* Cyan accent tints */
[data-theme="light"] .bg-\[rgba\(6\,182\,212\,0\.08\)\] {
background-color: rgba(8, 145, 178, 0.06) !important;
}
[data-theme="light"] .bg-\[rgba\(6\,182\,212\,0\.1\)\],
[data-theme="light"] .bg-\[rgba\(6\,182\,212\,0\.15\)\] {
background-color: rgba(8, 145, 178, 0.1) !important;
}
/* Green accent tints */
[data-theme="light"] .bg-\[rgba\(16\,185\,129\,0\.1\)\],
[data-theme="light"] .bg-\[rgba\(16\,185\,129\,0\.15\)\] {
background-color: rgba(5, 150, 105, 0.1) !important;
}
/* Amber accent tints */
[data-theme="light"] .bg-\[rgba\(245\,158\,11\,0\.05\)\],
[data-theme="light"] .bg-\[rgba\(245\,158\,11\,0\.08\)\],
[data-theme="light"] .bg-\[rgba\(245\,158\,11\,0\.1\)\] {
background-color: rgba(217, 119, 6, 0.08) !important;
}
/* Red error tints */
[data-theme="light"] .bg-\[rgba\(244\,63\,94\,0\.1\)\],
[data-theme="light"] .bg-\[rgba\(239\,68\,68\,0\.1\)\] {
background-color: rgba(220, 38, 38, 0.08) !important;
}
/* Purple accent tint */
[data-theme="light"] .bg-\[rgba\(139\,92\,246\,0\.1\)\] {
background-color: rgba(124, 58, 237, 0.08) !important;
}
/* ── Common rgba accent borders (from ALL pages) ───────────────────── */
[data-theme="light"] .border-\[rgba\(6\,182\,212\,0\.2\)\],
[data-theme="light"] .border-\[rgba\(6\,182\,212\,0\.3\)\] {
border-color: rgba(8, 145, 178, 0.25) !important;
}
[data-theme="light"] .border-\[rgba\(16\,185\,129\,0\.2\)\],
[data-theme="light"] .border-\[rgba\(16\,185\,129\,0\.3\)\] {
border-color: rgba(5, 150, 105, 0.25) !important;
}
[data-theme="light"] .border-\[rgba\(245\,158\,11\,0\.2\)\],
[data-theme="light"] .border-\[rgba\(245\,158\,11\,0\.3\)\] {
border-color: rgba(217, 119, 6, 0.25) !important;
}
[data-theme="light"] .border-\[rgba\(239\,68\,68\,0\.3\)\] {
border-color: rgba(220, 38, 38, 0.25) !important;
}
/* Dark card backgrounds used in FAQ & References */
[data-theme="light"] .bg-\[\#0d1521\] {
background-color: #ffffff !important;
}
[data-theme="light"] .bg-\[\#1a2434\] {
background-color: #f1f5f9 !important;
}
[data-theme="light"] .hover\:bg-\[\#111827\]:hover {
background-color: #f8fafc !important;
}
/* Gradient-to-br hero sections (FAQ & References) */
[data-theme="light"] .from-cyan-600\/10 {
--tw-gradient-from: rgba(8, 145, 178, 0.06) var(--tw-gradient-from-position) !important;
--tw-gradient-to: rgba(8, 145, 178, 0) var(--tw-gradient-to-position) !important;
}
[data-theme="light"] .to-blue-600\/10 {
--tw-gradient-to: rgba(37, 99, 235, 0.04) var(--tw-gradient-to-position) !important;
}
/* Gradient-to-br hero content from-cyan-500 to-blue-600 (icon containers) */
[data-theme="light"] .from-cyan-500 {
--tw-gradient-from: #0891b2 var(--tw-gradient-from-position) !important;
}
[data-theme="light"] .to-blue-600 {
--tw-gradient-to: #2563eb var(--tw-gradient-to-position) !important;
}
/* Selection highlight in light mode */
[data-theme="light"] ::selection {
background: rgba(8, 145, 178, 0.2);
color: #0f172a;
}
/* ════════════════════════════════════════════════════════════════════
EYE PROTECTION MODE — Blue Light Filter
────────────────────────────────────────────────────────────────────
Activated via <html data-eye-protection="true">.
Adds a warm-toned overlay to reduce blue light and eye strain.
Works in both dark and light themes.
════════════════════════════════════════════════════════════════════ */
[data-eye-protection="true"] #root::after {
content: '';
position: fixed;
inset: 0;
/* Warm amber overlay at very low opacity — reduces blue light
without noticeably altering the visual design.
No mix-blend-mode needed: the warm rgba() alone creates a
subtle warm shift without causing artifacts on elements with
their own blend modes (e.g. backdrop-filter modals). */
background: rgba(255, 170, 80, 0.06);
pointer-events: none;
z-index: 999999;
}
/* Slightly stronger effect in dark mode (blue light is more intense
against dark backgrounds) */
[data-theme="dark"][data-eye-protection="true"] #root::after {
background: rgba(255, 170, 80, 0.08);
}
/* Eye protection toggle button styling — Tailwind's text-amber-400
handles the active color, so this is minimal. The transition is
also handled by the transition-all class on the button element. */
/* Focus visible: cyan ring in light mode ── */
[data-theme="light"] *:focus-visible {
outline: 2px solid #0891b2 !important;
outline-offset: 2px !important;
}
/* ── Checkbox: cyan accent in light mode ── */
[data-theme="light"] input[type="checkbox"]:checked {
background-color: #0891b2 !important;
border-color: #0891b2 !important;
}
/* ── Toast notifications: light bg ── */
[data-theme="light"] [data-sonner-toast] {
background-color: #ffffff !important;
color: #0f172a !important;
border: 1px solid #e2e8f0 !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
/* ── Dialog / Modal overlay in light mode ────────────────────────── */
[data-theme="light"] [data-radix-dialog-overlay] {
background-color: rgba(15, 23, 42, 0.4) !important;
}
/* ── SVG icons: ensure they inherit color properly ─────────────────── */
[data-theme="light"] svg {
color: inherit;
}
/* ── Loading skeletons: light shimmer ──────────────────────────────── */
[data-theme="light"] .skeleton,
[data-theme="light"] [class*="animate-pulse"] {
background-color: #e2e8f0 !important;
}
/* ── Divider / separator ───────────────────────────────────────────── */
[data-theme="light"] hr,
[data-theme="light"] .separator {
border-color: #e2e8f0 !important;
}
/* ── Cards: add subtle shadow and border for depth ─────────────────── */
[data-theme="light"] .rounded-xl.border,
[data-theme="light"] .rounded-2xl.border {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
/* ── Modal overlay: ensure dark overlay in light mode too ───────────── */
[data-theme="light"] .fixed.inset-0.z-\[200\] {
background-color: rgba(15, 23, 42, 0.5) !important;
}
/* ── Button text on cyan gradient buttons ──────────────────────────── */
[data-theme="light"] .text-\[\#0a0e17\] {
color: #0f172a !important;
}
/* ── Gradient buttons: use darker cyan in light mode ───────────────── */
[data-theme="light"] .from-\[\#06b6d4\] {
--tw-gradient-from: #0891b2 var(--tw-gradient-from-position) !important;
--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position) !important;
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
[data-theme="light"] .to-\[\#0891b2\] {
--tw-gradient-to: #0e7490 var(--tw-gradient-to-position) !important;
}
/* ── "glow-btn" effect: softer in light mode ───────────────────────── */
[data-theme="light"] .glow-btn {
box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25) !important;
}
[data-theme="light"] .glow-btn:hover {
box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35) !important;
}
/* ── Premium text hierarchy for light mode ──────────────────────────── */
[data-theme="light"] .text-text-secondary,
[data-theme="light"] .text-secondary {
color: #334155 !important;
}
[data-theme="light"] .text-text-muted,
[data-theme="light"] .text-muted-foreground {
color: #64748b !important;
}
[data-theme="light"] .text-text-faint {
color: #94a3b8 !important;
}
/* ── Premium card surfaces in light mode ────────────────────────────── */
[data-theme="light"] .bg-primary {
background-color: #ffffff !important;
}
[data-theme="light"] .bg-secondary {
background-color: #f8fafc !important;
}
[data-theme="light"] .border-border {
border-color: #e2e8f0 !important;
}
[data-theme="light"] .bg-background {
background-color: #f8fafc !important;
}
/* ════════════════════════════════════════════════════════════════════
EMBEDDED YOUTUBE LESSON PLAYER — fluid 16:9 fit on EVERY viewport
════════════════════════════════════════════════════════════════════
The IFrame Player API replaces the mount <div> with an <iframe> that
carries its own width/height attributes (640×360 defaults). On phones
the 16:9 screen slot is narrower than 640px, so the raw iframe
overflowed its box and the site cropped it — the "edges cut / broken video proportions" bug. These rules re-fit the iframe to the screen
slot at any width (the constructor also passes width/height "100%").
The screen slot is `.relative.aspect-video` — the nearest positioned
ancestor of the iframe — so absolute inset-0 pins it exactly. */
[data-youtube-player] iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
/* Never let ANY media node inside a player screen poke out of its slot
(covers the self-hosted <video> path and future embeds too). */
[data-youtube-player] video,
[data-youtube-player] embed,
[data-youtube-player] object {
max-width: 100%;
}
/* ════════════════════════════════════════════════════════════════════
NOTCHED / EDGE-TO-EDGE PHONES (viewport-fit=cover)
════════════════════════════════════════════════════════════════════
The site declares viewport-fit=cover, so on notched phones the page
extends under the sensor notch / home indicator. Without these pads
the text and page edges get literally cut ("الحواف مقصوصة"). Every
env() evaluates to 0 on ordinary displays → zero visual change there;
the fixed navbar carries its own copy (fixed nodes ignore body padding).
The body rule itself is merged into the body block at the top of this
file per SonarCloud S4666.
*/
/* ════════════════════════════════════════════════════════════════════
LOGIN — cinematic background video (power-grid sunrise)
The <video> sits above a poster-image fallback. Users who prefer
reduced motion see ONLY the static poster (video hidden), and the
video fades in via an opacity transition once it can actually play
(see Login.tsx bgVideoReady), so there is never a flash of empty
background on slow connections.
════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
.login-bg-video {
display: none !important;
}
}
/* ════════════════════════════════════════════════════════════════════
CONTENT-VISIBILITY — render-skipping for long below-fold lists
(post-launch perf hardening, vercel react-best-practices "rendering")
Offscreen list items past the initial viewport stop painting/layout
until they scroll near the viewport — the browser skips their entire
subtree (style, layout, paint). The `auto` keyword inside
contain-intrinsic-size makes the browser REMEMBER the real rendered
size after first paint, so the fixed estimates below only apply to
items that were never rendered, and once an item has been seen its
real size takes over — later scrolls never shift layout (CLS-safe,
complements the skeleton-geometry + idle-warm work).
Estimates match measured card/row heights (see each call site):
cv-auto ≈ 320px article cards (16/8 cover + text, 3-col grid)
cv-auto-md ≈ 180px review / enrollment medium cards
cv-auto-row ≈ 72px lesson buttons, audit / roster table rows
Call sites apply the class only from index >= ~8-12, so the first
screenful always renders fully — zero interaction with first-paint CLS.
════════════════════════════════════════════════════════════════════ */
.cv-auto {
content-visibility: auto;
contain-intrinsic-size: auto 320px;
}
.cv-auto-md {
content-visibility: auto;
contain-intrinsic-size: auto 180px;
}
.cv-auto-row {
content-visibility: auto;
contain-intrinsic-size: auto 72px;
}
/* ════════════════════════════════════════════════════════════════════
BRAND SIGNATURE SYSTEM — UI suggestions #1 + #3 (Brand Kit law)
The platform's official signature: the orange→cyan gradient at 3px
thickness. Rules of the system (full law in docs/BRAND-KIT.md):
--brand-sig-from #F97316 primary action orange
--brand-sig-to #06B6D4 secondary cyan
3px thickness everywhere the signature appears
Where it repeats (each position is one utility class so new screens
opt in with a single class — no per-screen reinvention):
.brand-signature-track / .brand-signature-bar
→ scroll progress bar pinned to the page top (App.tsx)
.brand-signature-line
→ section-title underline replacing the gray divider
.brand-signature-card
→ course-card top edge reveal on hover (CourseCard)
.brand-signature-hover
→ primary-CTA bottom accent on hover
The boot splash (index.html) carries the same gradient inline so the
very first painted pixels match the signature too.
The --brand-sig-* custom properties are merged into the :root block at
the top of this file per SonarCloud S4666.
════════════════════════════════════════════════════════════════════ */
/* Scroll progress track — pinned top, full width, invisible until filled */
.brand-signature-track {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--brand-sig-thickness);
z-index: 70; /* above sticky navbar (z-55/60), below toasts */
background: rgba(255, 255, 255, 0.06);
pointer-events: none;
}
/* The filled portion — transform-only (compositor), origin at inline-start */
.brand-signature-bar {
height: 100%;
width: 100%;
transform: scaleX(0);
transform-origin: left;
background: var(--brand-sig-gradient);
will-change: transform;
}
[dir="rtl"] .brand-signature-bar {
transform-origin: right;
}
/* Section-title underline — replaces the plain gray divider.
Usage: <h2 className="brand-signature-line">…</h2> */
.brand-signature-line {
position: relative;
padding-bottom: 12px;
}
.brand-signature-line::after {
content: "";
position: absolute;
bottom: 0;
inset-inline-start: 0;
width: 64px;
height: var(--brand-sig-thickness);
border-radius: 999px;
background: var(--brand-sig-gradient);
}
/* Course card hover reveal — gradient edge slides in along the top.
Usage: add .brand-signature-card to the card's <article>. */
.brand-signature-card {
position: relative;
}
.brand-signature-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: var(--brand-sig-thickness);
background: var(--brand-sig-gradient);
transform: scaleX(0);
transform-origin: left;
transition: transform 300ms ease;
z-index: 1;
}
.group:hover .brand-signature-card::before,
.brand-signature-card:hover::before {
transform: scaleX(1);
}
[dir="rtl"] .brand-signature-card::before {
transform-origin: right;
}
/* Primary CTA hover accent — 3px signature floor under the button.
Usage: add .brand-signature-hover to .btn-primary CTAs. */
.brand-signature-hover {
position: relative;
}
.brand-signature-hover::after {
content: "";
position: absolute;
bottom: -6px;
left: 12%;
right: 12%;
height: var(--brand-sig-thickness);
border-radius: 999px;
background: var(--brand-sig-gradient);
opacity: 0;
transform: translateY(3px);
transition: opacity 200ms ease, transform 200ms ease;
}
.brand-signature-hover:hover::after,
.brand-signature-hover:focus-visible::after {
opacity: 1;
transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
.brand-signature-card::before,
.brand-signature-hover::after {
transition: none;
}
}
/* ── Primary CTA pulse glow — THE one motion per screen (Brand Kit §6).
Applied to the hero's primary action button only. The glow is a
pseudo-element whose OPACITY animates (compositor-friendly — no
box-shadow animation), so the pulse costs almost nothing per frame. */
.brand-cta-glow {
position: relative;
}
.brand-cta-glow::before {
content: "";
position: absolute;
inset: -3px;
border-radius: 12px;
box-shadow: 0 0 26px rgba(6, 182, 212, 0.55);
opacity: 0.45;
animation: brand-cta-pulse 2.6s ease-in-out infinite;
pointer-events: none;
z-index: 1;
}
@keyframes brand-cta-pulse {
0%,
100% {
opacity: 0.3;
}
50% {
opacity: 0.75;
}
}
@media (prefers-reduced-motion: reduce) {
.brand-cta-glow::before {
animation: none;
opacity: 0.45;
}
}
/* Self-hosted @font-face declarations — MUST be first so the fonts resolve
before Tailwind base styles reference the families. */
@import './fonts.css';
@import './elite-animations.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ════════════════════════════════════════════════════════════════════
CHATBOT — text containment + word wrapping
Ensures long words + URLs don't break out of the chat bubble.
════════════════════════════════════════════════════════════════════ */
.overflow-wrap-anywhere {
overflow-wrap: anywhere;
word-wrap: break-word;
}
.word-break-break-word {
overflow-wrap: break-word;
-webkit-hyphens: auto;
hyphens: auto;
}
/* Chatbot messages: ensure code blocks scroll horizontally instead of
overflowing the bubble width */
.chatbot-messages pre {
max-width: 100%;
overflow-x: auto;
}
.chatbot-messages code {
word-break: break-all;
}
.chatbot-messages p {
margin-bottom: 0.5rem;
}
.chatbot-messages p:last-child {
margin-bottom: 0;
}
.chatbot-messages ul, .chatbot-messages ol {
padding-inline-start: 1.2rem;
margin-bottom: 0.5rem;
}
.chatbot-messages li {
margin-bottom: 0.2rem;
}
/* ── Chat markdown: numbered steps, bullets, headings ──
RTL-aware via logical properties (inset-inline-start): the number badge and
bullet dot sit on the RIGHT in Arabic bubbles and on the LEFT in English. */
.chatbot-messages .chat-h {
font-weight: 700;
color: #f8fafc;
font-size: 0.92em;
margin: 0.45rem 0 0.2rem;
}
.chatbot-messages .chat-ol {
list-style: none;
margin: 0.3rem 0;
padding: 0;
}
.chatbot-messages .chat-ol li {
position: relative;
padding-inline-start: 2.05rem;
margin-bottom: 0.45rem;
min-height: 1.35rem;
}
.chatbot-messages .chat-ol li::before {
content: attr(data-n);
position: absolute;
inset-inline-start: 0;
top: 0.02em;
min-width: 1.35rem;
height: 1.35rem;
padding-inline: 0.28rem;
border-radius: 0.45rem;
display: inline-flex;
align-items: center;
justify-content: center;
/* WCAG AA: explicit dark base under the translucent cyan tint so the
analyzer composites the text color against the real dark theme
(cyan-400 #22d3ee vs #0a0e17 = ~10.6:1, well above the 4.5:1 floor). */
background-color: #0a0e17;
background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.3));
border: 1px solid rgba(6, 182, 212, 0.35);
color: #22d3ee;
font-size: 10.5px;
font-weight: 700;
line-height: 1;
box-sizing: border-box;
}
.chatbot-messages .chat-ul {
list-style: none;
margin: 0.3rem 0;
padding: 0;
}
.chatbot-messages .chat-ul li {
position: relative;
padding-inline-start: 1.1rem;
margin-bottom: 0.3rem;
}
.chatbot-messages .chat-ul li::before {