/* ==========================================================================
   WorkOS Technologies Private Limited — Slack-Style Enterprise Workspace CSS
   Default Palette: Slack Classic Aubergine (#3F0E40)
   ========================================================================== */

:root {
  /* Slack Default Aubergine Theme Colors */
  --slack-aubergine: #3F0E40;
  --slack-aubergine-dark: #350d36;
  --slack-aubergine-darker: #2b092c;
  --slack-aubergine-hover: #350d36;
  --slack-sidebar-border: #522653;
  --slack-sidebar-text: #cfc3cf;
  --slack-sidebar-text-bright: #ffffff;
  --slack-active-item-bg: #1164A3;
  --slack-active-item-text: #ffffff;

  /* Slack Brand Accent Colors */
  --slack-green: #2BAC76;
  --slack-green-hover: #007a5a;
  --slack-blue: #36C5F0;
  --slack-yellow: #ECB22E;
  --slack-red: #E01E5A;

  /* Main Content Area Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-hover: #f8f8f8;
  --border-light: #e2e2e2;
  --text-primary: #1d1c1d;
  --text-secondary: #616061;
  --text-muted: #868686;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Layout Dimensions */
  --topbar-height: 44px;
  --rail-width: 68px;
  --sidebar-width: 260px;
  --right-panel-width: 360px;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--slack-aubergine-dark);
  -webkit-font-smoothing: antialiased;
}

/* Strictly suppress any unexpected injected hosting widgets or badges on frontend */
a[href*="000webhost"],
a[href*="hostinger"],
div[class*="hostinger"],
img[alt*="000webhost"],
img[alt*="Hostinger"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Windows Desktop Titlebar & Top Global Bar
   ========================================================================== */
.global-topbar {
  height: var(--topbar-height);
  background-color: var(--slack-aubergine-dark);
  border-bottom: 1px solid var(--slack-sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--slack-sidebar-text);
  user-select: none;
  -webkit-app-region: drag;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-app-region: no-drag;
}

.company-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.company-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.company-pill img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.topbar-center {
  flex: 1;
  max-width: 560px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.global-search-wrapper {
  flex: 1;
  position: relative;
}

.global-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 5px 12px 5px 30px;
  font-size: 13px;
  outline: none;
  transition: all 0.15s;
}

.global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.global-search-input:focus {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--slack-active-item-bg);
}

.global-search-input:focus::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.75;
  pointer-events: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-app-region: no-drag;
}

.platform-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--slack-sidebar-border);
  border-radius: 6px;
  overflow: hidden;
}

.platform-btn {
  background: transparent;
  border: none;
  color: var(--slack-sidebar-text);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.platform-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.platform-btn.active {
  background: var(--slack-active-item-bg);
  color: #fff;
}

.win-window-controls {
  display: none;
  align-items: center;
  margin-left: 8px;
}

body.mode-windows .win-window-controls {
  display: flex;
}

.win-ctrl-btn {
  width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slack-sidebar-text);
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

.win-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.win-ctrl-btn.close:hover {
  background: #e81123;
  color: #fff;
}

.current-user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.current-user-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: #522653;
}

.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--slack-aubergine);
}

.status-dot.online { background-color: var(--slack-green); }
.status-dot.away { background-color: var(--slack-yellow); }
.status-dot.dnd { background-color: var(--slack-red); }
.status-dot.offline { background-color: transparent; border-color: #999; }

/* ==========================================================================
   Main App Container & Android Simulator Wrapper
   ========================================================================== */
.app-shell {
  height: calc(100vh - var(--topbar-height));
  width: 100%;
  display: flex;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* Android Preview Mode Styling */
body.mode-android {
  background: #1a071b;
}

body.mode-android .app-shell {
  max-width: 412px;
  height: calc(100vh - var(--topbar-height) - 24px);
  margin: 12px auto;
  border: 8px solid #2b2b2b;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  position: relative;
  flex-direction: column;
}

/* ==========================================================================
   Left Workspace Rail (68px)
   ========================================================================== */
.workspace-rail {
  width: var(--rail-width);
  background-color: var(--slack-aubergine-darker);
  border-right: 1px solid var(--slack-sidebar-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 14px;
  flex-shrink: 0;
  z-index: 10;
}

.workspace-logo-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--slack-aubergine);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, border-color 0.15s;
}

.workspace-logo-btn:hover {
  transform: scale(1.04);
  border-color: #fff;
}

.workspace-logo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.rail-btn {
  width: 54px;
  padding: 7px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--slack-sidebar-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.15s;
}

.rail-btn .rail-icon {
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rail-btn:hover .rail-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rail-btn.active {
  color: #fff;
  font-weight: 700;
}

.rail-btn.active .rail-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.rail-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Slack Aubergine Sidebar (#3F0E40)
   ========================================================================== */
.slack-sidebar {
  width: var(--sidebar-width);
  background-color: var(--slack-aubergine);
  color: var(--slack-sidebar-text);
  border-right: 1px solid var(--slack-sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
}

.sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slack-sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-header:hover {
  background-color: var(--slack-aubergine-hover);
}

.sidebar-company-info {
  overflow: hidden;
}

.sidebar-company-name {
  color: var(--slack-sidebar-text-bright);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-company-sub {
  font-size: 11px;
  color: var(--slack-sidebar-text);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.compose-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--slack-aubergine);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.compose-btn:hover {
  background: #f0f0f0;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar-quick-links {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--slack-sidebar-border);
  padding-bottom: 10px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--slack-sidebar-text);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  margin-bottom: 1px;
}

.sidebar-item:hover {
  background-color: var(--slack-aubergine-hover);
  color: #fff;
}

.sidebar-item.active {
  background-color: var(--slack-active-item-bg);
  color: var(--slack-active-item-text);
  font-weight: 600;
}

.sidebar-item .item-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-item .item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-badge {
  background: var(--slack-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slack-sidebar-text);
  opacity: 0.85;
}

.section-add-btn {
  background: transparent;
  border: none;
  color: var(--slack-sidebar-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
}

.section-add-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Huddle Dock at Bottom of Sidebar */
.huddle-bar {
  padding: 10px 12px;
  border-top: 1px solid var(--slack-sidebar-border);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.huddle-bar.active-huddle {
  background: rgba(43, 172, 118, 0.22);
  border-top-color: var(--slack-green);
}

.huddle-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff;
}

.huddle-toggle-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.huddle-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.huddle-bar.active-huddle .huddle-toggle-btn {
  background: var(--slack-green);
  border-color: var(--slack-green);
}

/* ==========================================================================
   Primary Main Workspace Area
   ========================================================================== */
.main-workspace {
  flex: 1;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* View Header */
.workspace-header {
  height: 56px;
  border-bottom: 1px solid var(--border-light);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fff;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 16px;
  cursor: pointer;
}

.header-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-topic {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid var(--border-light);
  padding-left: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-outline:hover {
  background: var(--bg-secondary);
}

.btn-primary {
  background: var(--slack-green);
  border: 1px solid var(--slack-green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--slack-green-hover);
}

.btn-aubergine {
  background: var(--slack-aubergine);
  border: 1px solid var(--slack-aubergine);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-aubergine:hover {
  background: var(--slack-aubergine-dark);
}

/* ==========================================================================
   Chat Feed & Message List
   ========================================================================== */
.chat-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.chat-feed-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.channel-welcome-card {
  background: linear-gradient(135deg, rgba(63, 14, 64, 0.06), rgba(17, 100, 163, 0.06));
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.welcome-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--slack-aubergine);
}

.welcome-card-left h3 {
  font-size: 15px;
  color: var(--slack-aubergine);
  margin-bottom: 3px;
}

.welcome-card-left p {
  font-size: 12px;
  color: var(--text-secondary);
}

.message-row {
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.1s;
  position: relative;
  margin-bottom: 4px;
}

.message-row:hover {
  background-color: var(--bg-hover);
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.msg-content-wrap {
  flex: 1;
  min-width: 0;
}

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.msg-author {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.msg-author:hover {
  text-decoration: underline;
  color: var(--slack-active-item-bg);
}

.msg-role-tag {
  font-size: 11px;
  background: #f0ebf0;
  color: var(--slack-aubergine);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
}

.msg-text {
  font-size: 14px;
  line-height: 1.48;
  color: var(--text-primary);
  word-wrap: break-word;
}

.msg-attachment {
  margin-top: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg-attachment img.attachment-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  display: block;
}

.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.reaction-pill {
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.1s;
}

.reaction-pill:hover, .reaction-pill.reacted {
  background: #e8f5fa;
  border-color: #1164A3;
  color: #1164A3;
}

.thread-reply-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slack-active-item-bg);
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.thread-reply-btn:hover {
  background: #eef7fc;
  border-color: #cce6f6;
}

.msg-hover-toolbar {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: none;
  padding: 2px;
  gap: 2px;
}

.message-row:hover .msg-hover-toolbar {
  display: flex;
}

.toolbar-icon-btn {
  background: transparent;
  border: none;
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.toolbar-icon-btn:hover {
  background: var(--bg-secondary);
}

/* ==========================================================================
   Message Composer Box
   ========================================================================== */
.composer-wrapper {
  padding: 0 20px 16px;
  background: #fff;
}

.composer-box {
  border: 1px solid #bbb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer-box:focus-within {
  border-color: var(--slack-aubergine);
  box-shadow: 0 0 0 1px var(--slack-aubergine);
}

.composer-format-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fmt-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.fmt-btn:hover {
  background: #e8e8e8;
  color: var(--text-primary);
}

.composer-input {
  width: 100%;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  resize: none;
  height: 64px;
  outline: none;
}

.composer-attachment-preview {
  padding: 6px 12px;
  background: #f9f4f9;
  border-top: 1px dashed var(--border-light);
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slack-aubergine);
}

.composer-footer {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.send-btn {
  background: var(--slack-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-btn:hover {
  background: var(--slack-green-hover);
}

/* ==========================================================================
   Right Inspector / Thread / Employee Profile Drawer
   ========================================================================== */
.right-drawer {
  width: var(--right-panel-width);
  border-left: 1px solid var(--border-light);
  background: #fff;
  display: none;
  flex-direction: column;
  flex-shrink: 0;
}

.right-drawer.open {
  display: flex;
}

.drawer-header {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 15px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
}

.drawer-close-btn:hover {
  background: var(--bg-secondary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* ==========================================================================
   Company Profile & Directory Full Views (WorkOS Technologies Pvt Ltd)
   ========================================================================== */
.full-view-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background: var(--bg-secondary);
}

.company-hero-banner {
  background: linear-gradient(125deg, var(--slack-aubergine) 0%, #522653 60%, #1164A3 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(63, 14, 64, 0.18);
  flex-wrap: wrap;
}

.company-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-logo-card {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.company-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.logo-upload-overlay {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--slack-green);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.company-hero-text h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.company-hero-text .tagline {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.corp-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.info-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--slack-aubergine);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* Employee Directory Grid */
.directory-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 13px;
  min-width: 240px;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.employee-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.employee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.emp-photo-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
}

.emp-photo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--slack-aubergine);
}

.emp-photo-upload-btn {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--slack-aubergine);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  title: "Change Employee Photo";
}

.emp-photo-upload-btn:hover {
  background: var(--slack-active-item-bg);
}

.emp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.emp-role {
  font-size: 12px;
  color: var(--slack-aubergine);
  font-weight: 700;
  margin-bottom: 4px;
}

.emp-dept-badge {
  font-size: 11px;
  background: #f2edf2;
  color: var(--slack-aubergine);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.emp-meta-list {
  width: 100%;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  background: var(--bg-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emp-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.emp-card-actions button {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   Modals (Edit Company Profile, Add/Edit Employee, Create Channel)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal-header {
  background: var(--slack-aubergine);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-secondary);
}

/* ==========================================================================
   WorkOS Ping — Full-Screen Authentication & Microsoft 365 OTP Reset Screen
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #522653 0%, #3F0E40 45%, #220623 100%);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header {
  background: var(--slack-aubergine);
  color: #ffffff;
  padding: 26px 28px 22px;
  text-align: center;
  border-bottom: 1px solid var(--slack-sidebar-border);
}

.auth-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #fff;
  padding: 3px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-card-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card-header p {
  font-size: 12px;
  color: var(--slack-sidebar-text);
  margin-top: 4px;
}

.auth-card-body {
  padding: 24px 28px;
}

.auth-tabs {
  display: flex;
  background: #f3eef3;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.auth-tab-btn.active {
  background: var(--slack-aubergine);
  color: #ffffff;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.45;
}

.auth-alert.error {
  display: block;
  background: #fde8ef;
  color: #a80d3c;
  border: 1px solid #f7bfd0;
}

.auth-alert.success {
  display: block;
  background: #e6f8f0;
  color: #005c43;
  border: 1px solid #a9e5cb;
}

.auth-submit-btn {
  width: 100%;
  background: var(--slack-aubergine);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
}

.auth-submit-btn:hover {
  background: var(--slack-aubergine-dark);
}

.auth-quick-accounts {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  font-size: 11px;
  color: var(--text-secondary);
}

.quick-acc-chip {
  display: inline-block;
  background: #f6f2f6;
  border: 1px solid #e0d4e0;
  color: var(--slack-aubergine);
  padding: 3px 8px;
  border-radius: 6px;
  margin: 4px 4px 0 0;
  cursor: pointer;
  font-weight: 600;
}

.quick-acc-chip:hover {
  background: var(--slack-aubergine);
  color: #fff;
}

/* ==========================================================================
   Android Mobile Bottom Navigation & Responsive Adjustments
   ========================================================================== */
.android-bottom-nav {
  display: none;
  height: 56px;
  background: var(--slack-aubergine-darker);
  border-top: 1px solid var(--slack-sidebar-border);
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
}

.android-nav-btn {
  background: transparent;
  border: none;
  color: var(--slack-sidebar-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
}

.android-nav-btn.active {
  color: #fff;
  font-weight: 700;
}

body.mode-android .workspace-rail {
  display: none;
}

body.mode-android .slack-sidebar {
  position: absolute;
  inset: 0 0 56px 0;
  width: 100%;
  z-index: 30;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

body.mode-android .slack-sidebar.mobile-open {
  transform: translateX(0);
}

body.mode-android .mobile-menu-btn {
  display: inline-flex;
}

body.mode-android .android-bottom-nav {
  display: flex;
}

body.mode-android .header-topic {
  display: none;
}

body.mode-android .right-drawer {
  position: absolute;
  inset: 0 0 56px 0;
  width: 100%;
  z-index: 40;
}

@media (max-width: 860px) {
  .workspace-rail {
    display: none;
  }
  .slack-sidebar {
    position: absolute;
    inset: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .slack-sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}
