.zoom-modal-size-normal {
    width: 100vw;
    height: 60vh;
    max-width: 100vw;
    max-height: 60vh;
}

.zoom-modal-size-full {
  width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    min-width: 100vw !important;
    border-radius: 0 !important;
}
.zoom-modal-terminer {
    margin-left: auto;
    background: #E73C46;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    padding-bottom: 8px;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    width: auto;
    margin-right: 19px;
}

.zoom-modal-terminer:hover {
    background: #b71c1c !important;
}

button.zoom-modal-chat {
    margin-left: auto;
    background: #5A7DFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    padding-bottom: 8px;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    width: auto;
    margin-right: 19px;
}

.zoom-modal-chat:hover {
    background: #4669dd !important;
}

.zoom-modal-chat i {
    font-size: 16px;
}

/* Ensure More button dropdown appears above other elements */
.dark-dropdown.more-button__pop-menu.dropdown-menu.show {
    z-index: 99999;
}

/**
 * Zoom Popup Button Styles
 *
 * Ensures popup buttons look consistent with existing link-based buttons
 */

/* Make popup buttons look like the original links */
.kezakoo-zoom-popup-btn {
    /* Reset button styles */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

/* Modal overlay styles */

.zoom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 100vw;
    max-height: 100vh;
}

.zoom-modal-overlay.zoom-modal-size-normal {
    width: 70vw;
    height: 86vh;
    max-width: 100vw;
    max-height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border-radius: 0;
    box-shadow: none;
}

.zoom-modal-overlay.zoom-modal-size-full {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.zoom-modal-top-bar {
    height: 6vh;
    min-height: 6vh;
    background: rgb(255 255 255);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    font-size: 1.5em;
    z-index: 1001;
    position: relative;
    padding-right: 15px;
}

.zoom-modal-top-bar-content {
    flex: 1;
    text-align: center;
}

.zoom-modal-logo {
    justify-self: start;
    align-self: center;
    height: 26px;
    margin-left: 31px;
    z-index: 1002;
    margin-top: -5px;
}

.zoom-modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: visible !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0;
    display: block;
    border-radius: 0;
}

.zoom-modal-bottom-bar {
    height: 8vh;
    min-height: 8vh;
    background: rgb(255 255 255);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 1.2em;
    z-index: 1001;
    position: relative;
}

.zoom-modal-bottom-bar-content {
    flex: 1;
    text-align: center;
}

.zoom-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1002;
    transition: background 0.3s ease;
    margin-left: auto;
    margin-right: 10px;
}

.zoom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-modal-fullscreen {
    background: rgba(0,0,0,0.08);
    border: none;
    color: #222;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: auto;
    margin-left: 15px;
    transition: background 0.3s, color 0.3s;
}

.zoom-modal-fullscreen i {
    font-size: 18px;
    line-height: 1;
}

.zoom-modal-fullscreen:hover {
    background: #222;
    color: #fff;
}

.zoom-modal-overlay.zoom-modal-visible {
    opacity: 1;
    visibility: visible;
}


.zoom-modal-container {
    position: relative;
    width: 100vw;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: #000;
    border-radius: 8px;
    display: block;
    box-shadow: none;
    border-radius: 0;
}


.zoom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.zoom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Ensure Zoom dropdown menus inside iframe are visible */
.dark-dropdown.more-button__pop-menu.dropdown-menu.show {
    z-index: 999999 !important;
}

.zoom-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.zoom-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 15px;
}



/*
 * Custom styles for the new element next to the logo in the modal top bar, matching event page
 */
.zoom-modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zoom-modal-top-bar-content {
    flex: 1;
}

.zoom-modal-top-bar-right {
    color: #848484;
    padding: 7px 7px;
    padding-bottom: 7px;
    border: 1px solid #ffffff;
    font-size: 10px !important;
    line-height: 10px !important;
    max-height: 41px;
    box-shadow: none;
    overflow: hidden;
}

span.zoom-modal-top-bar-right.course {
    padding-left: 0;
    padding-right: 0;
}
.zoom-modal-top-bar-right img {
    max-height: 25px;
}

.zoom-modal-top-bar .zoom-modal-top-bar-right img {
    height: 22px;
    margin-right: 0px;
    margin-left: 9px;
}
span.zoom-modal-top-bar-right.lesson {
    color: #5A7DFF;
    background: rgba(165, 191, 255, 0.40);
    padding: 4px 15px;
    padding-bottom: 7px;
    margin-left: 7px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 12px;
}

span.zoom-modal-top-bar-right.author {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 99px;
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    margin-right: -19px;
}


span.zoom-modal-top-bar-right.niv {
    color: #FF8839;
    background-color: rgba(255, 136, 57, 0.15);
    padding: 4px 15px;
    padding-bottom: 7px;
    margin-left: 7px;
    border-radius: 18px;
    font-weight: bold;
    font-size: 11px;
    line-height: 20px;
}

 button.zoom-modal-fullscreen {
        display: none;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .zoom-modal-container {
        width: 100%;
        height: 93vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

   

    button.zoom-modal-chat {
        margin-right: 15px;
    }
    
    .zoom-modal-close {
        top: 10px;
        right: 10px;
    }

    /* Allow touch events to pass through bars on mobile */
    .zoom-modal-bottom-bar {
        pointer-events: none;
        touch-action: none;
        height: 10vh;
        min-height: 10vh;
        display: none;
    }

    .zoom-modal-top-bar {
        pointer-events: none;
        touch-action: none;
        height: 7vh;
        min-height: 7vh;
        max-height: 7vh;
    }
    
    /* Re-enable touch for interactive elements */
    .zoom-modal-top-bar > *,
    .zoom-modal-bottom-bar > * {
        pointer-events: auto;
        touch-action: auto;
    }

    span.zoom-modal-top-bar-right.lesson {
        display: none;
    }

    span.zoom-modal-top-bar-right.niv {
        display: none;
    }

        .zoom-modal-logo {
        justify-self: start;
        align-self: center;
        height: 16px;
        margin-left: 16px;
        z-index: 1002;
        margin-top: -4px;
    }


    .zoom-modal-overlay.zoom-modal-size-normal {
        width: 95vw!important;
        height: 89vh!important;
        top: 15px!important;
        left: -13px!important;
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .zoom-modal-bottom-bar {
        display: none !important;
    }
    
    .zoom-modal-top-bar {
        height: 12vh !important;
    }
}


@media (orientation: landscape) {

    .zoom-modal-bottom-bar {
        display: none !important;
    }
    
    .zoom-modal-top-bar {
        height: 11vh !important;
        overflow: hidden;
    }

    img.zoom-modal-logo {
        max-height: 17px;
    }

    .zoom-modal-top-bar .zoom-modal-top-bar-right img {
        height: 18px;
        margin-right: 0px;
        margin-left: 13px;
    }

    span.zoom-modal-top-bar-right.lesson {  
        padding: 2px 14px;
        padding-bottom: 5px;
        font-size: 9px !important;
    }

    span.zoom-modal-top-bar-right.niv {
        padding: 2px 14px;
        padding-bottom: 5px;
        font-size: 9px !important;
    }
}