/* iSKOOL custom styles */
* { -webkit-font-smoothing: antialiased; }
body { font-family: 'Poppins', sans-serif; }
html[dir="rtl"] body { font-family: 'Cairo', 'Poppins', sans-serif; }

.gradient-primary { background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%); }
.gradient-soft { background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); }
.text-gradient { background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.btn-primary { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 14px rgba(251, 191, 36, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251, 191, 36, .5); }

@keyframes pulse-cta { 0%,100% { box-shadow: 0 4px 14px rgba(251,191,36,.35); } 50% { box-shadow: 0 4px 24px rgba(251,191,36,.7); } }
.pulse-cta { animation: pulse-cta 2s infinite; }

@keyframes float-anim { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-anim { animation: float-anim 4s ease-in-out infinite; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.feature-card { background: white; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); border-color: #7c3aed; }

#navbar { background: rgba(255,255,255,0); backdrop-filter: blur(0); transition: all .3s; }
#navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.section-title { letter-spacing: -.02em; }
.hero-title { letter-spacing: -.03em; }

.mobile-menu { transform: translateX(100%); transition: transform .3s; }
.mobile-menu.open { transform: translateX(0); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; }
.accordion-item.open .accordion-content { max-height: 500px; }
.accordion-item .accordion-icon { transition: transform .3s; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.form-input { width: 100%; padding: .75rem 1rem; border-radius: .75rem; border: 2px solid #e5e7eb; transition: border-color .2s, box-shadow .2s; outline: none; font-size: .95rem; }
.form-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 18px rgba(37,211,102,.45); z-index: 50; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 20px; }

.lang-switcher { display: inline-flex; gap: 4px; background: #f3f4f6; border-radius: 9999px; padding: 3px; }
.lang-btn { padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; color: #6b7280; transition: all .2s; cursor: pointer; }
.lang-btn.active { background: #1e40af; color: white; }

/* Admin */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-content { background: white; border-radius: 1rem; padding: 1.5rem; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; }
.filter-btn { transition: all .2s; cursor: pointer; }
.filter-btn:not(.active) { background: #f3f4f6 !important; color: #374151 !important; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 700; }
.badge-new { background: #fef3c7; color: #92400e; }
.badge-contacted { background: #e0e7ff; color: #3730a3; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* RTL fixes */
html[dir="rtl"] .text-left { text-align: right; }
html[dir="rtl"] .mr-1, html[dir="rtl"] .mr-2, html[dir="rtl"] .mr-3 { margin-right: 0; margin-left: .25rem; }
html[dir="rtl"] .ml-1, html[dir="rtl"] .ml-2 { margin-left: 0; margin-right: .25rem; }
