*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
a{
    text-decoration: none; 
}

/* Loader style */
/* Change the color of the progress bar to red */
#nprogress .bar {
    background: red; /* Progress bar color */
}

/* Change the shadow effect of the moving peg to red */
#nprogress .peg {
    box-shadow: 0 0 10px red, 0 0 5px red;
}

/* Optional: Adjust spinner color if using the spinner */
#nprogress .spinner-icon {
    border-top-color: white;
    border-left-color: white;
}

/*Loader style*/

html,body{
    width:100%;
    height:100%;
}

/* Applied courses.css */

#courses .challan_copy{
    width:100%;
    height:600px;
    border:1px solid var(--main-color);
}
.challan_copy img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.title{
font-weight:500;
font-size:16px;
}
.status{
font-weight:700;
font-size:18px;
}


.x_btn{
position: absolute;
width:25px;
height:25px;
top:2%;
right:2%;
font-size:20px;
cursor: pointer;
font-weight:500;
background-color:var(--main-color);
color:#fff;
border-radius:50%;
}
#download,
#print{
z-index:100;
border:1px double #fff;
padding:10px 15px;
}
#upload_challan form{
display:flex;
flex-direction:column;
gap:20px;
}
.approve_status{
padding:10px 0px;
background-color: salmon;
border-radius:3px;
}


.gap{
    display: flex;
    gap:10px;
    justify-content: space-evenly;
}


/* Applied courses.css */

.logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:100vh;
}

/*start of update profile*/


#profile_container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#profile-head{
    width:90%;
    border-radius: 10px 10px 0px 0px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding:30px 0px;
    margin:0 auto;
}
#profile-view{
    background-color: #fff;
    width:90%;
    border-radius: 0px 0px 10px 10px;
    margin-top:-20px;
    padding: var(--container-padding);
    display: flex;
    flex-direction: column;
    gap:30px;
}
#profile-view input{
    width:100%;
    height:40px;
    border-radius:5px;
    padding:10px 20px;
    font-size:var(--font-size);
}
#profile-view select{
    width:100%;
    height:40px;
    border-radius:5px;
    padding:10px 20px;
    font-size:var(--font-size);
}

/*end of update profile*/
.logo img{
    width:150px;
    height:150px;
    border-radius: 50%;
}
a>i{
    font-size: 30px;
    padding-left:15px;
    padding-top: 15px;
    color:rgb(255, 255, 255);
}
form .input-box{
    position: relative;
    width:100%;
    margin:0;

}
form .input-box i{
    position:absolute;
    top:50%;
    right:1%;
    transform: translate(-50%, -50%);
}
.register-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:100vh;
    padding:20px;
}
.register{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:400px;
    gap:10px;
}

.login-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:100vh;
}
.login{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:350px;
    gap:30px;
}
.header{
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-logo{
    display: flex;
    align-items: center;
    gap:10px;
}
.header a{
    color:#fff;
}
.header-logo-img{
    width:60px;
    height: 60px;
}
.fixed{
    position: fixed;
    top:0;
    width:100%;
    box-shadow: 2px 5px 10px gray;
    z-index:999;
}
.flex{
    display: flex;
}
.mtop{
    margin-top:90px;
}
.footer-links{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap:6px;
    padding: 0 40px;
}
.footer-links a{
    color:#fff;
    text-decoration: none;
    font-weight: 600;
}
.footer-links>p{
    margin:0 auto;
}
.profile-img{
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 50%;
    margin:0 auto;
    border:2px solid #ffffff;
}

.profile-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aside{
    display: flex;
    gap:30px;
    flex-direction: column;
    background-color: #add8e650;
}
ul li>a{
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}
.content{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.welcome{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #8fbbff20;
    border-radius: 10px;
    width:100%;
}
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.contact{
    width:40vw;
    padding:15px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:20px;
}
.profile-info{
    margin:0 auto;
    background-color: #8fbbff20;
    border-radius: 10px;
    padding: 10px 20px;

}

.hover:hover{
    background-color: #8fbbff20;
}
.serviceBox{
    background-color:#add8e6;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-align: center;
    padding: 25px 50px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    height: 450px;
    /* max-width: 500px; */
    margin:0 auto;
}
.serviceBox:before,
.serviceBox:after{
    content: "";
    background-color: #fff;
    border-radius: 10px 10px 120px 120px;
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    z-index: -1;
}

.serviceBox .service-icon{
    background: #fff;
    font-size: 45px;
    line-height: 87px;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    box-shadow: 5px 5px 5px -3px rgba(0,0,0,0.2),0 0 10px rgba(0,0,0,0.15) inset;
}
.serviceBox .service-icon i{line-height:inherit;}
.serviceBox .title{
    font-size: 21px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.serviceBox .description{
    color: #060000;
    font-size: 18px;
    line-height: 30px;
}

.title{
    font-weight:500;
    font-size:16px;
}

.challan_copy{
    width:100%;
    height:345px;
    border:1px solid #add8e650;
    margin:0 auto;
}

.social-links>a>i{
    font-size:40px;
    margin:0 auto;
}
/*have to check bottom*/

#cards{
    display:flex;
    flex-direction:column;
    gap:2em;
    padding:1.5rem;
    border-radius:5px;
}

/* Start of ID card */
#id-cards {
    display: none;
    width: 100%;
    height: 100%;
    background: white;
    padding: 10px;
    box-sizing: border-box;
}

#card-container {
    /* overflow: hidden; */
    width: 6in; /* Strict width */
    height: 4in; /* Strict height */
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: to mimic physical card style */
    outline: 1px solid rgb(0, 0, 0); /* Debugging border */
}

.card-title-bar{
    background-color: rgb(116, 116, 121);
    color:#fff;
    font-weight: 600;
    font-size:12px;
    border-radius: 5px;
    padding:5px;
}


.id_card_title h5,p{
    margin:0;
}

.id_card_table{
    width: 5.5cm;
    height: 8.5cm;
    background: #ffffff;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.id_card_table tr th,td{
padding:0;
font-size: 10px;
text-align: center;
margin:0 auto;
line-height: normal;
}

.id_card_table tr td span{
    font-size: 10px;
    margin: 0;
}

tr>td>hr{
    margin: 0 auto;
    width:50%;
    text-align: center;
}

.id_card_table tr td p{
    font-weight: bold;
    font-size: 10px;
    margin: 0;
}

.sign img{
    width:70px;
}

td>div{
    margin:0;
}

.id_card_logo{
    height:50px;
    width:50px;
    margin:0 auto;
}

.id_card_logo img{
    height:100%;
    width:100%;
    object-fit: contain;
}

.id-card-pic{
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border:1px solid blue;
    overflow: hidden;
    margin: 0 auto;
}

.id-card-pic img{
    width:100%;
    height:100%;
    object-fit: cover;
}

/* End of ID card */


/* Modal */
/* Modal container */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden;
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }
  
  /* Modal content */
  .modal-content {
    background-color: #fefefe;
    margin: 20% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    /* float: right; */
    position: absolute;
    right:1%;
    top:1%;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
/* End of Modal */
/*-----------------------------------------------*/

/*change pass*/
#changePass_container{
    display: none;
}

/*change pass*/


/*Admission Form*/
#print_section {
    display: none;
    width: 793.7px; /* A4 width in pixels */
    height: 1122.5px; /* A4 height in pixels */
    overflow: hidden; 
    font-size: 13px; /* Adjust font size for scaling */
    box-sizing: border-box; /* Include padding in width/height */
    padding: 10px; /* Adjust padding if needed */
    margin: 0 auto; /* Center the content */
    background: #fff; /* Ensure a white background for printing */
}

tr .tab{
    background-color: gray;
    text-align:center;
}
#admissionForm{
    width:100%;
    height: 96%;
}
#admissionForm tr>th{
    padding:2px 3px;
    border:1px solid gray;
}

#admissionForm tr>td{
    padding:10px 3px;
    border:1px solid gray;
    font-size: 13px;
}

td>li{
    color:red;
    text-align: left;
}

#admissionForm tr th h1,h2{
    margin:0;
}

.form_logo{
    width:90px;
    height:90px;
    margin:0 auto;
}

.form_pic{
    height:120px;
    width:100px;
    border-radius:5px;
    margin:0 auto;
}

/*End of Admission Form*/


.profile_pic{
    height:140px;
    width:120px;
    border:2px solid #ffffff;
    border-radius:5px;
    overflow: hidden;
    cursor:pointer;
    position:relative;
}
#cover{
    opacity: 0;
    height:60%;
    width:100%;
    position:absolute;
    bottom:0;
    left:0;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#fff;
}
.profile_pic:hover #cover{
    background-color: #00000060;
    opacity:0.9;
    top:40%;
    font-weight: bold;

}
.profile_pic img{
    width: 100%;
    height:100%;
    object-fit: cover;
}


.instructions{
    text-align:initial;
    font-size:0.9em;
    display: flex;
    flex-direction: column;
}

/* Profile upload containter*/
#upload_container {
    width: 100%;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #00000055;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#upload_box {
    background-color: #fff;
    padding: 30px; /* Reduced padding for smaller screens */
    border-radius: 5px;
    position: relative;
    width: 90%; /* Default width */
    max-width: 600px; /* Limit maximum width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for better aesthetics */
}

.x_btn {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 500;
    background-color: rgb(13, 110, 253);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*End of Profile upload containter*/

#challan_upload_container {
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    
}

#challan_upload_modal {
    min-width: 300px;
    min-height: 270px;
    width: 40%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 9999; /* Ensure it is above other elements */
}


/* CSS for downloading challan on a4 page*/
.bold-left{
    font-weight:800;
    text-align:left;
    font-size: 0.7rem;
    font-family: Arial, Helvetica, sans-serif;
}
.bold-center{
    text-align:center;
    font-weight:600;
}
    
#challan tr td{
    border:1px solid #000;
    padding: 7px 5px;
}
    
#challan tr td img{
    width: 60px;
    height:60px;
    object-fit: contain;
}
#challan tr td h2{
    margin:0;
}
.bg{
    background-color:#999;
}
    


#challan {
    width: 100%;
    margin: 10px auto;
}

#challan_section {
    display: none; /* Ensure visibility for rendering */
    width: 297mm; /* A4 landscape width */
    height: 210mm; /* A4 landscape height */
    /* overflow: hidden;  */
    background-color: #fff; /* Ensure white background */
    font-size: 13px; /* Adjust font size for scaling */
    box-sizing: border-box; /* Include padding in height/width */
    padding: 10px; /* Add inner spacing */
    margin: 0 auto; /* Center the content */
}

#challan_container {
    width: 100%;
    display: flex;
    gap:25px;
    background-color: #fff;
    text-align: center;
    justify-content: center;
    font-size: 13px;
    page-break-inside: avoid;
    margin:10px 0 0 10px;
}

#challan {
    width: 100%; /* Use full available width */
    height: 100%; /* Stretch to fit container height */
    border-collapse: collapse; /* Clean table layout */
    font-size: 11px; /* Reduce font size if needed */

}
.reverse{
    display:flex;
}


@page {
    size: A4 landscape;
    margin: 0; /* Remove page margins */
}
/* END OF CSS for downloading challan on a4 page*/

@media print {
    @page {
        size: 6in 4in; /* Enforce 6x4 inch page size */
        margin: 0; /* No margins for full coverage */
    }

}
@media screen and (max-width: 768px) {

    .reverse{
        flex-direction:column-reverse;
    }
    .modal-content {
        width: 80%; /* Reduce width for smaller screens */
        margin: 20% auto; /* Adjust margin */
    }

}

@media screen and (max-width: 600px) {

    #challan_upload_box{
        margin:0 auto;
        /* transform: translate(-50%, -50%); */
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%; /* Nearly full width for very small screens */
        margin: 25% auto; /* Further adjust margin */
        padding: 15px; /* Reduce padding */
    }
    .close {
        font-size: 24px; /* Adjust close button size */
    }
}