html,
body {
    font-family: 'Mulish', sans-serif;
    
    margin: 0;

}

main {
    margin: auto;
    margin-bottom: 5%;
    background-color: #f3f9ff;

    border-radius: 15px;
}



.header {

    display: flex;
    justify-content: space-between;
   
    padding-top: 30px;
    padding-bottom: 20px;
   margin: 0% 3%;

}

.headings {
    width: 450px;
    text-align: left;
    padding-left: 30px;
    padding-top: 10px;

}





h1 {
    margin: 0px 0px;
font-size: 30px;
}

.edit {
    font-family: 'Mulish', sans-serif;
    display: flex;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    padding: 7px 10px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    text-align: right;
    transition: 0.4s ease;
}

.edit:hover {
       transform: translateY(-2px);
    box-shadow: 2px 2px 10px 0px #c6c2c2;
}

.edit-icon {

    width: 15px;
    height: 15px;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: -3px;
}

.profile {
    box-sizing: border-box;
    padding: 10px;
    background-color: white;
    margin: 0% 3%;
    border-radius: 12px;
}

figure {
    display: flex;
    gap: 20px;
}

.profile-pic {
    margin-top: 17px;
    margin-left: -25px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.user-mode {
    
    display: block;
    width: 100%;
}

.student-mode {
    font-size: 13px;
    margin-top: 30px;
    background-color: #f0f6fa;
   
    min-width: fit-content;
    height: 30px;
    color: #555;
    margin-bottom: 7px;
    border-radius: 20px;
    padding-left: 20px;
    padding-top: 5px;
    box-shadow: 0.7px 0.7px 2px 0px #efebeb;
}

.teacher-mode {
    font-size: 13px;
    display: none;
     min-width: fit-content;
    background-color: #f0f6fa;
  
    height: 30px;
    font-weight: 300px;
    color: #555;
    border-radius: 20px;
    padding-left: 20px;
    padding-top: 5px;
    box-shadow: 0.7px 0.7px 2px 0px #efebeb;
}

.personalInfo {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 8px;

}


.form-input {
    display: inline-block;
}

div label {
    color: #555;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 8px;
    display: block;
    padding-left: 10px;
}

input {
    font-family: 'Mulish', sans-serif;
    border-radius: 20px;
    min-width: 93%;
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));
    border: 1.5px, solid, #f0f6fa;
    font-size: 12px;
    padding-top: 5px;
    padding-left: 15px;
    margin-left: 5px;
    padding-bottom: 5px;
    box-shadow: 0.5px 0.5px 2px 0px #efebeb;
    pointer-events: none;
}

input:focus {
    outline: none;
}

.bioV {
    margin: 0;
    padding-left: 12px;
}

.bio-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

textarea {
    font-family: 'Mulish', sans-serif;
    resize: none;
    overflow: auto;
    height: fit-content;
    /* width: 90%; */
    padding-left: 10px;
    padding-top: 10px;
    height: auto;
    border-radius: 20px;
    border: 1.5px, solid, #f0f6fa;
    outline: none;
    box-shadow: 0.5px 0.5px 2px 0px #efebeb;
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));
    margin-bottom: 10px;
    pointer-events: none;
}

.privacy-terms {
    display: flex;
    justify-content: space-between;
    background-color: white;
    margin: 0% 3%;
    padding: 10px 0px 10px 10px;

    border-radius: 12px;
}


h4 {
    margin: 0px;
}

.p-terms-align {
    display: flex;
    justify-content: space-between;
    margin: 15px 20px;
}



.view-privacy-terms {
    background-color: #fff5d7;
    color: #bda96d;
    font-family: 'Mulish', sans-serif;
    border: 10px;
    padding: 7px 10px;
    font-size: 12px;

    font-weight: bold;
    border-radius: 12px;
    margin: 0px 18px;
    cursor: pointer;
    transition: 0.4s ease;
}

.view-privacy-terms:hover {

   transform: translateY(-2px);
    box-shadow: 2px 2px 10px 0px #c6c2c2;

}





.certificates-align {
    display: flex;
    justify-content: space-between;
    margin: 15px 20px;

}



.certificate-section {
    display: flex;
    flex-direction: column;
    gap: 5%;
    justify-content: space-between;
    /* background-color: white; */
    /* width: 96%; */
    margin: 0% 3%;
    border-radius: 12px;
}


.certificate {
    width: 100%;
}

.certificate-object div {
    display: flex;
    align-items: center;
    gap: 2%;
    min-width: 60%;
}

.spreadsheet {
    color: black;
}

.popup {
    position: relative;
    pointer-events: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background-color: rgb(151 151 151 / 85%);
    display: flex;

    align-items: center;
    padding: 2%;
}
/* .certificate-visible { display: block; } */

.inner-popup {

    top: 0;
    background-color: #fff;
    margin: auto;
    width: fit-content;

}

.image1 {

    margin: auto;
}

.popup:target {
    opacity: 1;
    display: block;

    pointer-events: all;


}

.close-popup {
    text-decoration: none;
    color: #fff;
}

.x-icon {
    height: 45px;
    width: 45px;
    margin-left: 50px;
}

.certificate-object {
    text-decoration: none;
    display: flex;

    padding: 10px;
    width: 90%;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    height: fit-content;
    background-color: white;
    border-radius: 12px;
    margin: 10px;


}

/* .certificate-object:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

.Upload-button {
    background: white;
    color: #555;
    padding: 10px;
    text-align: center;
    border: 1px, dashed, #c6c5c5;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    margin: 10px;
    height: 34px;
    width: 90%;
}


.Remove {
    color: #a32e2e;
    background-color: #ffedea;
    font-weight: bold;
    font-size: 12px;
    border: 10px;
    font-family: 'Mulish', sans-serif;
    padding: 7px 10px;
    border-radius: 12px;


    cursor: pointer;
    transition: 0.4s ease;
}

.Remove:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 10px 0px #c6c2c2;
}

.note {
    padding: 0px 10px;
}

p {
    margin: 0px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

main {
    flex: 1;
    border-radius: 15px;
}

@media (min-width:600px) {
    .personalInfo {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-right: 10px;
        ;
    }

    main {

       
        width:90%;
    }

    input {
        box-sizing: border-box;
        width: 90%;
    }

    .certificate-section {
        flex-direction: row;
        gap: 5%;
    }

    .Remove {

        margin-right: 15px;
    }

    p {
        font-size: 16px;
    }

    input {
        font-size: 16px
    }

    div label {
        font-size: 16px;
    }

    .Upload-button {
        width: 45%;
    }

    .certificate {
        width: 60%;
    }

    .certificate-object {
        width: 90%;

    }

    * {
        font-size: 16px;
        ;
    }
    .teacher-mode{
        font-size: 16px;
        width: 30%;
    }
    .student-mode{
         font-size: 16px;
              width: 30%;
    }
}
/* Certificate clickable area */
.clickable {
    cursor: pointer;
    flex-grow: 1;
}

.clickable:hover {
    opacity: 0.8;
}

/* Certificate Modal Styles */
.certificate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.certificate-modal {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-certificate-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.close-certificate-modal:hover {
    background-color: #e9ecef;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow: auto;
}

/* Image preview */
.certificate-image-preview {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* PDF preview */
.certificate-pdf-preview {
    width: 100%;
    height: 70vh;
    border: none;
}

/* Download content */
.certificate-download-content {
    text-align: center;
    padding: 40px 20px;
}

.file-icon-large {
    width: 64px;
    height: 64px;
    color: #6c757d;
    margin-bottom: 15px;
}

.file-name {
    margin: 15px 0;
    font-size: 18px;
    color: #333;
}

.file-message {
    color: #666;
    margin-bottom: 25px;
}

.download-button {
    display: inline-block;
    padding: 10px 25px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s;
}

.download-button:hover {
    background: #0056b3;
}

#popup::backdrop,#popup1::backdrop {
    background-color: #7f7f7f92;
}

#popup,#popup1 {
    background: transparent;
}