/* =======================
   PROFILE CONTAINER
======================= */
.profile-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    gap: 32px;
}

/* =======================
   HEADER STYLES
======================= */
.header {
    width: 100%;
    padding-bottom: 1.6em;
    background: #fff;
    border-bottom: 1px solid #E4E7EC;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 2px solid #ddd;
}

.header .profile-info h2 {
    margin: 0 0 5px;
    color: #1a202c;
    font-size: 1.5rem;
    text-align: left;
}

.header .profile-info p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
    text-align: left;
}

.header .edit-btn {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* =======================
   IMAGE CONTAINER & PROFILE CARDS
======================= */
.img-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.profile, .mentor {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* =======================
   PROGRESS BAR STYLES
======================= */
.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #F79009;
    font-weight: 600;
    font-size: 18px;
}

.progress-bar {
    height: 8px;
    border: 1px solid #E4E7EC;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    width: 150px;
}

.progress-bar-fill {
    height: 100%;
    background: #0BA5EC;
    transition: width 0.3s ease;
}

/* =======================
   MILESTONE CARD
======================= */
.milestone-card {
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    width: 100%;
    flex: 1 1 45%;
    gap: 32px;
}

.milestone-card-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* =======================
   UNIVERSITY & PROGRAM DETAILS
======================= */
.university-info h4 {
    color: #1a365d;
    font-size: 1.25rem;
    margin-bottom: 0 !important;
}

.university-info p,
.program-details p {
    color: #4a5568;
    margin-bottom: 0 !important;
}

.program-details h5 {
    margin: 1rem 0 0.25rem;
    color: #2d3748;
    font-size: 1rem;
}

/* =======================
   MISSION LIST
======================= */
.mission {
    margin-top: 20px;
}

.mission h3 {
    color: #667085 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
}

.mission ul {
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.mission ul li {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.mission ul li:last-child {
    border-bottom: none;
}

.mission ul li input {
    margin-right: 10px;
}

.mission ul li a {
    text-decoration: none !important;
}

.mission .submit-btn {
    background: #007bff;
    color: #fff;
    border: 1px solid #E4E7EC;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* =======================
   MENTOR SECTION
======================= */
.mentor-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    flex-wrap: wrap;
}

.mentor-info {
    display: flex;
    align-items: center;
}

.mentor-info img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 2px solid #ddd;
}

.mentor-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mentor-details h4 {
    margin: 0 0 5px;
    color: #1a202c;
    font-size: 1.25rem;
    text-align: left;
}

.mentor-details p {
    margin: 0 0 5px;
    color: #718096;
    font-size: 0.875rem;
    text-align: left;
}

.mentor-details .mentor-name {
    font-weight: 600;
}

/* =======================
   BUTTONS
======================= */
.book-session-btn {
    display: inline-block;
    color: #fff !important;
    background-color: #0BA5EC !important;
    padding: 16px 22px !important;
    border-radius: 10px !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.book-session-btn:hover {
    background-color: #062C41 !important;
}

.contact-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-btn:hover {
    background: #0056b3;
}


.upgrade-plan-button {
    display: inline-block;
    color: #fff !important;
    background-color: #0BA5EC !important;
    padding: 16px 22px !important;
    border-radius: 10px !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background-color 0.2s;
    gap: 10px !important;
}

.upgrade-plan-button:hover {
    background-color: #062C41 !important;
    transition: all 0.2s linear !important;
}

.smd-upload-btn {
    all: unset;
    cursor: pointer !important;
}

/* =======================
   SCHEDULE
======================= */
.schedule {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.schedule .days {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.schedule .days div {
    padding: 5px 10px;
    border: 1px solid #E4E7EC;
    border-radius: 5px;
}

.schedule .times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.schedule .times div {
    padding: 10px;
    border: 1px solid #E4E7EC;
    border-radius: 5px;
    text-align: center;
}

/* =======================
   POPUP STYLES
======================= */
.smd-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.smd-popup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smd-preview-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.smd-close-popup {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.smd-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.smd-preview-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a202c;
}

.smd-preview-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.smd-preview-content iframe {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 5px;
    max-height: 800px;
}

.smd-close-preview {
    background: #0BA5EC;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.smd-close-preview:hover {
    background: #062C41;
}

.smd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.smd-download-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background: #28a745;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.smd-download-btn:hover {
    background: #218838;
}

/* =======================
   ADMIN SEARCH STYLES
======================= */
.student-result {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.student-result:hover {
    background: #f0f0f0;
}

.selected-student {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
}

/* =======================
   RESPONSIVE STYLES
======================= */
@media (max-width: 768px) {
    .img-container {
        flex-direction: column;
    }

    .profile, .mentor {
        width: 100%;
    }

    .header {
        flex-direction: column;
    }

    .header .edit-btn {
        margin-top: 10px;
    }

    .mentor-section {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
        gap: 20px;
    }

    .mentor-info {
        margin-bottom: 15px;
    }

    .contact-btn,
    .book-session-btn {
        width: 100%;
    }

    .milestone-card-flex {
        flex-direction: column;
        align-items: normal;
    }

    .progress-bar {
        width: 100%;
    }
}