/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== RTL AND ARABIC SUPPORT ========== */
html[dir="rtl"] {
    direction: rtl;
}

html[lang="ar"] {
    direction: rtl;
}

/* RTL Input Support */
.form-input,
.form-select,
.form-textarea {
    direction: rtl;
}

.filter-input,
.filter-select {
    direction: rtl;
}

.dropdown-search-input {
    direction: rtl;
}

.multi-select-search input {
    direction: rtl;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}