@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1e293b;
  --sidebar-width: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
}

html.aidesk-app-shell,
html.aidesk-app-shell body {
  overflow: hidden;
}

.aidesk-shell-root {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: visible;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50px;
  min-width: 50px;
  background-color: var(--primary-color);
  height: 100vh;
  padding: 10px 0;
  flex-shrink: 0;
  z-index: 1100;
  overflow: visible;
}

.sidebar-top,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.sidebar-btn {
  background: transparent;
  border: none;
  padding: 8px;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 8px;
}

.sidebar-btn:hover,
.sidebar-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-btn .material-icons {
  color: #fff;
  font-size: 20px;
}

#notificationsBtn,
#remindersBtn {
  display: none;
}

.sidebar-status-container {
  position: relative;
  overflow: visible;
}

.sidebar-status-btn {
  background: transparent;
  border: none;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 6px;
}

.sidebar-status-avatar-wrap {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
}

.sidebar-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
}

.sidebar-status-avatar { display: none; }

.sidebar-status-avatar-wrap > .status-circle,
.sidebar-status-avatar-wrap #statusCircle {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  display: block;
  box-shadow: none;
}

.status-menu-option .status-circle {
  position: static;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.status-circle.online { background: #22c55e; }
.status-circle.busy { background: #f59e42; }
.status-circle.offline { background: #64748b; }

.status-menu {
  position: absolute;
  bottom: 46px;
  left: 0;
  background: #fff;
  color: #1e293b;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  min-width: 210px;
  max-width: 270px;
  z-index: 1300;
  padding: 8px 0;
  display: none;
  flex-direction: column;
}

.status-menu.is-open {
  display: flex;
}

.status-menu-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.18s;
}

.status-menu-option:hover { background: #f1f5f9; }

.status-menu-option .material-icons {
  font-size: 20px;
  color: #64748b;
}

.status-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
}

.aidesk-module-host {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100vh;
  background: #f5f5f5;
}

.aidesk-module-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.aidesk-module-frame.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
