/* Reset & Base Styles */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../assets/Jameel-NooriNastaleeq-Regular/jameel_noori.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll on body */
    width: 100%;
}

body {
    font-family: var(--font-urdu);
    font-size: var(--font-size-base);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8; /* Adjusted for Nastaliq Urdu readability */
}

/* Typography Extensions */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: normal;
    color: var(--primary);
    margin-bottom: var(--sp-3);
}

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

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

/* Custom Scrollbar for Enterprise Look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.fw-bold { font-weight: 700; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }

.w-100 { width: 100%; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }

.badge {
    display: inline-block;
    padding: var(--sp-1) var(--sp-2);
    font-size: 0.85em;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-success { background-color: var(--success); color: #fff; }
.badge-danger { background-color: var(--danger); color: #fff; }
.badge-warning { background-color: var(--warning); color: #fff; }
.badge-info { background-color: var(--info); color: #fff; }
.badge-accent { background-color: var(--accent); color: var(--primary); }
