/* Arabic RTL Styles for ePay */

/* Global RTL Layout */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Arabic Font */
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] label {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ePay Color Scheme */
:root {
    --epay-primary: #2563eb;
    --epay-primary-dark: #1d4ed8;
    --epay-secondary: #10b981;
    --epay-accent: #f59e0b;
    --epay-success: #059669;
    --epay-warning: #d97706;
    --epay-error: #dc2626;
    --epay-gray: #6b7280;
    --epay-light-gray: #f3f4f6;
}

/* RTL Navigation */
html[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 1rem;
}

/* RTL Grid Adjustments */
html[dir="rtl"] .grid {
    direction: rtl;
}

html[dir="rtl"] .flex {
    direction: rtl;
}

/* RTL Form Elements */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="password"] {
    text-align: right;
    padding-right: 1rem;
    padding-left: 3rem;
}

html[dir="rtl"] .form-button {
    left: 3px;
    right: auto;
}

/* RTL Icons */
html[dir="rtl"] .lucide {
    transform: scaleX(-1);
}

html[dir="rtl"] .arrow-icon {
    transform: rotate(180deg);
}

/* RTL Margins and Paddings */
html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .ms-5 {
    margin-left: 0 !important;
    margin-right: 1.25rem !important;
}

html[dir="rtl"] .lg\:ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .lg\:ms-5 {
    margin-left: 0 !important;
    margin-right: 1.25rem !important;
}

/* RTL Text Alignment */
html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

/* RTL Positioning */
html[dir="rtl"] .end-48 {
    left: 12rem !important;
    right: auto !important;
}

html[dir="rtl"] .end-32 {
    left: 8rem !important;
    right: auto !important;
}

html[dir="rtl"] .absolute.end-\[3px\] {
    left: 3px !important;
    right: auto !important;
}

/* ePay Specific Styles */
.epay-primary {
    background-color: var(--epay-primary) !important;
    color: white !important;
}

.epay-primary-dark {
    background-color: var(--epay-primary-dark) !important;
}

.epay-secondary {
    background-color: var(--epay-secondary) !important;
}

.epay-accent {
    background-color: var(--epay-accent) !important;
}

/* Arabic Text Improvements */
html[dir="rtl"] {
    line-height: 1.8;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
    font-weight: 700;
    line-height: 1.4;
}

html[dir="rtl"] p {
    line-height: 1.8;
    font-weight: 400;
}

/* RTL Flexbox Adjustments */
html[dir="rtl"] .flex-row-reverse {
    flex-direction: row !important;
}

html[dir="rtl"] .justify-end {
    justify-content: flex-start !important;
}

html[dir="rtl"] .justify-start {
    justify-content: flex-end !important;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
    html[dir="rtl"] .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    html[dir="rtl"] .grid {
        gap: 1rem;
    }
} 