html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-color: var(--bs-body-bg, #1a1a2e);
    color: var(--bs-body-color, #e2e8f0);
}

/* RTL adjustments */
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }

[dir="rtl"] body {
    font-family: "Tahoma", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Arial, sans-serif;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Card hover */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Form validation */
.field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

/* Captcha */
.captcha-question {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d6efd;
    white-space: nowrap;
}

.captcha-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.captcha-input {
    max-width: 120px;
}
