/*------------------ xs ------------------*/
@media only screen and (min-width: 0px) {
  .main-body {
    height: calc(100vh - var(--footer-height-xs)) !important;
  }

  .main-content-body {
    height: calc(
      100vh - var(--top-section-height) - var(--footer-height-xs)
    ) !important;
  }

  .main-sidebar {
    max-height: calc(
      100vh - var(--footer-height-xs) - var(--sidebar-logo-height)
    ) !important;
  }

  /* Show - Hide section in mobile screen */
  .visible-on-mobile {
    opacity: 1;
    visibility: visible;
    height: 100%;
    transform: translateX(0);
    transition: all 0.4s ease;
  }

  .visibleOn-mobile--hide {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateX(-100%);
  }

  .visibleOn-Mega--hide {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(-110%);
  }

  .hamburger-icon-sidebar {
    display: block;
  }

  #megaMenu .megaMenu-modal {
    width: 100%;
  }
  #megaMenu .megaMenu-modal-positions {
    position: fixed;
    top: 40%;
    left: 50%;
  }

  #task.task-section,
  #meeting.meetings-section {
    height: 60vh;
  }

  #task .switch-space,
  #meeting .switch-space,
  #notifications-dropdown .switch-space {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
  }

  #footer .footer-container,
  #footer-guest-role .footer-container {
    height: var(--footer-height-xs);
    padding-top: 1rem;
    padding-bottom: 2rem;
    background-color: var(--gray-100);
  }

  #footer .dropdown-menu-footer {
    width: 360px;
    height: 400px;
    overflow-y: auto;
    margin: 0 auto;
    flex-direction: column;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
      rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  }

  #chatPage #left-content-section.left-sidebar {
    position: relative;
    height: fit-content;
    z-index: 1;
  }

  #meeting-list td .meeting-host {
    display: none;
  }

  #minutesPage .minute-editor-border {
    margin: 10px 0;
  }
}

/*------------------ sm ------------------*/
@media only screen and (min-width: 576px) {
  /* Show - Hide section in mobile screen */
  .hamburger-icon-sidebar {
    display: none;
  }

  .visible-on-mobile,
  .visibleOn-mobile--hide,
  .visibleOn-Mega--hide {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 100%;
  }

  #megaMenu .megaMenu-modal {
    width: 90%;
  }

  /* Fixed Left Sidebar */
  #userPage #left-content-section.left-sidebar,
  #roomPage #left-content-section.left-sidebar,
  #minutesPage #left-content-section.left-sidebar,
  #taskPage #left-content-section.left-sidebar,
  #spaceSettingsPage #left-content-section.left-sidebar {
    position: fixed;
  }

  /* #sidebar-section .list-item-tab.active:before {
    content: "";
    position: absolute;
    top: 12px;
    right: -32px;
    border-width: 8px 16px;
    border-style: solid;
    border-color: transparent transparent transparent #000000;
  } */

  #meeting-list td .meeting-host {
    display: none;
  }
  #minutesPage .minute-editor-border {
    margin: 10px 0;
  }
}

/*------------------ md ------------------*/
@media only screen and (min-width: 768px) {
  .main-body {
    height: calc(100vh - var(--footer-height-md)) !important;
  }

  .main-content-body {
    height: calc(
      100vh - var(--top-section-height) - var(--footer-height-md)
    ) !important;
  }

  .main-sidebar {
    max-height: calc(
      100vh - var(--footer-height-md) - var(--sidebar-logo-height)
    ) !important;
  }
  #chatPage #left-content-section.left-sidebar {
    position: fixed;
  }

  #footer .footer-container,
  #footer-guest-role .footer-container {
    height: var(--footer-height-md);
    background-color: transparent;
  }

  #footer .dropdown-menu-footer {
    width: 500px;
    height: 500px;
    overflow-y: auto;
    border-radius: 0.25rem;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
      rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  }

  #footer .space-info-wrapper {
    border-right: none;
  }

  #footer-guest-role .border-guest-custom {
    border-right: 2px solid #777777;
  }

  #task.task-section,
  #meeting.meetings-section {
    height: 65vh;
  }

  #task .switch-space,
  #meeting .switch-space,
  #notifications-dropdown .switch-space {
    left: 50%;
    right: 50%;
    width: 40%;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .right-col-divider {
    padding-right: 2rem;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  #spaceMemberTab .right-col-divider,
  #profilePage .right-col-divider {
    padding-right: 0;
    border-right: none !important;
  }

  #minutesPage .minutes-sections-heading {
    display: block;
    align-items: center;
  }
}

/*------------------ lg ------------------*/
@media only screen and (min-width: 992px) {
  .main-body {
    height: calc(100vh - var(--footer-height-lg)) !important;
  }

  .main-content-body {
    height: calc(
      100vh - var(--top-section-height) - var(--footer-height-lg)
    ) !important;
  }

  .main-sidebar {
    max-height: calc(
      100vh - var(--footer-height-lg) - var(--sidebar-logo-height)
    ) !important;
  }
  #megaMenu .megaMenu-modal-positions {
    position: fixed;
    top: 40%;
    left: 50%;
  }
  #footer .footer-container,
  #footer-guest-role .footer-container {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    height: var(--footer-height-lg);
  }

  #footer .dropdown-menu-footer {
    width: 800px;
    height: auto;
    overflow-y: unset;
    border-radius: 0.25rem;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
      rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  }
  #footer .space-info-wrapper {
    border-right: 1px solid #d8d7d7;
  }

  #footer-guest-role .border-guest-custom {
    border-right: 2px solid #777777;
  }

  #invitationsPage .left-col-divider {
    padding-right: 2rem;
    border-left: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  #profilePage .right-col-divider {
    padding-right: 2rem;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  #megaMenu .megaMenu-modal {
    width: 80%;
  }

  #megaMenu .megaMenu-modal-positions {
    position: fixed;
    top: 50%;
    left: 50%;
  }

  #meetingsPage .meeting-next-button {
    display: flex;
  }

  #meetingsPage .meetings-section {
    padding: 0;
  }

  #meetingsPage .meeting-next-section {
    display: flex;
    flex: 1;
    align-items: center;
  }

  #minutesPage .minute-editor-border {
    margin: 0;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color);
    border-left: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color);
  }
}

/*------------------ xl ------------------*/
@media only screen and (min-width: 1200px) {
  .left-col-divider {
    border-left: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  #task .switch-space,
  #meeting .switch-space,
  #notifications-dropdown .switch-space {
    left: 50%;
    width: 30%;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  #myRooms .accordion-button {
    display: none !important;
    box-shadow: none;
  }

  #myRooms .accordion-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

/*------------------ xxl ------------------*/
@media only screen and (min-width: 1400px) {
  #megaMenu .megaMenu-modal {
    width: 90%;
  }

  #spaceMemberTab .right-col-divider {
    padding-right: 2rem;
    border-right: var(--bs-border-width) var(--bs-border-style)
      var(--bs-border-color) !important;
  }

  #meetingsPage .meeting-next-section {
    display: flex;
    flex: 1;
    align-items: center;
  }

  #meetingsPage .meetings-section {
    display: flex;
    padding: 0;
  }

  #meetingsPage .meeting-attended-button {
    max-width: 190px;
  }

  #meetingsPage .meeting-next-button {
    margin-top: 0;
    display: flex;
  }

  #meeting-list td .meeting-host {
    display: block;
  }

  #minutesPage .minutes-sections-heading {
    display: flex;
    align-items: center;
  }
}
