.nav-fixed .topnav {
    z-index: 1039;
}

.fixed-top{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.topnav {
    padding-left: 0;
    height: 3.5rem;
    z-index: 1039;
}

.navbar .form-control, .topnav {
    font-size: 1rem;
}

.form-control {
    display: block;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control-inline {
    display: inline-block;
}

.shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(31,45,65,.15);
}
.bg-white {
    background-color: #fff;
}

.bg-gray {
    background-color: #eee;
}

.profile {
    width: 100%;
}

.profile-logo {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 14px;
    text-align: center;
    font-size: 1.15rem;
    padding: 0;
    color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info {
    margin: 0;
    color: #334155;
    width: auto;
    flex: 1;
    min-width: 0;
}

.user-logout {
    margin-left: auto;
    text-align: center;
}

.logout-icon {
    display: block;
    font-size: 1.15rem;
}

.logout-text {
    font-size: .72rem;
}

.profile-info span {
    display: block;
    line-height: 1.3;
    text-transform: capitalize;
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

#permspan {
    font-size: .9em;
    color: #108e07;
    font-style: italic;
}

#chpwspan a {
    padding: 4px 0;
    font-size: 0.9em;
    color: #e4157e;
}

#chpwspan.invisible {
    display: none;
}

.sidenav .user-logout a {
    font-size: 1em;
    padding: 6px 8px;
    color: #e4157e;
    cursor: pointer;
    line-height: .9;
    border-radius: 10px;
    background: #fff5fb;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.sidenav .user-logout a:hover {
    color: #ab0659;
    background: #ffe9f6;
}

.navbar, .navbar .container, .navbar .container-fluid, .navbar .container-lg, .navbar .container-md, .navbar .container-sm, .navbar .container-xl {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    background: #0061ff;
}
.navbar {
    position: relative;
    padding: .1rem;
}

.topnav .navbar-brand {
    width: 15rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.btn {
    display: inline-block;
    font-weight: 400;
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.255rem .75rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn {
    transition-duration: 0.4s;
}

.btn-default:hover {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-default {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-cancel {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-cancel:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-blue {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-blue:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-warn {
    color: #ffc107;
    background-color: transparent;
    background-image: none;
    border-color: #ffc107;
}

.btn-warn:hover {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-large {
    font-size: 110%;
}

.app {
    background-color: #f4f4f4;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .06), 0 2px 5px 0 rgba(0, 0, 0, .2);
}

.coln-left {
    flex: 30%;
    padding: 0;
    margin: 0;
}

#left {
    flex: 0 0 0 !important;
    width: 0;
    min-width: 0;
    max-width: 0;
    overflow: visible;
}

.coln-left-hide {
  flex: 0;
}

.coln-right {
    flex: 70%;
    position: relative;
    transition: padding-right .24s ease;
}

/* Clear floats after the columns */
.row {
    display: flex;
}

.full-height {
    height: calc(var(--vh, 1vh) * 100);
}

.full-width {
    width: calc(100vw - 200px);
    height: calc(var(--vh, 1vh) * 100);
}

.full-width-active {
    width: 100vw;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
}

.users-header {
    padding: 10px 12px 12px;
    background: linear-gradient(130deg, #0052d8, #0061ff 55%, #0ea5e9);
    color: #f8fafc;
    font-size: .95rem;
    font-weight: 500;
}

.users-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.users-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.users-summary {
    margin-top: 4px;
    color: #dbeafe;
    font-size: .72rem;
    font-weight: 500;
}

.reply {
    height: 53px;
    width: 100%;
    background-color: #eae7e5;
    padding: 10px 5px 10px 5px;
    margin: 0;
    z-index: 1000;
}

.reply textarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    padding: 5px;
    outline: none;
    border: none;
    text-indent: 5px;
    box-shadow: none;
    height: 100%;
}

textarea.form-reply {
    height: 2.1em;
    margin-right: .5em;
}

.form-reply {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 1rem;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.form-reply::placeholder {
  opacity: .7;
}

.select {
    display: block;
    width: 100%;
    padding: .275rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.select-inline {
    display: inline-block;
}

.message {
    width: auto !important;
    padding: 4px 10px 7px !important;
    background: #daf1c6;
    font-size: 12px;
    box-shadow: 0 1px 1px rgba(43, 43, 43, 0.16);
    border-radius: 5px;
    word-wrap: break-word;
    display: inline-block;
    margin: 1em 0 0;
    max-width: 90%;
    text-align: left;
}

.message-sender {
    background: #e6e6e6;
}

.message-private {
    background: white;
}

.message-private .message-header:after {
    content: "(private)";
    margin-left: 1em;
}

.message-system {
    font-size: 10px;
    background: #ececec;
}

.message-row:after, .message-row:before {
    display: table;
    content: " ";
}

.message-row:after {
    clear: both;
}

.message-content {
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
    padding-left: 5px;
    word-wrap: break-word;
    word-break: break-word;
    font-weight: 400;
    font-size: 14px;
    color: #202035;
}

.message-header {
    margin: 0;
    font-style: italic;
    text-shadow: none;
}

.message-footer {
    margin: 0;
    padding: 0;
    margin-bottom: -5px;
    line-height: .9;
    text-align: right;
}

.message-time {
    margin-left: 1em;
}

.message-me-asterisk, .message-me-user {
    margin-right: 0.33em;
}

.message-me-content {
    white-space: pre-wrap;
}

.video-container {
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    background: rgba(0, 0, 0, 0.91);
    /* Display only when showing video */
    display: block;
}

.chat-btn {
    display: block;
    /*on top of video peers*/
    z-index: 1002;
    font-size: 1.8em;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

.chat-btn .icon-chat {
    color: #cac7c7;
    height: 50px;
    padding: 10px;
    text-shadow: 0px 0px 1px #b3adad;
}

.collapse-video {
    left: inherit;
    right: 30px;
}

.video-controls, .top-video-controls {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 25px;
    text-align: center;
    color: #eaeaea;
    font-size: 1.1em;
    opacity: 0;
    height: 32px;
}

.video-controls:after, .top-video-controls:after {
    clear: both;
    display: table;
    content: " ";
}

.top-video-controls {
    text-align: right;
    bottom: inherit;
    top: 0;
    line-height: 1.1;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgb(90 86 86);
}

.controls-button {
    padding: 3px 10px;
    vertical-align: middle;
    height: 100%;
}

.controls-left {
    float: left;
    text-align: left;
}

.controls-right {
    float: right;
    text-align: right;
}

.vc-overlay {
    background: linear-gradient(180deg, rgb(0 0 0 / 20%) 0%, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 70%) 100%);
}

.peer:hover > .video-controls, .peer:hover > .top-video-controls {
    opacity: 1;
}

.video-controls span, .top-video-controls span {
    margin-right: 20px;
    transition: opacity .7s ease-out;
    opacity: 1;
    cursor: pointer;
}

.video-controls span:last-child, .top-video-controls span:last-child {
    margin-right: 0;
}

.video-controls span:hover, .top-video-controls span:hover {
    opacity: .8;
    transition: opacity .5s ease-out;
}

.video-controls .pin-video {
    color: #e2e8f0;
}

.video-controls .pin-video.active {
    color: #fbbf24;
    opacity: 1;
}

.top-video-controls .video-stop{
    display: flex;
    width: 1.5em;
    height: 1.5em;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: #eaeaea;
}

.video-controls .volume {
    display: inline-block;
    text-align: center;
}

.video-controls .video-play {
    font-size: 0.85em;
}

.video-controls .video-stop {
    color: #d03e3e;
}

.video-controls span.disabled, .video-controls span.disabled:hover, .top-video-controls span.disabled:hover{
    opacity: .2;
    color: #c8c8c8
}

.volume-mute {
    vertical-align: middle;
    width: 25px;
    display: var(--dv, inline);
}

.volume-slider {
    height: 4px;
    width: 60px;
    cursor: pointer;
    margin: 5px 5px;
    vertical-align: middle;
    opacity: var(--ov, 0);
    transition: opacity .5s ease-out;
}

.video-controls .volume:hover {
    --ov: 1;
    --dv: inline;
}

.mobile-container {
    display: block !important;
}

.login-container {
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    display: flex;
    justify-content: center;
    overflow: scroll;
}

/* Safety net for mobile/slow transitions: never keep login layer above media once connected. */
body.meeting-connected #login-container {
    display: none !important;
    pointer-events: none;
}

.login-box {
    width: 20em;
    padding: 1em;
    margin: 5em auto;
    min-height: 23em;
    height: auto;
    background: #fcfcfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.login-box .connect {
    width: 100%;
    text-align: center;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 40px;
}

.login-preview {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}

.login-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 600;
}

.login-preview-mode {
    font-size: 0.82rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #d6dbe4;
    background: #fff;
    color: #1f2937;
}

.login-preview-media {
    width: 100%;
}

.login-preview-video {
    width: 100%;
    height: 168px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.login-preview-placeholder {
    width: 100%;
    height: 168px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px;
    box-sizing: border-box;
}

.login-preview-meter {
    margin-top: 10px;
    color: #475569;
    font-size: 0.82rem;
}

.login-preview-meter span {
    display: block;
    margin-bottom: 4px;
}

.login-preview-meter-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #dbe3ef;
    overflow: hidden;
}

.login-preview-meter-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
    transition: width 0.12s ease-out;
}

.login-preview-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.login-preview-btn {
    flex: 1;
    font-size: 0.85rem;
}

.login-preview-btn.on {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.label-fallback {
    opacity: 0.5;
}

.label {
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1;
    text-align: center;
    line-height: 24px;
    color: #ffffff;
}

.nav-link {
    padding: 0;
    color: #dbd9d9;
    min-width: 30px;
    display: block;
    text-align: center;
    margin: 0 10px;
    position: relative;
    line-height: 1.1;
}

.nav-link span {
    display: block;
}

.nav-link label {
    display: block;
    cursor: pointer;
    color: #fff;
    font-size: 55%;
}

.nav-link:hover {
    color: #c2a4e0;
}
.nav-link label:hover {
    color: #c2a4e0;
}

.nav-cancel, .muted, .nav-cancel label, .muted label {
    color: #d03e3e
}

.nav-cancel:hover, .muted:hover, .nav-cancel label:hover, .muted label:hover {
    color: #d03e3e
}

.nav-button {
    cursor: pointer;
    font-size: 25px;
}

.nav-more {
    padding-top: 5px;
    margin-left: 0;
}

.nav-settings-button {
    border: 0;
    background: transparent;
}

.header-title {
    float: left;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ebebeb;
    line-height: 2em;
}

#title {
    text-align: center;
}

h1 {
    white-space: nowrap;
}

#statdiv {
    white-space: nowrap;
    margin-bottom: 16px;
}

#errspan {
    margin-left: 1em;
}

.connected {
    color: green;
}

.disconnected {
    color: red;
    font-weight: bold;
}

.login {
    display: inline
}

.loginform label {
    min-width: 3em;
    display: inline-block;
    padding-top: 10px;
}

.loginform input[type="text"], .loginform input[type="password"] {
    width: 100%;
}

.switch-radio {
    margin: 0;
}

.invisible,
[hidden] {
    display: none !important;
}

.error {
    color: red;
    font-weight: bold;
}

.noerror {
    display: none;
}

.clear {
    clear: both;
    content: "";
}

#optionsdiv {
    margin-bottom: 4px;
}

#optionsdiv input[type="checkbox"] {
    vertical-align: middle;
    accent-color: #2563eb;
    transform: translateY(1px);
}

#optionsdiv select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    padding: 6px 10px;
}

#optionsdiv select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

#optionsdiv form label {
    color: #374151;
}

#presentbutton {
    white-space: nowrap;
    margin-right: 0.4em;
    margin-top: .1em;
    font-size: 1.1em;
    text-align: left;
    width: 5.8em;
}

#optionsdiv #videoselect {
    text-align-last: center;
    margin-right: 0.4em;
}

#optionsdiv #audioselect {
    text-align-last: center;
}

#sharebutton, #unsharebutton {
    white-space: nowrap;
}

#unsharebutton {
    margin-right: 0.4em;
}

#filterselect {
    text-align-last: center;
    margin-right: 0.4em;
}

#sendselect {
    text-align-last: center;
    margin-right: 0.4em;
}

#simulcastselect {
    text-align-last: center;
    margin-right: 0.4em;
}

#requestselect {
    text-align-last: center;
}

#resolutionselect {
    text-align-last: center;
    margin-right: 0.4em;
}

#chatbox {
    height: 90%;
    position: relative;
}

#chat {
    position: fixed;
    top: 12px;
    right: 16px;
    bottom: 96px;
    width: min(380px, calc(100vw - 32px));
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
    z-index: 1402;
    min-width: 0;
}

body.chat-open #chat {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

body.chat-open #right {
    padding-right: min(396px, calc(100vw - 24px));
}

#inputform {
    display: flex;
}

#box {
    overflow: auto;
    height: calc(100% - 90px);
    padding: 10px;
}

.close-chat {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: .95em;
    text-align: center;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #eef2f7;
}

.close-chat:hover, .close-chat:active {
    background: #dbe4ef;
    border-color: transparent;
}

#connectbutton {
    margin-top: 1em;
    padding: 0.37rem 1.5rem;
}

#input {
    width: 100%;
    border: none;
    resize: none;
    overflow-y: hidden;
}

#input:focus {
    outline: none;
}

#inputbutton:focus {
    outline: none;
}

#resizer {
    width: 4px;
    margin-left: -4px;
    z-index: 1000;
    display: none;
}

#resizer:hover {
    cursor: ew-resize;
}

#peers {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, auto);
    row-gap: 5px;
    column-gap: 10px;
    position: absolute;
    top: 0;
    right: 0; 
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: auto; 
    height: auto; 
    z-index: 1000;
    background-size: cover;
    overflow: hidden;
    vertical-align: top!important;
}

#peers.layout-speaker {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

#peers .peers-layout-main,
#peers .peers-layout-strip {
    display: none;
}

#peers.layout-speaker .peers-layout-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
}

#peers.layout-speaker .peers-layout-strip {
    display: flex;
    flex: 0 0 min(24vw, 280px);
    min-width: 190px;
    max-width: 320px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

#peers.layout-speaker:not(.has-secondary-strip) .peers-layout-strip {
    display: none;
}

#peers.layout-speaker .peers-layout-main .peer,
#peers.layout-speaker .peers-layout-strip .peer {
    margin: 0;
}

#peers.layout-speaker .peers-layout-main .peer {
    width: 100%;
    height: 100%;
}

#peers.layout-speaker .peers-layout-main .media {
    max-height: calc(var(--vh, 1vh) * 100 - 92px);
}

#peers.layout-speaker .peers-layout-strip .peer .media {
    max-height: 200px;
    padding-bottom: 8px;
}

.peer {
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    border: 2px solid rgba(0,0,0,0);
    background: #80808014;
}

.peer-self-view {
    isolation: isolate;
}

.peer-active {
    border: 2px solid #0061ff;
}

.peer-pinned {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.26);
}

.peer-hidden {
    display: none;
}

.media {
    width: 100%;
    max-height: calc(var(--vh, 1vh) * 100 - 76px);
    padding-bottom: 20px;
    object-fit: contain;
}

.media-failed {
    filter: grayscale(0.5) contrast(0.5);
}

.mirror {
    transform: scaleX(-1);
}

#inputform {
    width: 100%;
}

.sidenav {
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: fixed;
    inset: 0;
    transition: opacity .2s ease-out, visibility .2s ease-out;
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sidenav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidenav-panel {
    overflow-y: scroll;
    width: min(540px, calc(100vw - 32px));
    max-height: calc(var(--vh, 1vh) * 100 - 32px);
    background-color: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform .24s ease, opacity .24s ease;
}

.sidenav.open .sidenav-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sidenav-content a {
    padding: 0;
    text-decoration: none;
    font-size: 1rem;
    color: #2563eb;
    display: block;
    transition: color .2s ease;
    line-height: 1.0;
}

.sidenav-content a:hover {
    color: #1d4ed8;
}

.sidenav .closebtn {
    cursor: pointer;
    position: static;
    height: 40px;
    width: 40px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: #eff6ff;
    font-size: 1.25rem;
}

.sidenav .closebtn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sidenav-label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #334155;
    font-size: .88rem;
}

.sidenav-label-first {
    display: block;
    margin-top: 0;
    font-weight: 600;
    color: #334155;
    font-size: .88rem;
}

.sidenav form{
    margin-top: 12px;
}

.sidenav-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.sidenav-header h2{
    color: #fff;
    padding: 0;
    margin: 0;
    max-width: 80%;
    line-height: 1;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.sidenav-content {
    padding: 14px 16px 18px;
    background: #f8fafc;
    height: calc(100% - 64px);
    overflow-y: scroll;
    overflow-x: hidden;
}

.sidenav-content h2 {
    margin: 0;
}

.sidenav-content fieldset {
    margin: 0;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
}

.sidenav-content legend {
    padding: 0 6px;
    color: #1e293b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}

.nav-menu {
    margin: 0;
    padding: 0;
}

.nav-menu li {
    float: left;
    max-height: 70px;
    list-style: none;
}

.bottom-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 1405;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
}

.bottom-controls-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-controls-menu li {
    list-style: none;
}

.bottom-controls .control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-controls .layout-group {
    gap: 4px;
}

.bottom-controls .layout-select-label {
    color: #cbd5e1;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bottom-controls .btn {
    margin: 0;
    width: auto;
    min-width: 56px;
    padding: .35rem .6rem;
    border-radius: 10px;
}

.bottom-controls #presentbutton {
    margin-right: 0;
    margin-top: 0;
    font-size: .95em;
    text-align: center;
    width: auto;
}

.bottom-controls .nav-link {
    color: #f8fafc;
    margin: 0;
    min-width: 58px;
}

.bottom-controls button.nav-link {
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    padding: 0;
}

.bottom-controls button.nav-link:disabled {
    opacity: 0.55;
    cursor: default;
}

.bottom-controls .nav-link label {
    color: #dbeafe;
    font-size: .62rem;
}

.bottom-controls .nav-link:hover {
    color: #93c5fd;
}

.bottom-controls .nav-link label:hover {
    color: #bfdbfe;
}

.bottom-controls .nav-button {
    font-size: 21px;
}

.bottom-controls .nav-more {
    padding-top: 0;
}

.bottom-controls #hide-controls {
    color: #cbd5e1;
}

.bottom-controls #hide-controls:hover {
    color: #e2e8f0;
}

.bottom-controls .nav-chat-button {
    border: 0;
    background: transparent;
    position: relative;
}

.bottom-controls .nav-chat-button.active {
    color: #93c5fd;
}

.bottom-controls .nav-chat-button.active label {
    color: #bfdbfe;
}

.bottom-controls #membersbutton.active {
    color: #93c5fd;
}

.bottom-controls #membersbutton.active label {
    color: #bfdbfe;
}

.bottom-controls #raisehandbutton.raised {
    color: #fbbf24;
}

.bottom-controls #raisehandbutton.raised label {
    color: #fde68a;
}

.bottom-controls #recordbutton i {
    color: #ef4444;
    font-size: 0.82em;
}

.bottom-controls #recordbutton.recording {
    color: #fca5a5;
}

.bottom-controls #recordbutton.recording label {
    color: #fecaca;
}

.bottom-controls #recordbutton.recording i {
    color: #ef4444;
    animation: record-pulse 1.15s ease-in-out infinite;
}

.bottom-controls #recordbutton:hover i {
    color: #f87171;
}

.bottom-controls #closemeetingbutton i {
    color: #f97316;
}

.bottom-controls #closemeetingbutton:hover i {
    color: #fb7185;
}

@keyframes record-pulse {
    0% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 0.45; transform: scale(0.92); }
}

.chat-notification-dot {
    position: absolute;
    top: 2px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
    display: none;
}

.chat-notification-dot.visible {
    display: block;
}

.bottom-controls .device-select {
    height: 34px;
    min-width: 106px;
    max-width: 126px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 0 8px;
    font-size: 0.78rem;
    outline: none;
}

.bottom-controls .device-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.bottom-controls #unpinbutton {
    color: #fcd34d;
}

.bottom-controls #unpinbutton label {
    color: #fde68a;
}

.bottom-controls #unpinbutton:disabled {
    opacity: 0.45;
}

.bottom-controls-restore {
    position: fixed;
    right: 18px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1407;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 0.95rem;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.bottom-controls-restore:hover {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

.bottom-controls-restore:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

body.meeting-connected #mainrow {
    box-sizing: border-box;
    padding-bottom: 88px;
}

body.meeting-connected.controls-hidden #mainrow {
    padding-bottom: 16px;
}

.show-video {
    position: absolute;
    right: 30px;
    bottom: 120px;
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 150%;
    border-radius: 30px;
    background: #600aa0;
    box-shadow: 4px 4px 7px 1px rgba(0,0,0,0.16);
}

.blink {
    -ms-animation: blink 1.0s linear infinite;
    -o-animation: blink 1.0s linear infinite;
    animation: blink 1.0s linear infinite;
}

@keyframes blink {
    0% { box-shadow: 0 0 15px #600aa0; }
    50% { box-shadow: none; }
    100% { box-shadow: 0 0 15px #600aa0; }
}

@-webkit-keyframes blink {
    0% { box-shadow: 0 0 15px #600aa0; }
    50% { box-shadow: 0 0 0; }
    100% { box-shadow: 0 0 15px #600aa0; }
}

/*  Sidebar left */

#left-sidebar {
    min-width: 200px;
    max-width: 200px;
    transition: all 0.3s;
    background: #ffffff;
    border-right: 1px solid #dcdcdc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#left-sidebar .galene-header {
    display: inline-block;
}

header .collapse {
    float: left;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    color: #dbd9d9;
    margin-right: 20px;
    margin-left: 5px;
}

header .collapse:hover {
    color: #c2a4e0;
}

.galene-header {
    font-size: 1.08rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.25;
}

.header-sep {
    height: 10px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), transparent);
}

/* Shrinking the sidebar from 200px to 0px */
#left-sidebar.active {
    min-width: 0;
    max-width: 0;
}

#left-sidebar .sidebar-header strong {
    display: none;
}
#left-sidebar.active .sidebar-header h3 {
    display: none;
}
#left-sidebar.active .sidebar-header strong {
    display: block;
}

#users {
    padding: 8px;
    margin: 0;
    height: auto;
    flex: 1 1 auto;
    min-height: 90px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    overflow-y: auto;
    border: 0;
    gap: 6px;
}

.subgroups-panel {
    flex: 0 0 auto;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px;
    max-height: 38%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subgroups-head {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #475569;
    text-transform: uppercase;
}

.subgroup-create {
    display: flex;
    gap: 6px;
}

.subgroup-create input {
    min-width: 0;
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .82rem;
    background: #ffffff;
}

.subgroup-create .btn {
    border-radius: 10px;
    padding: 6px 10px;
    font-size: .8rem;
}

.subgroups-empty {
    font-size: .78rem;
    color: #64748b;
    padding: 4px 2px;
}

.subgroups-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subgroup-room {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
}

.subgroup-room-main {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.subgroup-room-main .subgroup-room-name {
    color: #1d4ed8;
}

.subgroup-room-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subgroup-room-name {
    font-size: .84rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subgroup-room-count {
    font-size: .73rem;
    color: #64748b;
}

.subgroup-room button {
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: .75rem;
    background: #f8fafc;
    color: #0f172a;
}

.subgroup-room button:disabled {
    opacity: .7;
    cursor: default;
}

.subgroup-room button.subgroup-delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.subgroup-room button.subgroup-delete:hover:not(:disabled) {
    background: #fee2e2;
}

#users .user-p {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px 10px 32px !important;
    border: 1px solid transparent;
    border-radius: 12px;
    line-height: 1.2;
    margin: 0 !important;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

#users .user-p.user-self {
    border-color: #bfdbfe;
    background: #eff6ff;
}

#left-sidebar.active #users > div {
    padding: 10px 8px 10px 24px !important;
}

#users > div:hover {
    background-color: #f8fbff;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

#users > div::before {
    content: "\f111";
    font-family: 'Font Awesome 6 Free';
    position: absolute;
    left: 12px;
    color: #22c55e;
    margin-right: 0;
    font-weight: 900;
    font-size: .63rem;
}

#users > div.user-status-raisehand::before {
    content: "\f256";
    color: #f59e0b;
    font-size: .78rem;
}

#users > div::after {
    font-family: 'Font Awesome 6 Free';
    color: #64748b;
    margin-left: auto;
    font-weight: 900;
    float: none;
}

#users > div.user-status-microphone::after {
    content: "\f130";
}

#users > div.user-status-camera::after {
    content: "\f030";
}

#users > div.user-recording {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    font-weight: 600;
    color: #dc2626;
}

#users > div.user-recording::before {
    content: "\f circle";
    color: #dc2626 !important;
}

#users[data-empty="true"]::after {
    content: "No participants online";
    margin-top: 8px;
    text-align: center;
    color: #64748b;
    font-size: .8rem;
    padding: 14px 10px;
}

.close-icon {
    font: normal 1em/1 Arial, sans-serif;
    display: inline-block;
}

.close-icon:before{ content: "\2715"; }

/* END Sidebar Left */

@media only screen and (min-width: 1025px) {
    .coln-right .collapse-video, .coln-right .show-video {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    #presentbutton {
        width: auto;
    }
    .nav-link {
        margin: 0 4px;
        line-height: 1.5;
    }

    .nav-link label {
        display: none;
    }

    .bottom-controls .layout-select-label {
        display: none;
    }

    .nav-text {
        display: none;
    }

    .nav-more {
        padding-top: 0;
        margin-left: inherit;
    }

    .nav-settings-button label {
        display: none;
    }

    .bottom-controls {
        left: 10px;
        right: 10px;
        transform: none;
        bottom: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-radius: 14px;
    }

    .bottom-controls-menu {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .bottom-controls-menu::-webkit-scrollbar {
        display: none;
    }

    .bottom-controls-menu li {
        flex: 0 0 auto;
    }

    .bottom-controls .btn {
        min-width: 46px;
        padding: .32rem .45rem;
    }

    .bottom-controls .nav-link {
        min-width: 46px;
    }

    .bottom-controls .nav-button {
        font-size: 19px;
    }

    .bottom-controls .device-select {
        min-width: 82px;
        max-width: 92px;
        height: 32px;
        font-size: 0.74rem;
    }

    body.meeting-connected #mainrow {
        padding-bottom: 82px;
    }

    body.meeting-connected.controls-hidden #mainrow {
        padding-bottom: 62px;
    }

    .bottom-controls-restore {
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
        font-size: 0.88rem;
    }

    body.chat-open #right {
        padding-right: 0;
    }

    .full-width {
        height: calc(var(--vh, 1vh) * 100);
    }

    .show-chat {
        display: none;
    }

    .video-container {
        position: fixed;
        height: calc(var(--vh, 1vh) * 100);
        top: 0;
        right: 0;
        left: 0;
        margin-bottom: 60px;
    }

    .top-video-controls {
        opacity: 1;
    }

    .login-container {
        position: fixed;
        height: calc(var(--vh, 1vh) * 100);
        top: 0;
        right: 0;
        left: 0;
        background: #eff3f9;
    }

    .login-box {
        background: transparent;
    }

    .coln-left {
        flex: 0 0 0 !important;
        width: 0;
        display: block;
    }

    .coln-right {
        flex: none;
        position: relative;
    }

    .full-width {
        width: 100vw;
    }

    #left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        min-width: min(82vw, 320px);
        max-width: min(82vw, 320px);
        z-index: 1300;
        margin-left: 0;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    #left-sidebar.active {
        transform: translateX(0);
    }

    #left-sidebar.active #users > div {
        padding: 10px 12px 10px 32px !important;
    }

    body.members-open {
        overflow: hidden;
    }

    body.members-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 1200;
    }

    .sidenav {
        padding: 10px;
    }

    .sidenav-panel {
        width: calc(100vw - 20px);
        max-height: calc(var(--vh, 1vh) * 100 - 20px);
        border-radius: 14px;
    }

    .sidenav-content a {padding: 0;}

    .sidenav-header h2 {
        line-height: 1;
    }

    #peers {
        padding: 3px;
    }

    #peers.layout-speaker {
        flex-direction: column;
        gap: 6px;
    }

    #peers.layout-speaker .peers-layout-main {
        min-height: 0;
    }

    #peers.layout-speaker .peers-layout-main .media {
        max-height: calc(var(--vh, 1vh) * 100 - 170px);
    }

    #peers.layout-speaker .peers-layout-strip {
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 132px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 2px;
    }

    #peers.layout-speaker .peers-layout-strip .peer {
        width: 150px;
        min-width: 150px;
    }

    #peers.layout-speaker .peers-layout-strip .peer .media {
        max-height: 124px;
        padding-bottom: 0;
    }

    #resizer {
        display: none;
    }

    #chat {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 84px;
        border-radius: 14px;
    }

    body.controls-hidden #chat {
        bottom: calc(58px + env(safe-area-inset-bottom));
    }

    .dropdown-content {
        margin-top: 10px;
    }

    #peers .peer.peer-self-view {
        position: fixed;
        right: 10px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 112px;
        height: 152px;
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.45);
        border: 1px solid rgba(148, 163, 184, 0.48);
        background: #020617;
        z-index: 1406;
    }

    body.controls-hidden #peers .peer.peer-self-view {
        bottom: calc(58px + env(safe-area-inset-bottom));
    }

    #peers .peer.peer-self-view .media {
        width: 100%;
        height: 100%;
        max-height: none !important;
        padding-bottom: 0;
        object-fit: cover;
    }

    #peers .peer.peer-self-view .label,
    #peers .peer.peer-self-view .video-controls,
    #peers .peer.peer-self-view .top-video-controls {
        display: none !important;
    }

    body.chat-open #peers .peer.peer-self-view {
        bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.chat-open.controls-hidden #peers .peer.peer-self-view {
        bottom: calc(66px + env(safe-area-inset-bottom));
    }

}

#captions-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    pointer-events: none;
    z-index: 1390;
    alpha: 0;
}

#captions {
    margin: auto;
    padding: 0 0.4rem 0 0.4rem;
    width: max-content;
    font-size: 1.2rem;
    text-align: center;
    pointer-events: none;
    background-color: rgba(255,255,255,.7);
    color: #000;
}

:root{
    --contextualMenuBg: #ffffff;
    --contextualMenuShadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    --contextualMenuRadius: 12px;
    --contextualMenuText: #0f172a;
    --contextualSubMenuBg: #ffffff;
    --contextualHover: #eaf2ff;
    --contextualOverflowIcon: #64748b;
    --contextualSeperator: #dbe3ef;
}

.contextualMenu {
    z-index: 2999;
    border: 1px solid #dbe3ef;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contextualMenuItem,
.contextualHoverMenuItem {
    margin: 0 6px;
    padding: 8px 12px;
    /* text-align: center; */
    /* border-radius: 8px; */
    color: #0f172a;
    border-bottom: 1px solid #b3b3b3;
    transition: background-color .15s ease, color .15s ease;
}

.contextualHoverMenuItem:last-child{
    border-bottom: none;
}

.contextualMenuItem:hover,
.contextualHoverMenuItem:hover,
.contextualSubMenu .contextualMenuItem:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}

.contextualMenuItemIcon {
    opacity: .6;
}

.contextualMenuItemTitle {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding-left: 8px;
}

.contextualMenuItemTip {
    color: #64748b;
    font-size: .74rem;
}

.contextualMenuSeperator {
    padding: 6px 10px;
}

.file-progress {
    accent-color: #0061ff;
    margin-left: 10px;
    margin-right: 10px;
}

#invite-dialog {
    background-color: #eee;
}

#invite-dialog {
    border: solid 2px #0061ff;
}

#invite-dialog button {
    background-color: #3355ff;
    color: white;
    border-radius: .5em;
    padding: .5em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 2em;
    display: inline-block;
    width: 7em;
}

#invite-dialog button:hover {
   background-color: #0022ff;
}

#invite-dialog input {
    margin-top: 1em;
    width: 12em;
    padding: .2em
}

#invite-dialog label {
    margin-top: 1em;
    display: inline-block;
    width:12em;
}

/* Style for the toastify  messages shall be within a css file */
.toastify.error {
    background: linear-gradient(to right, #e20a0a, #df2d2d);
    color: #fff;
}
.toastify.error .toast-close {
    color: #fff;
}
.toastify.warning {
    background: linear-gradient(to right, #bdc511, #c2cf01);
    color: #000;
}
.toastify.warning .toast-close {
    color: #000;
}
.toastify.info {
    background: linear-gradient(to right, #529518, #96c93d);
    color: #000;
}
.toastify.info .toast-close {
    color: #000;
}
