/* WEM Energy: Theme Toggle Button Styling */

/* ── Toolbar placement (preferred) ─────────────────── */

.wem-toolbar-theme-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 2px;
  color: inherit;
  outline: none;
  vertical-align: middle;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Inherit toolbar text color */
.wem-dark .wem-toolbar-theme-btn,
.wem-toolbar-theme-btn {
  color: rgba(255, 255, 255, 0.8);
}

.wem-light .wem-toolbar-theme-btn {
  color: #5C6E82;
}

/* Hover states */
.wem-dark .wem-toolbar-theme-btn:hover,
.wem-toolbar-theme-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.wem-light .wem-toolbar-theme-btn:hover {
  background: rgba(26, 35, 50, 0.06);
  color: #1A2332;
}

/* Icon inside toolbar button */
.wem-toolbar-theme-btn mat-icon,
.wem-toolbar-theme-btn .material-icons {
  font-family: 'Material Icons' !important;
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 1;
}


/* ── Floating fallback (bottom-right) ──────────────── */

.wem-floating-theme-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

.wem-dark .wem-floating-theme-btn,
.wem-floating-theme-btn {
  background: #1C2A42;
  color: #F0F4F8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wem-light .wem-floating-theme-btn {
  background: #FFFFFF;
  color: #3D4F63;
  border: 1px solid rgba(26, 35, 50, 0.12);
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.12);
}

.wem-floating-theme-btn:hover {
  transform: scale(1.1);
}

.wem-dark .wem-floating-theme-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.wem-light .wem-floating-theme-btn:hover {
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.18);
}

.wem-floating-theme-btn:active {
  transform: scale(0.95);
}

.wem-floating-theme-btn mat-icon,
.wem-floating-theme-btn .material-icons {
  font-family: 'Material Icons' !important;
  font-size: 22px;
  line-height: 1;
}


/* ── Hide on login page ────────────────────────────── */

.tb-login-content ~ .wem-toolbar-theme-btn,
.tb-login-content ~ .wem-floating-theme-btn,
.tb-login-content .wem-toolbar-theme-btn,
.tb-login-content .wem-floating-theme-btn {
  display: none !important;
}
