@font-face {
    font-family: 'Framework-Sans';
    src: url('../fonts/FrameworkSans-Bold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Framework-Sans';
    src: url('../fonts/FrameworkSans-Medium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'Framework-Sans';
    src: url('../fonts/FrameworkSans-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Framework-Sans';
    src: url('../fonts/FrameworkSans-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Framework-Sans-CAPS';
    src: url('../fonts/FrameworkSans-Caps-Bold.ttf');
    font-weight: 600;
}



@font-face {
    font-family: 'OmnesLatin-Bold';
    src: url('../fonts/OmnesLatin-Bold.woff2');
    font-weight: 600;
}


:root {
    --main-color: #13CFE8;
    --text-primary: #0F172A;
    --red: #eb4d4b;
    --orange: #f3b012cb;
    --green: #11e896;
    --primary: #141414;
    --button-light: #DBEAFE;
    --button-light-hover: #cde3ff;
    --button-text: #13CFE8;
    --button-light-red: #fedbdb;
    --button-light-red-hover: #ffcdcd;
    --button-text-red: #d81d1d;
    --secondary: #13CFE8;
    --light-color: #999;
    --light-bg: rgb(248 250 252);
    --white: #fff;
    --border: 1px solid #E0E6F7;
}


* {
    font-family: Framework-Sans, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    overflow-x: hidden;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 20px 0 20px 0;
}

section {
    width: 100%;
    padding: 0 20px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}



/* Mobile Bottom Tab Bar */
@media (max-width: 768px) {
    .header-profile-btn--global,
    .header-nav--global {
        display: none;
    }

    .header-section .header-profile-btn {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .header-section .header-nav {
        top: 12px;
        left: 12px;
        gap: 6px;
    }

    .header-section .header-nav-btn span {
        display: none;
    }

    .header-section .header-nav-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .header-nav-btn[aria-label="ექსთენშენი"] {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    /* Mobile star rating - show single star with number */
    .rating-stars {
        display: none;
    }

    .rating-mobile {
        display: flex !important;
        align-items: center;
        gap: 4px;
    }

    .rating-mobile .single-star svg {
        width: 16px;
        height: 16px;
    }

    .rating-mobile .rating-number {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-color);
    }

    section {
        padding: 0 15px;
    }

    body {
        flex-direction: column;
        align-items: center;
    }

    .mobile-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 0.5px solid #E0E6F7;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 12px 0 18px 0;
        /* padding-bottom: max(8px, env(safe-area-inset-bottom)); */
        z-index: 1000;
    }

    .mobile-tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--light-color);
        transition: color 0.3s ease;
        padding: 10px 12px;
        border-radius: 12px;
        min-width: 60px;
    }

    .mobile-tab-item.active {
        fill: var(--button-text);
        color: var(--button-text);
        background-color: var(--button-light);
        ;
    }

    .mobile-tab-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }


    .mobile-tab-label {
        font-size: 10px;
        font-weight: 500;
        text-align: center;
    }

    /* Add bottom padding to body to prevent content from being hidden behind tab bar */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Adjust content spacing for mobile */
    section {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .lecturers-list-container,
    .reviews-container {
        margin-bottom: 20px;
    }

    /* Ensure modals work properly on mobile */
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 60px);
    }

}

/* Desktop - hide mobile tab bar */
@media (min-width: 769px) {
    .mobile-tab-bar {
        display: none;
    }
}


/* -- HEADER BOX START -- */
.header-section {
    position: relative;
    border-radius: 30px;
    background-image: url('/uploads/hero-photo-B1ouqIVO.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    user-select: none;
    overflow: visible;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-section .header-nav {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
}

.header-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 100px;
    background: #fff3;
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.header-nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
}

.header-nav-crushy {
    border-radius: 5px;
}

.header-nav--global {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.header-nav--global .header-nav-btn {
    background: #fff;
    color: #141414;
    border: 1px solid #F0F1F3;
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

.header-nav--global .header-nav-btn.is-active {
    background: #141414;
    color: #fff;
    border-color: #141414;
}

body:has(.header-section) .header-nav--global {
    display: none;
}

.header-section .header-nav-btn.is-active {
    background: #fff;
    color: #141414;
}

@media (max-width: 1100px) {
    .header-section .header-nav-btn span {
        display: none;
    }

    .header-section .header-nav-btn {
        width: 42px;
        padding: 0;
    }
}

.header-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff3;
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.header-section .header-profile-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
}

.header-profile-btn--global {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 20;
    background: #fff;
    color: #141414;
    border: 1px solid #F0F1F3;
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

body:has(.header-section) .header-profile-btn--global {
    display: none;
}

.title-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.title-container svg {
    width: 200px;
    max-width: 70%;
    height: auto;
    display: block;
}

.title-container h1 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    color: var(--primary);
    /* margin-top: 10px; */
    font-family: OmnesLatin-Bold, sans-serif;
}

.title-container h1 span {
    color: #13CFE8;
    font-family: OmnesLatin-Bold, sans-serif;
}

/* -- HEADER BOX END -- */


/* -- START OF STATS -- */
.stats-container {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.stats-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    /*border: 1px solid #f4f4f4;*/
    border-radius: 100px;
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 10px;
    background: #fff3;
    user-select: none;

    backdrop-filter: blur(10px);
    /* border: 1px solid var(--primary)0d; */
}

.stat-badge svg {
    height: 18px;
    width: 18px;
}

.stat-number {
    display: block;
    font-size: 12px;
    font-weight: 500;
    font-family: Framework-Sans, sans-serif;
}

/* -- END OF STATS -- */


.header-container .emojis {
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px !important;
    font-weight: 500;
}


.search-container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 40px;
    border-radius: 100px;
    max-width: 500px;
    /*border: 1px solid #f4f4f4;*/
    padding: 14px 20px;
    background-color: #fff3;
    backdrop-filter: blur(10px);
}

.search-container input {
    width: 100%;
    color: var(--white);
    margin-left: 16px;
    background: transparent;
}

.search-container input::placeholder {
    color: var(--white);
    opacity: 0.5;
}

.search-container svg {
    color: var(--white) !important;
}




.score-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.score-box p {
    font-size: 14px;
    color: var(--text-primary);
}


/* Lecturers List Styles */
.lecturers-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.user-icon-box {
    height: 40px;
    width: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #13CFE8 !important;
    margin-right: 15px;
}

.user-icon-box svg {
    /* color: var(--primary) !important; */
    height: 24px;
    width: 24px;
}

.lecturers-list-card {
    background-color: var(--white);
    border-radius: 22px;
    border: 1px solid #f4f4f4;
    overflow: hidden;
    width: 100%;
}

.lecturers-list {
    padding: 0;
}

.lecturer-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.lecturer-item:last-child {
    border-bottom: none;
}

.lecturer-item:hover {
    background-color: #f8f9fa;
}

.lecturer-item.add-lecturer {
    /* background-color: #f8f9fa; */
    /* border-top: 1px solid #E0E6F7; */
}

.lecturer-item.add-lecturer:hover {
    background-color: #f8f9fa;
}

.lecturer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    text-decoration: none;
    color: inherit;
    font-family: Framework-Sans-CAPS, sans-serif;
}

.lecturer-name {
    font-family: Framework-Sans-CAPS, sans-serif;
}

.lecturer-info {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.lecturer-info>div {
    min-width: 0;
    /* flex: 1; */
}

.lecturer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.lecturer-courses {
    font-size: 12px;
    color: var(--light-color);
    margin: 0;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.lecturer-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.rating-mobile {
    display: none;
}

.lecturer-rating svg {
    color: var(--orange);
}

.lecturer-rating.red-star svg {
    color: var(--red) !important;
}

.lecturer-rating.bad-star svg {
    color: var(--orange) !important;
}

.lecturer-rating.good-star svg {
    color: var(--green) !important;
}

.lecturer-rating.no-star svg {
    color: #d6d6d6 !important;
}

.add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.add-icon svg {
    width: 20px;
    height: 20px;
}


.emojis {
    font-size: 16px !important;
    color: #000;
}

.reviewer-link {}

.reviewer-link .emojis {
    cursor: pointer;
}

.red-star svg {
    color: var(--red) !important;
}

.bad-star svg {
    color: var(--orange) !important;
}

.good-star svg {
    color: var(--green) !important;
}

.no-star svg {
    color: #d6d6d6 !important;
}

.view-post {
    width: 100%;
}

.view-post .row .col {
    flex: 1 1 40rem;
}


/* Reviews Container - Updated to match lecturers list styling */
.reviews-container {
    background-color: var(--white);
    border-radius: 22px;
    border: 1px solid #f4f4f4;
    overflow: visible;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.reviews-container .box-container {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.reviews-container .box-container:last-child {
    border-bottom: none;
}

.reviews-container .box-container.my-review {
    /* background-color: #f0f8ff;
    border-left: 4px solid var(--main-color);
    border-radius: 21px 21px 0 0; */
}

.reviews-container .box-container .indicator {
    width: 6px;
    min-height: 40px;
    height: 60%;
    background-color: #05264e;
    border-radius: 100px;
    margin-left: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-bottom: 20px; */
}

.chip {
    color: var(--text-primary);
    font-weight: 400;
    /* padding: 10px 16px; */
    border-radius: 100px;
    font-size: 13px;
    /* border: 1px solid #f4f4f4; */
}


.reviews-container .box-container .box {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive design for reviews */
@media (max-width: 768px) {
    .reviews-container .box-container .box {
        padding: 15px 20px;
        gap: 12px;
    }

    .reviews-container .box-container .box .user {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 10px;
    }

    .reviews-container .box-container .indicator {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.courses {
    font-size: 11px;
    color: var(--secondary);
    margin-top: 5px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* max-width: 160px; */
}


.reviews-container .box-container .box .user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.reviews-container .box-container .box .user .emojis {
    font-size: 16px !important;
}

/* .reviews-container .box-container .box .user p {
   width: 0px;
   height: 30px;
   border-radius: 10px;
} */

/* Rating display in reviews */
.reviews-container .box-container .box .user div[style*="color"] {
    font-weight: 600;
    font-size: 16px;
}

.reviews-container .box-container .box .user div[style*="color"] svg {
    width: 20px;
    height: 20px;
}

.reviews-container .box-container .box .user div[style*="color"] span {
    font-weight: 600;
    font-size: 16px;
}

.reviews-container .box-container .box .ratings {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.reviews-container .box-container .box .ratings p {
    border-radius: 50%;
    color: var(--white);
    padding: 1rem;
    width: 50px;
    height: 50px;
    text-align: center;
}

.reviews-container .box-container .box .ratings p span {
    font-size: 2rem;
}

.reviews-container .box-container .box .ratings p i {
    font-size: 1.5rem;
}

.reviews-container .box-container .box .name {
    font-size: 2rem;
    color: var(--primary);
    padding: .5rem 0;
}

.reviews-container .box-container .box .description {
    margin-top: 0;
    font-size: 14px;
    white-space: pre-wrap;
    color: var(--text-primary);
    line-height: 1.5;
    max-width: 100%;
    width: 100%;
}

/* Add Review Plus Button */
.add-review-plus-btn {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.add-review-plus-btn:hover {
    background-color: var(--secondary);
    transform: translateX(-50%) scale(1.1);
}

.add-review-plus-btn svg {
    color: var(--white);
    stroke-width: 2.5;
}

.heading {
    position: relative;
    margin-bottom: 20px;
}

/* Ensure the first review container has proper spacing for the plus button */
.reviews-container .box-container:first-child {
    margin-top: 20px;
}

.reviews-container form,
.reviews-container textarea,
.reviews-container input[type="text"] {
    width: 100%;
}

.reviews-container form h3 {
    font-size: 20px;
    color: var(--primary);
    /* margin-top: 10px; */
}

.reviews-container form p {
    font-size: 12px;
    margin-top: 5px;
    color: var(--light-color);
    /* margin-top: 10px; */
}

.reviews-container textarea {
    border: var(--border);
    border-radius: 16px;
    padding: 16px;
    resize: none;
}

.reviews-container input[type="text"] {
    border: var(--border);
    border-radius: 12px;
    padding: 16px;
    resize: none;
    margin-top: 20px;
    margin-bottom: 10px;
}

.edit-lecturer-button {
    font-size: 12px;
    color: var(--main-color);
    font-weight: 500;
    float: right;
    margin-top: 20px;
    margin-right: 10px;
}


.star-rating {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 8px;
}


.star-rating .fa-star {
    font-size: 24px;
    cursor: pointer;
    color: var(--button-light);
}

.star-rating .checked {
    color: orange;
}

.star-rating .star-svg {
    cursor: pointer;
    color: var(--button-light);
    transition: color 0.2s ease;
}

.star-rating .star-svg:hover {
    color: orange;
}

.star-rating .star-svg svg {
    width: 32px;
    height: 32px;
}


/* ALERT */
.popup-box {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out forwards;
}

.popup-box.error {
    background-color: rgb(255, 0, 0);
}

.popup-box.success {
    background-color: #0F172A;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}





/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #E0E6F7;
    color: #666;
    font-size: 14px;
}

footer a {
    color: #000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none !important;
}



/* Unified Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--white);
    border-radius: 26px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1000000;
}

/* Mobile full-screen modals with iOS-style animation */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: calc(100vh - 60px);
        max-width: none;
        max-height: none;
        border-radius: 30px 30px 0 0;
        margin: 20px 0 0 0;
        display: flex;
        flex-direction: column;
        animation: modalSlideUp 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(0);
    }

    .modal-overlay {
        align-items: flex-end;
        justify-content: stretch;
        animation: modalFadeIn 0.3s ease-out;
    }

}

/* iOS-style slide up animation for mobile */
@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px 0 24px;
    margin-bottom: 14px;
}

.modal-header h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
    font-family: Framework-Sans-CAPS, sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: var(--primary);
}

.modal-body {
    padding: 0 20px 20px 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Special Modal Variants */
.censorship-modal,
.updates-modal {
    background-color: rgba(0, 0, 0, 0.7);
}

.censorship-modal-content,
.updates-modal-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.censorship-modal-content h2,
.updates-modal-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.censorship-modal-content p,
.updates-modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.censorship-modal .warning-icon,
.updates-modal .warning-icon {
    color: #FFAE00;
    margin-bottom: 20px;
}

.censorship-modal .close-btn,
.updates-modal .close-btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.censorship-modal .close-btn:hover,
.updates-modal .close-btn:hover {
    background: var(--main-color);
    transform: translateY(-1px);
}

/* Profile Modal Specific Styles */
.global-profile-modal-content {
    max-width: 700px;
    max-height: 85vh;
}

/* Mobile full-screen for profile modals */
@media (max-width: 768px) {
    .global-profile-modal-content {
        max-width: none;
        max-height: none;
        width: 100%;
        height: calc(100vh - 20px);
        border-radius: 30px 30px 0 0;
        margin: 20px 0 0 0;
        animation: modalSlideUp 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(0);
    }
}

.global-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 22px;
    border: 1px solid #eee;
}

.global-profile-name {
    flex-shrink: 0;
}

.global-profile-emojis {
    font-size: 24px;
    line-height: 1.2;
    color: var(--primary);
}

.global-profile-info {
    flex: 1;
}

.global-profile-stats {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.global-profile-stats span {
    margin-right: 8px;
}

.global-profile-actions {
    margin-bottom: 20px;
    text-align: center;
}

.emoji-update-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.emoji-update-btn:hover {
    background: var(--primary);
}

.emoji-update-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.global-profile-reviews-section h4 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 16px;
}

.global-profile-reviews-container {
    /* max-height: 300px; */
    overflow-y: auto;
}

.global-profile-review-item {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 10px;
    /* border-left: 3px solid var(--main-color); */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.global-profile-review-item:hover {
    background: #e9ecef;
}

.global-profile-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.global-profile-review-lecturer {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.global-profile-review-rating {
    color: var(--main-color);
    font-size: 12px;
    font-weight: 500;
}

.global-profile-review-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.global-profile-review-date {
    color: #999;
    font-size: 11px;
    margin-top: 5px;
}

.no-global-profile-reviews {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.global-profile-footer {
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
}

.logout-btn {
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.logout-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn {
    padding: 10px 20px;
    border-radius: 14px;
}

.inline-btn.secondary {
    background-color: var(--light-bg);
    color: var(--primary);
    border: 1px solid var(--border);
}

.inline-btn.primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--border);
}





body.auth-page, body.auth-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: Framework-Sans, sans-serif;
    background-color: #FFFFFF;
    color: #272733;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.auth-page button, body.auth-page input, body.auth-page textarea, body.auth-page select, body.auth-page option {
    font-family: Framework-Sans, sans-serif;
}

body.auth-page .container {
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Logo text with badge */
body.auth-page .logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

body.auth-page .logo-text svg {
    height: 30px;
}

body.auth-page .logo-text .framework {
    font-weight: 600;
}

body.auth-page .logo-text .id-badge {
    background-color: #272733;
    color: #FFFFFF;
    border-radius: 13px;
    font-weight: 600;
    font-size: 19px;
    display: inline-block;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
}

/* Main heading */
body.auth-page .main-heading {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    font-family: Framework-Sans-CAPS, sans-serif;
}

/* Tabs as pill segmented control */
body.auth-page .login-tabs {
    display: flex;
    width: 100%;
    background-color: #fff;
    border-radius: 21px;
    overflow: hidden;
    border: 1px solid #d8dce6;
    padding: 2.4px;
}

body.auth-page .tab {
    flex: 1;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #999999;
    user-select: none;
    font-family: Framework-Sans, sans-serif;
}

body.auth-page .tab.active {
    background-color: #f1f2f5;
    color: #272733;
    border-radius: 18px;
}

/* Input field pill style */
body.auth-page .input-container {
    width: 100%;
}

body.auth-page .input-field {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 22px;
    border: 1px solid #d8dce6;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: #fff;
    color: #272733;
}

body.auth-page .input-field::placeholder {
    color: #999999;
}

body.auth-page .input-field:focus {
    border-color: #272733;
}

body.auth-page .input-field.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

body.auth-page .input-field.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Buttons */
body.auth-page .btn-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.auth-page .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: Framework-Sans, sans-serif;
    text-decoration: none;
    color: inherit;
}

body.auth-page .btn-primary {
    background-color: #292933;
    color: #FFFFFF;
    border: none;
}

body.auth-page .btn-primary:hover {
    background-color: #1b1b26;
}

body.auth-page .btn-secondary {
    background-color: rgba(180,184,204,.2);
    color: #191919;
    border: none;
}

body.auth-page .btn-secondary:hover {
    background-color: rgba(180,184,204,.25);
}

body.auth-page .btn-outline {
    background-color: #FFFFFF;
    border: 1px solid #d8dce6;
}

body.auth-page .btn-outline:hover {
    background-color: #F9F9F9;
}

/* Fingerprint icon */
body.auth-page .fingerprint-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 2px solid #666666;
}

body.auth-page .fingerprint-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 2px solid #666666;
    border-radius: 50%;
    box-sizing: content-box;
}

body.auth-page .fingerprint-icon::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    border: 2px solid #666666;
    border-radius: 50%;
    box-sizing: content-box;
}



/* Form containers */
body.auth-page .form-container {
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

/* Login tabs animation */
body.auth-page .login-tabs {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Main heading animation */
body.auth-page .main-heading {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Form spacing */
body.auth-page .login-form .input-container {
    margin-bottom: 24px;
}

body.auth-page .create-form .input-container {
    margin-bottom: 16px;
}

body.auth-page .create-form .input-container:last-of-type {
    margin-bottom: 0;
}

/* Enhanced button styles for create form */
body.auth-page .btn-secondary {
    background-color: rgba(180,184,204,.2);
    color: #191919;
    border: none;
}

body.auth-page .btn-secondary:hover {
    background-color: rgba(180,184,204,.25);
}

/* Smooth transitions for all interactive elements */
body.auth-page .input-field, .btn, .tab {
    transition: all 0.2s ease;
}

/* Login step styles */
body.auth-page .login-step {
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.auth-page .login-step.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

body.auth-page .login-step.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Register step styles */
body.auth-page .register-step {
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.auth-page .register-step.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

body.auth-page .register-step.visible {
    transform: translateX(0);
    opacity: 1;
}

/* User welcome message */
body.auth-page .user-welcome {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

body.auth-page .user-welcome p {
    margin: 0;
    font-size: 16px;
    color: #272733;
    font-weight: 500;
}

body.auth-page .user-welcome span {
    font-weight: 600;
    color: #272733;
}

/* Login avatar styles */
body.auth-page .login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    margin: 0 auto 16px auto;
    display: block;
}

body.auth-page .login-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto 16px auto;
    border: 3px solid #e9ecef;
}

/* Error message styles */
body.auth-page .error-message {
    margin-top: 6px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
    display: none;
    line-height: 1.4;
    margin-left: 6px;
}

body.auth-page .error-message.show {
    display: block;
}

/* Message styles */
body.auth-page .message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

body.auth-page .message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

body.auth-page .message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body.auth-page .message.show {
    display: block;
}

/* Footer */
body.auth-page .footer {
    text-align: center;
    font-size: 14px;
    color: #999999;
    user-select: none;
    width: 100%;
}

body.auth-page .footer-link {
    color: #999999;
    text-decoration: none;
    font-weight: 500;
    margin-top: 6px;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    transition: text-decoration 0.2s ease;
}

body.auth-page .footer-link:hover {
    text-decoration: underline;
}

/* Success message styles */
body.auth-page .success-message {
    text-align: center;
    padding: 24px 16px;
    /* background-color: #f8f9fa; */
    /* border-radius: 16px; */
    /* border: 1px solid #e9ecef; */
    margin-bottom: 24px;
}

body.auth-page .success-icon {
    width: 60px;
    height: 60px;
    background-color: #292933;
    stroke: white;
    
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px auto;
}

body.auth-page .success-icon svg {
    color: #fff;
    height: 36px;
    width: 36px;
}


body.auth-page .success-message h2 {
    font-size: 18px;
    font-weight: 600;
    color: #272733;
    margin-bottom: 12px;
    font-family: Framework-Sans-CAPS, sans-serif;
}

body.auth-page .success-message p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 8px;
}

body.auth-page .success-message p:last-of-type {
    margin-bottom: 0;
}

body.auth-page .email-display {
    font-weight: 600;
    color: #272733 !important;
    background-color: #e9ecef;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 12px !important;
}


/* Loading button state */
body.auth-page .btn.loading {
    position: relative;
    color: transparent;
}

body.auth-page .btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Unified Modal Styles */
body.auth-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

body.auth-page .modal-content {
    background-color: #ffffff;
    border-radius: 26px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

/* Mobile full-screen modals with iOS-style animation */
@media (max-width: 768px) {
    body.auth-page .modal-content {
        width: 100%;
        height: calc(100vh - 20px);
        max-width: none;
        max-height: none;
        border-radius: 30px 30px 0 0;
        margin: 20px 0 0 0;
        display: flex;
        flex-direction: column;
        animation: modalSlideUp 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(0);
    }
    
    body.auth-page .modal-overlay {
        align-items: flex-end;
        justify-content: stretch;
        animation: modalFadeIn 0.3s ease-out;
    }
}

/* iOS-style slide up animation for mobile */
@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.auth-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px 0 24px;
    margin-bottom: 14px;
}

body.auth-page .modal-header h3 {
    font-size: 18px;
    color: #272733;
    margin: 0;
    font-weight: 600;
    font-family: Framework-Sans-CAPS, sans-serif;
}

body.auth-page .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

body.auth-page .modal-close:hover {
    background-color: #f5f5f5;
    color: #272733;
}

body.auth-page .modal-body {
    padding: 0 20px 20px 20px;
}

body.auth-page .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legacy modal support for backward compatibility */
body.auth-page .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

body.auth-page .close {
    color: #999999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

body.auth-page .close:hover {
    color: #272733;
}

body.auth-page .modal-body p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666666;
}

body.auth-page .modal-body p:last-child {
    margin-bottom: 0;
}

body.auth-page .modal-body a {
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 600;
}

body.auth-page .modal-body a:hover {
    text-decoration: underline;
}

body.auth-page .modal-body strong {
    color: #272733;
    font-weight: 600;
}

/* University Contact Message Styles */
body.auth-page .university-contact-message {
    width: 100%;
    animation: fadeInUp 0.3s ease;
}

body.auth-page .contact-info {
    text-align: center;
}

body.auth-page .contact-icon {
    margin-bottom: 20px;
    color: #6c757d;
}

body.auth-page .contact-icon svg {
    width: 48px;
    height: 48px;
}

body.auth-page .contact-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #272733;
    margin-bottom: 16px;
    font-family: Framework-Sans-CAPS, sans-serif;
}

body.auth-page .contact-info p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
}

body.auth-page .contact-email {
    margin: 24px 0;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #d8dce6;
}

body.auth-page .email-link {
    font-size: 16px;
    font-weight: 600;
    color: #1D4ED8;
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

body.auth-page .email-link:hover {
    background-color: #f0f4ff;
    text-decoration: none;
}

body.auth-page .contact-note {
    font-size: 13px;
    color: #999999;
    font-style: italic;
    margin-top: 16px;
}

/* Animation for university message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
