/* Microsoft Teams Clone Theme CSS */
:root {
  --teams-purple: #464eb8;
  --teams-purple-hover: #5b5fc7;
  --teams-purple-active: #3b3a5a;
  --teams-rail-bg: #2b2b40;
  --teams-sidebar-bg: #f5f5f7;
  --teams-sidebar-border: #e1dfdd;
  --teams-header-bg: #464eb8;
  --teams-content-bg: #ebebeb;
  --teams-card-bg: #ffffff;
  --teams-text-primary: #242424;
  --teams-text-secondary: #616161;
  --teams-border: #edebe9;
  --teams-hover: #eaeaea;
  --teams-active: #e2e2e8;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body.teams-app {
  font-family: var(--font-family);
  color: var(--teams-text-primary);
  background-color: var(--teams-content-bg);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top App Header */
.teams-top-header {
  height: 48px;
  background-color: var(--teams-header-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}

.teams-top-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.teams-top-header .brand a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teams-top-header .search-container {
  flex: 0 1 480px;
}

.teams-top-header .search-input {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: background 0.2s;
}

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

.teams-top-header .search-input:focus {
  background: #ffffff;
  color: #242424;
}

.teams-top-header .user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6264a7;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: uppercase;
}

.header-login-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}
.header-login-btn:hover {
  background: #ffffff;
  color: var(--teams-purple);
}

/* App Main Container (Rail + Sidebar + Content) */
.teams-main-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 48px);
  overflow: hidden;
}

/* 1. Left Icon Rail */
.teams-rail {
  width: 68px;
  background-color: var(--teams-rail-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  flex-shrink: 0;
  gap: 4px;
}

.teams-rail .rail-item {
  width: 60px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d1d1d1;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.teams-rail .rail-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.teams-rail .rail-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}

.teams-rail .rail-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background-color: #7b83eb;
  border-radius: 0 2px 2px 0;
}

.teams-rail .rail-badge {
  position: absolute;
  top: 4px;
  right: 10px;
  background-color: #c4314b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--teams-rail-bg);
  pointer-events: none;
}

/* Target highlight when opening thread or comment from notification */
.comment-item:target,
.team-thread-card:target {
  animation: teamsTargetHighlight 2.5s ease-out;
}

@keyframes teamsTargetHighlight {
  0% {
    background-color: #ececf7;
    box-shadow: 0 0 0 2px #5b5fc7;
  }
  70% {
    background-color: #ececf7;
  }
  100% {
    background-color: transparent;
  }
}

.teams-rail .rail-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  fill: currentColor;
}

/* 2. Communities & Channels Sidebar (MS Teams Style) */
.teams-sidebar {
  width: 290px;
  background-color: #f0f0f0;
  border-right: 1px solid #e1dfdd;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 18px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-btn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  color: #616161;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sidebar-btn-icon:hover {
  background: #f7f7f7;
  color: #242424;
  border-color: #b3b3b3;
}

/* Communities List */
.sidebar-groups-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 24px 12px;
}

.community-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e3e3e3;
}
.community-section:last-child {
  border-bottom: none;
}

/* Community Header */
.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 4px;
}

.community-header:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.community-header.active {
  background-color: #ffffff;
  border: 1px solid #edebe9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.community-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.community-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.community-name {
  font-size: 14px;
  font-weight: 700;
  color: #242424;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-dots {
  color: #8a8886;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
}
.community-dots:hover {
  color: #242424;
  background: #f0f0f0;
}

/* Community Channels */
.community-channels {
  list-style: none;
  margin-top: 4px;
  padding-left: 12px;
}

.channel-row {
  margin-bottom: 2px;
}

.channel-row a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #3b3a39;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.channel-row a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.channel-row.active a {
  background-color: #ffffff;
  color: #464eb8;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.channel-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

.channel-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add Channel Row */
.sidebar-add-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #5b5fc7 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.sidebar-add-channel-btn:hover {
  background-color: rgba(91, 95, 199, 0.08) !important;
  color: #464eb8 !important;
}

/* 3. Main Discussion / Chat Feed */
.teams-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--teams-content-bg);
  overflow: hidden;
  position: relative;
}

/* Channel Header in Main Feed */
.channel-main-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid var(--teams-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.channel-main-header .channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-main-header .channel-title {
  font-size: 16px;
  font-weight: 700;
  color: #242424;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-main-header .channel-desc {
  font-size: 12px;
  color: var(--teams-text-secondary);
  border-left: 1px solid var(--teams-border);
  padding-left: 12px;
}

.channel-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-tab-item {
  font-size: 13px;
  font-weight: 500;
  color: #616161;
  text-decoration: none;
  padding: 14px 4px;
  position: relative;
}

.channel-tab-item.active {
  color: var(--teams-purple);
  font-weight: 600;
}
.channel-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teams-purple);
  border-radius: 2px 2px 0 0;
}

/* Thread Stream Scroll Container */
.teams-feed-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Thread Card */
.team-thread-card {
  background: var(--teams-card-bg);
  border: 1px solid var(--teams-border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-thread-card:hover {
  border-color: #d1d1d1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6264a7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.author-info .author-name {
  font-size: 14px;
  font-weight: 600;
  color: #242424;
}

.author-info .post-time {
  font-size: 11px;
  color: var(--teams-text-secondary);
}

.thread-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pinned {
  background: #fdf3d8;
  color: #8f6200;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.thread-title {
  font-size: 16px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 8px;
}

.thread-body {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Comments Section inside Thread */
.thread-comments-wrapper {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--teams-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  background: #fafafa;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.comment-item .avatar-circle-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8b8cc7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.comment-content-wrap {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #242424;
}

.comment-time {
  font-size: 11px;
  color: #8a8886;
}

.comment-body {
  font-size: 13px;
  line-height: 1.4;
  color: #3b3a39;
  white-space: pre-wrap;
}

/* Reply Action & Composer */
.thread-reply-action {
  margin-top: 12px;
}

.btn-open-reply {
  background: none;
  border: 1px solid var(--teams-border);
  color: var(--teams-purple);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-open-reply:hover {
  background: #f3f2f8;
  border-color: var(--teams-purple);
}

.reply-form-box {
  margin-top: 10px;
  display: none;
  background: #ffffff;
  border: 1px solid var(--teams-purple);
  border-radius: 6px;
  padding: 10px 12px;
}

.reply-form-box.open {
  display: block;
}

.reply-textarea {
  width: 100%;
  min-height: 60px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  color: #242424;
}

.reply-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--teams-border);
}

.toolbar-icons {
  display: flex;
  gap: 8px;
}

.toolbar-btn {
  background: none;
  border: none;
  color: #616161;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
}
.toolbar-btn:hover {
  background: #eaeaea;
  color: #242424;
}

.btn-send-reply {
  background: var(--teams-purple);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-send-reply:hover {
  background: var(--teams-purple-hover);
}

/* Bottom New Conversation Box */
.teams-bottom-composer {
  background: #ffffff;
  border-top: 1px solid var(--teams-border);
  padding: 16px 24px;
  flex-shrink: 0;
}

.composer-card {
  border: 1px solid var(--teams-border);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.composer-card:focus-within {
  border-color: var(--teams-purple);
  box-shadow: 0 0 0 1px var(--teams-purple);
}

.composer-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #242424;
  margin-bottom: 8px;
  font-family: inherit;
}
.composer-title-input::placeholder {
  color: #8a8886;
  font-weight: 500;
}

.composer-textarea {
  width: 100%;
  min-height: 60px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #242424;
}
.composer-textarea::placeholder {
  color: #8a8886;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--teams-border);
}

/* Auth Pages (Register / Social Login) */
.teams-auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #464eb8 0%, #2b2b40 100%);
  padding: 20px;
}

.teams-auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 32px 36px;
}

.teams-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.teams-auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #242424;
  margin-top: 10px;
}

.teams-auth-header p {
  font-size: 13px;
  color: var(--teams-text-secondary);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3b3a39;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 38px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--teams-purple);
  box-shadow: 0 0 0 1px var(--teams-purple);
}

.btn-primary-teams {
  width: 100%;
  height: 40px;
  background: var(--teams-purple);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary-teams:hover {
  background: var(--teams-purple-hover);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #8a8886;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e1dfdd;
}
.auth-divider span {
  padding: 0 10px;
}

.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  background: #ffffff;
  color: #242424;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-social:hover {
  background: #f7f7f7;
}

.btn-social.google svg {
  width: 18px;
  height: 18px;
}

.btn-social.facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}
.btn-social.facebook:hover {
  background: #166fe5;
}

.auth-card-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--teams-text-secondary);
}
.auth-card-footer a {
  color: var(--teams-purple);
  text-decoration: none;
  font-weight: 600;
}

/* Alert messages */
.alert-teams {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-danger {
  background: #fdf3f2;
  border: 1px solid #f9d8d6;
  color: #a80000;
}
.alert-success {
  background: #f1faf1;
  border: 1px solid #d4eed4;
  color: #107c10;
}

/* Thread Title Link & Detail Link */
.thread-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.thread-title-link:hover {
  color: var(--teams-purple);
  text-decoration: underline;
}
.thread-detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teams-purple);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}
.thread-detail-link:hover {
  background: #e8ebfa;
}

/* Thread Content 3-Line Clamp & Expand */
.thread-body-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thread-body-clamped.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.btn-toggle-thread-content {
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  color: var(--teams-purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-toggle-thread-content:hover {
  text-decoration: underline;
}

/* Collapsed Comments Bar */
.thread-comments-collapse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-toggle-comments {
  background: #f3f2f1;
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  padding: 5px 12px;
  color: #323130;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-toggle-comments:hover {
  background: #e8ebfa;
  color: var(--teams-purple);
  border-color: #c7cbe8;
}
.thread-comments-hidden {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* @Mention Autocomplete & Pill Styling */
.teams-mention,
.teams-mention-link {
  background-color: #edebe9;
  color: #464eb8;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.4;
  font-size: 0.95em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, text-decoration 0.15s ease;
}
.teams-mention:hover,
.teams-mention-link:hover {
  background-color: #e1dfdd;
  color: #3b429f;
  text-decoration: underline;
}

/* Teams Profile Card Popover (Hover Card) */
.teams-profile-card {
  position: absolute;
  z-index: 10050;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e1dfdd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 4px rgba(0, 0, 0, 0.08);
  padding: 20px 20px 16px 20px;
  box-sizing: border-box;
  font-family: var(--font-family);
  color: #242424;
  display: none;
  animation: teamsCardFadeIn 0.15s ease;
}

@keyframes teamsCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teams-pc-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.teams-pc-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.teams-pc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f78c1e 0%, #e66c00 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.teams-pc-presence {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: #237b4b;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teams-pc-presence svg {
  width: 10px;
  height: 10px;
  fill: #ffffff;
}

.teams-pc-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teams-pc-fullname {
  font-size: 18px;
  font-weight: 700;
  color: #242424;
  line-height: 1.25;
  word-break: break-word;
}

.teams-pc-username {
  font-size: 12px;
  color: #616161;
  margin-top: 3px;
}

.teams-pc-role {
  font-size: 12px;
  color: #616161;
  margin-top: 2px;
}

/* Quick Action Buttons Row */
.teams-pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.teams-pc-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #424242;
  transition: background-color 0.1s ease, border-color 0.1s ease;
  padding: 0;
}

.teams-pc-btn:hover {
  background-color: #f0f0f0;
}

.teams-pc-btn.active {
  border: 1.5px solid #242424;
  border-radius: 4px;
}

.teams-pc-btn svg {
  width: 18px;
  height: 18px;
}

/* Status Box */
.teams-pc-status-box {
  margin-top: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #242424;
  background-color: #ffffff;
}

.teams-pc-status-dot {
  width: 16px;
  height: 16px;
  background-color: #237b4b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.teams-pc-status-dot svg {
  width: 10px;
  height: 10px;
  fill: #ffffff;
}

/* Contact Section */
.teams-pc-contact-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.teams-pc-contact-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 12px;
  cursor: pointer;
}

.teams-pc-contact-header svg {
  width: 14px;
  height: 14px;
  fill: #616161;
}

.teams-pc-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: #616161;
  word-break: break-all;
}

.teams-pc-contact-row svg {
  width: 16px;
  height: 16px;
  fill: #616161;
  flex-shrink: 0;
}

.teams-pc-contact-row a {
  color: #464eb8;
  text-decoration: none;
}

.teams-pc-contact-row a:hover {
  text-decoration: underline;
}

.teams-pc-show-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #464eb8;
  text-decoration: none;
  cursor: pointer;
}

.teams-pc-show-more:hover {
  text-decoration: underline;
}

.teams-mention-dropdown {
  position: absolute;
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #d2d0ce;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  width: 280px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
  display: none;
}
.teams-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.teams-mention-item:hover,
.teams-mention-item.active {
  background-color: #f3f2f1;
}
.teams-mention-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #464eb8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}
.teams-mention-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.teams-mention-name {
  font-weight: 600;
  color: #242424;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teams-mention-username {
  font-size: 11px;
  color: #616161;
}
.teams-mention-badge {
  font-size: 10px;
  background: #e8ebfa;
  color: #464eb8;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}
.teams-mention-badge.badge-owner {
  background: #fdf3d6;
  color: #8f6200;
}



