/* Welcome Section Component */

.welcome-section {
    background: linear-gradient(135deg, #ecf4ff 0%, #ffffff 100%);
    border-bottom: 3px solid var(--primary);
    padding: 2rem 0;
}

.welcome-greeting-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    animation: float 3s ease-in-out infinite;
}

.student-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(40, 120, 235, 0.1);
    animation: float 3s ease-in-out infinite;
}

.student-avatar i {
    font-size: 2.5rem;
}

.welcome-title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    color: #120f2d;
}

/* User Info in Navbar */
.user-info-nav {
    display: flex;
    align-items: center;
}

.user-name-display {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet and below (992px) */
@media (max-width: 992px) {

    /* Reduce avatar size */
    .user-avatar,
    .student-avatar {
        width: 60px;
        height: 60px;
    }

    .student-avatar i {
        font-size: 2rem;
    }

    /* Reduce welcome title */
    .welcome-title {
        font-size: 1.4rem;
    }

    .user-info-nav {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 15px;
    }

    .user-name-display {
        margin-bottom: 10px;
        font-size: 1rem;
    }

    #logoutBtn {
        width: 100%;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .welcome-greeting-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Even smaller avatar */
    .user-avatar,
    .student-avatar {
        width: 60px;
        height: 60px;
    }

    .student-avatar i {
        font-size: 2rem;
    }

    .welcome-title {
        font-size: 1.3rem;
    }
}

/* Mobile Small (576px and below) */
@media (max-width: 576px) {
    .welcome-greeting-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    /* Smallest avatar */
    .user-avatar,
    .student-avatar {
        width: 45px;
        height: 45px;
    }

    .student-avatar i {
        font-size: 1.3rem;
    }

    .welcome-title {
        font-size: 1.1rem;
    }
}