/* ==========================================================================
   Nexus Promotional Website - Luxury SaaS Theme
   ========================================================================== */

/* --- Variables & Core Settings --- */
:root {
    /* Colors */
    --bg-primary: #040814;
    --bg-secondary: #0a1128;
    --bg-tertiary: rgba(10, 17, 40, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #a0abc0;
    --text-gold: #d4af37;
    --text-gold-light: #f3e5ab;
    --text-green: #10b981;
    
    --accent-gold: #d4af37;
    --accent-gold-hover: #b5952f;
    --accent-glow: rgba(212, 175, 55, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(212, 175, 55, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RTL Support via HTML dir attribute */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-header {
    font-family: 'Outfit', sans-serif; /* You might want to load an Arabic font like 'Cairo' or 'Tajawal' later */
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--text-gold);
}

.text-green {
    color: var(--text-green);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 4rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Background Effects --- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(4,8,20,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

.glow-1 {
    top: -100px;
    right: -100px;
}

.glow-2 {
    top: 50%;
    left: -200px;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* --- Glassmorphism Utilities --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #e8c96b);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e8c96b, var(--accent-gold));
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* --- Header / Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--text-gold);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--text-gold);
    color: var(--text-gold);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem 2rem;
    z-index: 99;
}

.mobile-nav.active {
    display: flex;
    gap: 1rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for header */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-gold);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Visual & Mockup */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    z-index: 2;
    perspective: 1000px;
}

.main-dashboard-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
    width: 120%;
    height: 80%;
    background: rgba(10, 17, 40, 0.8);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 30px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.mockup-body {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 20%;
    border-right: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}

.mockup-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card-row {
    display: flex;
    gap: 1rem;
}

.mockup-card {
    flex: 1;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.mockup-chart {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.mockup-chart::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 30%;
    background: linear-gradient(180deg, rgba(212,175,55,0.2) 0%, transparent 100%);
    clip-path: polygon(0 40%, 20% 20%, 40% 60%, 60% 10%, 80% 30%, 100% 0, 100% 100%, 0 100%);
}

.floating-card {
    position: absolute;
    background: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
}

.floating-card h4 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.floating-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-item {
    text-align: center;
    padding: 3rem 2rem;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.about-item h3 {
    margin-bottom: 1rem;
}

.about-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* --- Core Modules --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(212,175,55,0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    font-size: 2rem;
    color: var(--text-gold);
    margin-bottom: 1.5rem;
}


/* --- Split Layouts --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    margin-bottom: 1.5rem;
}

.split-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
}

.feature-list i {
    margin-top: 5px;
}

.split-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Tenant Visual */
.tenant-visual-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-hub {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.tenant-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    z-index: 2;
    transition: transform var(--transition-fast);
}

.tenant-node:hover {
    transform: scale(1.1);
    border-color: var(--text-gold);
}

.node-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 20%; left: 10%; }
.node-3 { bottom: 20%; right: 10%; }

.tenant-visual-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 60%; height: 60%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 1;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Calendar Mockup */
.calendar-mockup {
    width: 100%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
}

.cal-header {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-header h4 { margin: 0; }
.cal-date { color: var(--text-gold); font-size: 0.9rem; }

.cal-body {
    display: flex;
    padding: 1rem;
    height: 300px;
}

.cal-time-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 1rem;
    border-right: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.cal-events {
    flex: 1;
    position: relative;
    padding-left: 1rem;
}

.cal-event {
    position: absolute;
    left: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-1 {
    top: 10%;
    height: 25%;
    background: rgba(212, 175, 55, 0.2);
    border-left: 3px solid var(--accent-gold);
}

.event-2 {
    top: 50%;
    height: 30%;
    background: rgba(16, 185, 129, 0.2);
    border-left: 3px solid var(--text-green);
}


/* --- Analytics Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-header h4 { margin: 0; }
.stat-header i { font-size: 1.2rem; }

.bar-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.bar-chart .bar {
    flex: 1;
    background: linear-gradient(0deg, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.2));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.line-chart-mockup {
    height: 150px;
    display: flex;
    align-items: center;
}

.line-chart-mockup svg {
    width: 100%;
    height: 100%;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}


/* --- Billing Mockup --- */
.invoice-mockup {
    width: 100%;
    max-width: 350px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.invoice-logo {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.badge-paid {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-green);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.invoice-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}


/* --- Why Nexus --- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reason-item i {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
}

.reason-item p {
    color: var(--text-secondary);
}


/* --- CTA Section --- */
.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.9), rgba(4, 8, 20, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cta-box h2 {
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}


/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem 0;
    background: rgba(4, 8, 20, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: #000;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--text-gold);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .split-layout { flex-direction: column; text-align: center; }
    .split-layout.reverse { flex-direction: column; }
    .feature-list li { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { width: 100%; height: 400px; margin-top: 2rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .reasons-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .social-links { justify-content: center; }
    .footer-contact p { justify-content: center; }
    
    h2 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .split-visual { display: none; } /* Hide complex visuals on very small screens for better UX */
}

/* --- Forms & Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
}

.modal-close {
    position: absolute;
    top: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

[dir="rtl"] .modal-close {
    left: 16px;
}

[dir="ltr"] .modal-close {
    right: 16px;
}

.modal-close:hover {
    color: var(--text-gold);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--text-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

[dir="rtl"] .form-label, [dir="rtl"] label {
	display: block;
	text-align: right;
}

[dir="ltr"] .form-label, [dir="ltr"] label {
	display: block;
	text-align: left;
}
[dir="rtl"] .form-control {
	text-align: right;
}

[dir="ltr"] .form-control {
	text-align: left;
}
body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}