﻿/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* Spinner */
.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #e0f0ff;
    border-top: 6px solid #198754;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Logo text */
.logo-text {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #198754;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: glow 2s infinite alternate;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #007BFF;
    }

    100% {
        text-shadow: 0 0 20px #0056b3;
    }
}

/* Fade out */
#loader.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}


@media print {
    .scrollable {
        overflow: visible !important;
        max-height: none !important;
    }
    #fake-scrollbar {
        display: none;
    }


   
}


    /*___________________ table FORMATTING ______________*/
    table {
        border-collapse: collapse;
        width: 100%;
        table-layout: auto; /* or fixed — see below */
    }

    th, td {
        white-space: nowrap; /* ✨ This prevents wrapping! */
    }

    .table-wrapper {
        overflow-x: scroll;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */
    }

        .table-wrapper::-webkit-scrollbar {
            display: none; /* Chrome, Safari */
        }

    #fake-scrollbar {
        position: sticky;
        bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        height: 20px;
        background: #f0f0f0;
    }

        #fake-scrollbar .fake-content {
            height: 1px;
        }


    .table-container {
        position: relative;
    }
    /*_________________*/
    .sidebar {
        height: 100vh;
        background-color: #003366;
        position: fixed;
        width: 250px;
        top: 0px; /* or whatever your navbar height is */
        left: -250px;
        transition: left 0.3s;
        z-index: 1000;
        overflow-y: auto; /* Add this line */
    }

        .sidebar a {
            color: white;
            padding: 15px;
            text-decoration: none;
            display: block;
        }

            .sidebar a:hover {
                background-color: #001933;
            }

    .open-sidebar {
        left: 0;
    }

    .content {
        margin-left: 0;
        padding: 20px;
        /* Remove the margin-left transition */
    }



    .cap-color1 {
        color: floralwhite;
    }

    .cap-color2 {
        color: blue;
        font-weight: bolder;
    }



    .input-box {
        border: 2px solid #ccc;
        padding: 1rem;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

        .input-box legend {
            font-weight: bold;
            padding: 0 0.5rem;
        }


    .dashboards {
        width: 90px;
    }

    .carsize {
        height: 960px;
    }

    .outline {
        /*-webkit-text-stroke: 2px green;*/
        color: aquamarine;
    }


    /* Watermark base style */
    .watermark {
        display: none; /* Hidden by default */
        position: absolute;
        top: 4in;
        left: 2in;
        width: 60%;
        text-align: center;
        font-size: 60pt;
        font-family: Calibri;
        color: rgba(0, 0, 0, 0.3); /* Semi-transparent */
        transform: rotate(-30deg);
        z-index: 9999;
        pointer-events: none;
    }

    /* When printing, keep same styling */
    @media print {
        .watermark {
            display: block; /* Will be overridden by JS condition */
        }
    }


@font-face {
    font-family: 'al-jazeera';
    src: url('/fonts/Al-Jazeera-Arabic-Regular.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'AGAKayrawan';
    src: url('/fonts/AGA-Kayrawan-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Georgia';
    src: url('/fonts/georgia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



    .icon {
        font-size: 25pt;
        color: seagreen;
    }

    .icon1 {
        font-size: 13pt;
        color: white;
    }

.arabic-cert {
    font-family: AGAKayrawan, 'AGA Kayrawan Regular';
    direction: rtl;
    font-size: 23pt;
}

.arabic-cert1 {
    font-family: AGAKayrawan, 'AGA Kayrawan Regular';
    direction: rtl;
    font-size: 28pt;
}

    .english-cert {
        font-family: Georgia;
        direction: ltr;
        font-size: 24pt;
    }

    .english-cert1 {
        font-family: Georgia;
        direction: ltr;
        font-size: 22pt;
    }


    .subjectsArCat {
        font-weight: bold;
    }


    .deep {
        border-right: 2px solid rgb(25, 135, 84) !important;
    }

    .deep1 {
        border-left: 2px solid rgb(25, 135, 84) !important;
    }

    .centered-div {
        position: absolute;
        top: 0%; /* Push halfway down */
        left: 0%; /* Push halfway across */
        transform: translate(0%, 0%); /* Center by pulling back */
        padding: 20px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }




    .transparent-table {
        width: 80%;
        border-collapse: collapse;
        background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
        border: 1px solid #ddd; /* Border for the table */
    }



    /* Header Styles */
    #transcript-header,
    #transcript-header {
        font-family: 'Arial', sans-serif;
        margin: 0;
    }

    .carouselText {
        position: absolute;
        top: 20%;
        color: green;
    }

    /* Student Info Styles */
    #transcript-student-info {
        /*font-size: 1rem;*/
        margin: 0;
        padding: 0;
    }

    /* Transcript Table Styles */
    #transcript-table {
        width: 100%;
        /* margin-top: 20px;*/
        /* font-size: 14px;*/
    }

        #transcript-table th,
        #transcript-table td {
            /*text-align: center;*/
            vertical-align: middle;
            padding: 0px;
        }

    .subjects {
        font-weight: bold;
        text-align: left;
        padding-left: 8px !important;
    }

    .subjectsAr {
        font-weight: bold;
        text-align: right;
        padding-right: 8px !important;
    }

    #transcript-table th {
        color: white;
    }

    #transcript-table td {
        /* font-size: 1rem;*/
    }

    #transcript-table tfoot tr {
        font-weight: bold;
    }

    /* Certification Section */
    #certification-section {
        margin-top: 0px;
        /* font-size: 1rem;*/
    }

    /* Print Styling */
    /*@media print {
    body {
        -webkit-print-color-adjust: exact !important;
    }*/

    #transcript-a4-container {
        padding: 0;
        margin: 0;
        page-break-after: auto;
    }

    /*   @page {
        size: A4;
        margin: 10mm;
    }*/
}





table-Transcript {
    width: 100%; /* Optional, only if you want the table to take full width */
    table-layout: auto; /* Automatically size columns based on content */
    border-collapse: collapse; /* Removes double borders between cells */
}

.vertical-text {
    writing-mode: vertical-lr; /* vertical text from top to bottom, left to right */
}



/* Container for the certificate */
.certificate-container {
    /* width: 100%;
    height: 100%;*/
    width: 297mm;
    height: 210mm; /*A4 size: 210mm by 297mm*/
    /* padding: 40px; */
    /*border: 10px solid blue;*/
    /*  background-color: white; */
    /*  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    top: 0px;
    left: 0px;
    padding: .5in;
    /*color: black;*/
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    page-break-before:always;
    /*background-size: contain;*/
    /*background-size: 20% 20%;*/
}

.containerPrincipal{
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    font-size:14pt;
 

}

/* Container for the certificate */
.container1 {
    /* width: 100%;
    height: 100%;*/
    /*width: 210mm;
    height: 297mm;*/ /*A4 size: 210mm by 297mm*/
    /* padding: 40px; */
    /*border: 10px solid blue;*/
    /*  background-color: white; */
    /*  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    top: 0px;
    left: 0px;
    padding: .4in;
    /*color: black;*/
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    page-break-after: auto;
    /*background-size: contain;*/
    /*background-size: 20% 20%;*/
}

.container2 {
    /* width: 100%;
    height: 100%;*/
    width: 210mm;
    height: 297mm; /*A4 size: 210mm by 297mm*/
    /* padding: 40px; */
    /*border: 10px solid blue;*/
    /*  background-color: white; */
    /*  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    top: 0px;
    left: 0px;
    padding-left: .5in;
    padding-right: .5in;
    /*color: black;*/
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    page-break-before: always;
    /*background-size: contain;*/
    /*background-size: 20% 20%;*/
}

.container3 {
    /* width: 100%;
    height: 100%;*/
    width: 210mm;
    height: 297mm; /*A4 size: 210mm by 297mm*/
    /* padding: 40px; */
    /*border: 10px solid blue;*/
    /*  background-color: white; */
    /*  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    top: 0px;
    left: 0px;
    padding-left: .4in;
    padding-right: .4in;
    /*color: black;*/
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    page-break-before: always;
    /*background-size: contain;*/
    /*background-size: 20% 20%;*/
}

.container4 {
    /* width: 100%;
    height: 100%;*/
    height: 297mm;
    width: 210mm; /*A4 size: 210mm by 297mm*/
    /* padding: 40px; */
    /*border: 10px solid blue;*/
    /*  background-color: white; */
    /*  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    top: 0px;
    left: 0px;
    padding: .0in;
    /*color: black;*/
    background: rgba(255, 255, 255, 0.9);
    background-image: url('../images/NIS_Logo4.png');
    background-size: 14.25%;
    background-blend-mode: overlay;
    page-break-before: always;
    /*background-size: contain;*/
    /*background-size: 20% 20%;*/
}
.body1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    /* background-color: #f4f4f9; */
    /*color: black;*/
}




.basmala {
    font-family: Calibri;
    font-size: 14px;
    font-weight: bold;
    text-align:center;
    /*color: black;*/
}

.basmala1 {
    font-family: Brush Script MT;
    font-size: 12px;
    font-weight: bold;
    /*color: black;*/
}

.certificate-logo {
    width: auto;
    height: auto;
    position: absolute;
    top: 110px;
    left: 840px;
}

.SHStranscript-logo {
    width: 1.5in;
    height: 1.5in;
    position: center;

}

.student-photo {
    width: 2in;
    height: 2in;
    opacity: 0.7 !important;
    /*   position: absolute;
    top: 1in;
    left: 1in;*/
}

.transcript-logo {
    width: auto;
    height: auto;

    top: .2in;
    margin-left: 0in;
}

.student-photo-tr {
    width: 1.5in;
    height: 1.5in;
    opacity:0.7 !important;
    top: .2in;
    margin-left: 0in;
}
}




.certificate-body {
    font-size: 18px;
    font-weight: normal;
    margin: 0in;
    padding:0in;
}


/*.certificate-body, h3 {
    font-size: 22px;
    margin: 15px 0;
}*/

.certificate-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 60px;
}

.certificate-signature-block {
    text-align: center;
    font-size: 20px;
    font-weight: normal;
}

@media print {
    .body1 {
        margin: 0 !important;
    }

    @media print {
        nav, .navbar, header, footer {
            display: none;
            visibility: hidden;
        }

        @media print {
            @page {
                size: A4 landscape; /* Set A4 size and landscape orientation */
                margin: 0; /* No margin from the browser */
            }
            /* Hide the browser's default headers/footers */
            @page {
                /* size: auto;*/
                margin: 0;
            }
            /* Ensure all content fits within the A4 page */
            .body1 {
                width: 297mm !important;
                height: 210mm !important;
            }

            .certificate-container {
                margin-top: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .certificate-container1 {
                margin-top: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            /*  .certificate-container {
            page-break-before: always;
            page-break-after: always;
        }*/
            .sidebarHeader-top {
                margin-top: 1.5in !important;
            }

            .bodyWaterMark {
                top: 0px;
                left: 0px;
                /*color: black;*/
                background: rgba(255, 255, 255, 0.9);
                background-image: url('../images/NIS_Logo4.png');
                background-blend-mode: overlay;
                page-break-after: auto;
                background: rgba(255, 255, 255, 0.9);
                background-image: url('../images/NIS_Logo4.png');
                background-blend-mode: overlay;
                background-size: contain;
            }
