.logo {
    max-height: 50px;
    /* Adjust the height as needed */
    width: auto;
    /* Maintain aspect ratio */
    margin-right: 15px;
    /* Space between logo and brand name */
    display: inline-block;
    /* Ensure it aligns properly with text */
    vertical-align: middle;
    /* Aligns the logo vertically with the text */
}

.user-profile {
    position: relative;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    cursor: pointer;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: 200px;
    z-index: 1000;
    text-align: center;
    overflow: hidden;
}

.popup.active {
    display: block;
}

.popup .user-details {
    padding: 15px;
}

.popup .user-details img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.popup .user-details h4 {
    margin: 5px 0;
    font-size: 16px;
    color: black;
}

.popup .divider {
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.popup a {
    display: block;
    padding: 10px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.popup a:hover {
    background: #f1f1f1;
}

/* Fullscreen functionality */
#myVideo {
    position: relative;
    max-width: 100%;
    height: auto;
}

/* Optional: Fullscreen on double click */
#myVideo:fullscreen {
    width: 100%;
    height: 100%;
}

/* التنسيق الافتراضي للحواسيب المحمولة وأكبر */
.withform {
    width: 50%; /* عرض النموذج على 50% من الشاشة */
    margin: 0 auto; /* يتم توسيط النموذج */
}

/* التنسيق للأجهزة الأصغر (مثل الهواتف) */
@media (max-width: 768px) {
    .withform {
        width: 95%; /* عرض النموذج على 95% من الشاشة */
    }
}
