html {
    /* font-size: clamp(16px, 1vw + 14px, 20px); */
    /* SEO Friendly & Responsive base font size */
}

body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* font-family: 'Jameel Noori Nastaleeq', 'Nafees Web Naskh', 'Urdu Typesetting', Arial, Tahoma, sans-serif; */
    font-size: 1.2rem;
    line-height: 2;
}

/*urdu font- Jameel Noori nastaleeq Regular and Kasheeda loading from the fonts folder*/
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../../fonts/jameel_noori_nastaleeq_regular.woff2') format('woff2'),
        url('../../fonts/jameel_noori_nastaleeq_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Jameel Noori Nastaleeq Kasheeda';
    src: url('../../fonts/jameel_noori_nastaleeq_kasheeda.woff2') format('woff2'),
        url('../../fonts/jameel_noori_nastaleeq_kasheeda.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.urdu-kasheeda {
    font-family: 'Jameel Noori Nastaleeq Kasheeda', 'Nafees Web Naskh', 'Urdu Typesetting', Arial, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 1.35em;
    /* Scale up slightly because Nastaleeq appears smaller */
}

.urdu-regular {
    font-family: 'Jameel Noori Nastaleeq', 'Nafees Web Naskh', 'Urdu Typesetting', Arial, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 1.35em;
    /* Scale up slightly because Nastaleeq appears smaller */
}

/* Urdu Nastaleeq Font */

@font-face {
    font-family: 'JameelNooriNastaleeq';
    src: url('../../fonts/jameel_noori_nastaleeq_regular.woff2') format('woff2'),
        url('../../fonts/jameel_noori_nastaleeq_regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'NotoNastaliqUrdu';
    src: url('../../fonts/NotoNastaliqUrdu-Regular.woff2') format('woff2');
    font-display: swap;
}

.urdu-text {
    font-family:
        "JameelNooriNastaleeq",
        "NotoNastaliqUrdu",
        "Nafees Nastaleeq",
        serif;

    /* Respect layout direction */
    text-align: start;

    font-size: clamp(1.5rem, 2vw + 1.2rem, 2.5rem);
    line-height: 2.3;

    word-spacing: 2px;
    letter-spacing: 0;

    -webkit-font-smoothing: antialiased;
}

/* Photo Preview Components */
.photo-preview-container {
    min-height: 200px;
    background-color: #f8fafc;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder-icon {
    font-size: 4rem;
    color: #94a3b8;
}

#main-header {
    background: #1e293b;
    color: #f8fafc;
    padding: 0.75rem 0;
    border-bottom: 4px solid #3b82f6;
}

.header-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.session-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

#content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.navbar-custom {
    background-color: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language and RTL Overrides */
[dir="rtl"] .text-end-rtl {
    text-align: left !important;
}

[dir="ltr"] .text-end-rtl {
    text-align: right !important;
}

#footer,
#mainFooter {
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ID Card Specialized Styling */
.id-card-item {
    width: 1086px;
    height: 311px;
    margin: 0 auto;
}

.id-card-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.id-card-side {
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #bac4a8 100%);
}

.photo-box {
    width: 105px;
    height: 105px;
    background: #f1f5f9;
}

.signature-box {
    height: 40px;
    overflow: hidden;
}

.signature-box img {
    max-height: 100%;
}

.mini-photo {
    background: #f1f5f9;
}

.avoid-break {
    break-inside: avoid;
    page-break-inside: avoid;
}

@media print {
    body {
        background-color: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header,
    footer,
    .navbar-custom,
    #searchSection,
    hr,
    #main-header {
        display: none !important;
    }

    #content-wrapper,
    #content {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .id-card-item {
        margin-bottom: 2rem !important;
        box-shadow: none !important;
    }

    .container-fluid {
        width: 100% !important;
        padding: 0 !important;
    }
}

.settings-tabs-font li {
    font-size: 1.2rem;
}