html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #eef3f8 0, #f3f2ef 40%, #e9ecef 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #212529;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.18rem #0a66c2;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Pinkedinn custom styles */

.top-nav {
  background-color: #ffffff;
  border-bottom: 1px solid #dde2eb;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.top-nav .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.top-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #0a66c2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.top-nav-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a66c2;
  line-height: 1.1;
}

.top-nav-brand-sub {
  font-size: 0.65rem;
  color: #6c757d;
  letter-spacing: 0.02em;
}

.top-nav-search input {
  border-radius: 4px;
  background-color: #eef3f8;
  border: none;
  font-size: 0.85rem;
  min-width: 420px;
  max-width: 520px;
  height: 40px;
  line-height: 40px;
}

.top-nav-search .input-group-text {
  border: none;
  background-color: #eef3f8;
  height: 40px;
  display: flex;
  align-items: center;
}

.search-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dde2eb;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  z-index: 2000;
  overflow: hidden;
}

.search-dropdown-item {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #212529;
}

.search-dropdown-item:hover {
  background: #f3f6fb;
}

.search-dropdown-sub {
  color: #6c757d;
  font-size: 0.8rem;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.8rem;
  margin-right: 32px;
}

.top-nav-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #666;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.top-nav-menu-item i {
  font-size: 1.35rem;
}

.top-nav-menu-item span {
  margin-top: 2px;
}

.top-nav-menu-item.active {
  color: #191919;
  border-color: #191919;
}

.top-nav-menu-item:hover {
  color: #191919;
}

.top-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
}

.top-nav-icon:hover {
  background-color: rgba(0,0,0,0.04);
  color: #212529;
}

.top-nav-icon i {
  font-size: 1.25rem;
}

.top-nav-badge {
  position: absolute;
  top: 2px;
  right: -6px;
  font-size: 0.65rem;
}

.app-shell {
  max-width: 1600px;
  padding-bottom: 32px;
  margin-top: 8px;
}

/* Auth (login) page */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #dde2eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.auth-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a66c2, #004182);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.auth-title {
  font-weight: 600;
}

.auth-subtitle {
  font-size: 0.9rem;
}

/* Navigation */
.side-card .nav-link {
  border-radius: 8px;
  color: #343a40;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.side-card .nav-link i {
  font-size: 1.1rem;
}

.side-card .nav-link:hover {
  background-color: rgba(0,0,0,0.04);
}

.side-card .nav-link.disabled {
  cursor: default;
}

.side-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.profile-card {
  padding: 14px 14px 6px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.profile-card-header {
  background: linear-gradient(135deg, #cfd9ff, #e5f2ff);
  height: 54px;
  border-radius: 10px 10px 0 0;
  margin: -12px -12px 0;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: #dee2e6;
  margin-top: -36px;
}

.profile-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-title {
  font-size: 0.8rem;
  color: #6c757d;
}

.profile-meta {
  font-size: 0.75rem;
  color: #6c757d;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
}

.profile-stat span:first-child {
  color: #6c757d;
}

.profile-stat span:last-child {
  color: #0a66c2;
  font-weight: 600;
}

/* (dedup) side-card nav-link styles above */

.card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.card.shadow-sm {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04) !important;
}

/* Feed typography polish */
.feed-compose-card .card-body {
  padding: 12px 14px;
}

.feed-compose-card .card-footer {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.post-content {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #191919;
  overflow-x: hidden;
  max-width: 100%;
  word-break: break-word;
}

.post-content img,
.post-media-item {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  cursor: zoom-in;
  transition: opacity 120ms ease;
}

.post-content img:hover,
.post-media-item:hover {
  opacity: 0.92;
}

.post-media-grid,
.post-inline-image-grid {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.post-media-grid.cols-1,
.post-inline-image-grid.cols-1 {
  grid-template-columns: 1fr;
}

.post-media-grid.cols-2,
.post-inline-image-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-media-grid.cols-3,
.post-inline-image-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-media-grid.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-media-grid.cols-2 .post-media-item,
.post-media-grid.cols-3 .post-media-item,
.post-media-grid.cols-4 .post-media-item,
.post-inline-image-grid.cols-2 .post-zoomable,
.post-inline-image-grid.cols-3 .post-zoomable {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0;
}

.post-media-grid.cols-1 .post-media-item {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  aspect-ratio: auto;
}

.post-inline-image-grid .post-zoomable {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

#imageLightboxImg {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
}

.card.shadow-sm.mb-3 > .card-body {
  overflow-x: hidden;
  max-width: 100%;
}

.post-reaction-buttons .btn-like.liked {
  color: #0a66c2;
  font-weight: 600;
  background-color: rgba(10, 102, 194, 0.08);
}

.post-reaction-buttons .btn-like.liked:hover {
  background-color: rgba(10, 102, 194, 0.14);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-bubble {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 8px 12px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-left: 4px;
}

.comment-actions button {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6c757d;
}

.comment-actions button:hover {
  text-decoration: underline;
  color: #495057;
}

.btn-comment-like.liked {
  color: #0a66c2 !important;
}

.btn-show-comment-likes {
  color: #0a66c2 !important;
}

.comment-time {
  font-size: 0.72rem;
  color: #6c757d;
}

.comment-replies {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 2px solid #e8ebef;
}

.comment-like-count {
  margin-left: 2px;
}

.post-reaction-buttons button:active {
  transform: translateY(0.5px);
}

.like-count,
.comment-link {
  text-decoration: none;
}

.like-count:hover,
.comment-link:hover {
  text-decoration: underline;
}

.feed-compose-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.feed-compose-card .avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #dee2e6;
  flex-shrink: 0;
}

.feed-compose-card .avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-compose-trigger {
  border-radius: 999px;
  background-color: #f3f2ef;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #6c757d;
  padding: 10px 14px;
}

.feed-compose-trigger:hover {
  background-color: #e9e5df;
}

.feed-compose-actions span {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
}

.feed-compose-actions span:hover {
  background-color: rgba(0,0,0,0.04);
}

.feed-compose-actions span i {
  font-size: 1rem;
}

.feed-compose-actions span:nth-child(1) {
  color: #5f9b41;
}

.feed-compose-actions span:nth-child(2) {
  color: #0a66c2;
}

.feed-compose-actions span:nth-child(3) {
  color: #e06847;
}

.modal-post textarea {
  resize: none;
  font-size: 1rem;
}

.modal-post textarea:focus {
  box-shadow: none;
}

#quill-editor {
  border: none;
  font-size: 0.95rem;
}

#quill-editor .ql-editor {
  min-height: 100px;
  padding: 8px 0;
}

#quill-editor .ql-editor.ql-blank::before {
  font-style: normal;
  color: #adb5bd;
}

.ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
  padding: 4px 0 !important;
}

.ql-container.ql-snow {
  border: none !important;
}

.post-content a {
  color: #0a66c2;
  text-decoration: underline;
}

.post-content a.mention,
.post-content a[href*="/Profile/View/"] {
  color: #0a66c2;
  font-weight: 600;
  text-decoration: none;
}

.post-content a.mention:hover,
.post-content a[href*="/Profile/View/"]:hover {
  text-decoration: underline;
}

.mention-dropdown {
  position: absolute;
  z-index: 1060;
  left: 12px;
  right: 12px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mention-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f5;
}

.mention-dropdown-item:hover {
  background: #f3f6fb;
}

.mention-dropdown-item:last-child {
  border-bottom: none;
}

.post-file-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  font-size: 0.82rem;
}

.post-media-video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}

.post-media-grid.cols-2 .post-media-video,
.post-media-grid.cols-3 .post-media-video,
.post-media-grid.cols-4 .post-media-video {
  aspect-ratio: auto;
  max-height: 280px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 3px solid #0a66c2;
  padding-left: 10px;
  color: #6c757d;
  margin: 8px 0;
}

.post-content p {
  margin-bottom: 0.3rem;
}

/* Post cards */
.post-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.post-user {
  display: flex;
  gap: 10px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dee2e6;
  flex-shrink: 0;
}

.post-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.1;
  color: #191919;
}

.post-name:hover {
  color: #0a66c2;
  text-decoration: underline !important;
}

.post-meta {
  font-size: 0.75rem;
  color: #6c757d;
}

.post-actions {
  color: #6c757d;
}

.post-actions .btn {
  border: none;
}

.post-reactions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #6c757d;
  border-top: 1px solid #f1f3f5;
  padding-top: 10px;
  margin-top: 10px;
}

.post-reaction-buttons {
  display: flex;
  gap: 6px;
  border-top: 1px solid #f1f3f5;
  margin-top: 10px;
  padding-top: 8px;
}

.post-reaction-buttons button {
  flex: 1;
  border: none;
  background: transparent;
  color: #495057;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.post-reaction-buttons button:hover {
  background-color: rgba(0,0,0,0.04);
}

/* Online users */
.online-user-item {
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}

.online-user-item:hover {
  background: #f3f6fb;
}

.online-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.online-user-avatar-placeholder {
  background: #dee2e6;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28a745;
  border: 2px solid #fff;
}

.online-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.online-user-detail {
  font-size: 0.72rem;
  color: #6c757d;
}

/* Chat page (WhatsApp style) */
.chat-container {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: calc(100vh - 120px);
  min-height: 500px;
}

.chat-sidebar {
  width: 340px;
  min-width: 300px;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
  background: #f0f2f5;
}

.chat-sidebar-search {
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
}

.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
}

.chat-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  gap: 8px;
}

.chat-contact:hover {
  background: #f0f2f5;
}

.chat-contact.active {
  background: #e7f0fe;
}

.chat-contact-unread {
  background: #f0faf0;
}

.chat-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-contact-avatar-ph {
  background: #dee2e6;
}

.chat-contact-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-contact-last {
  font-size: 0.78rem;
  color: #6c757d;
}

.chat-contact-time {
  font-size: 0.7rem;
  color: #6c757d;
}

.chat-contact-badge {
  font-size: 0.65rem;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #efeae2;
}

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
}

.chat-main-header {
  padding: 12px 16px;
  background: #f0f2f5;
  border-bottom: 1px solid #e0e0e0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble-row {
  display: flex;
  max-width: 70%;
}

.chat-bubble-row.mine {
  align-self: flex-end;
}

.chat-bubble-row.theirs {
  align-self: flex-start;
}

.chat-bubble {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  position: relative;
  word-break: break-word;
}

.chat-bubble-row.mine .chat-bubble {
  background: #d9fdd3;
  border-radius: 10px 10px 0 10px;
}

.chat-bubble-row.theirs .chat-bubble {
  background: #ffffff;
  border-radius: 10px 10px 10px 0;
}

.chat-bubble-time {
  font-size: 0.65rem;
  color: #6c757d;
  margin-left: 8px;
  white-space: nowrap;
}

.chat-tick {
  font-size: 0.75rem;
  margin-left: 2px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #f0f2f5;
  border-top: 1px solid #e0e0e0;
}

.chat-input-area .form-control {
  border-radius: 20px;
}

.chat-input-area .btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Messenger panel - WhatsApp style */
.messenger-panel {
  position: fixed;
  bottom: 0;
  right: 16px;
  width: 380px;
  z-index: 1050;
  font-size: 0.9rem;
}

.messenger-panel-header {
  background: #075e54;
  color: #ffffff;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.messenger-panel-header .badge {
  font-size: 0.7rem;
}

.messenger-panel-body {
  background-color: #ffffff;
  border: 1px solid #d1d7db;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.messenger-panel-body.open {
  max-height: 480px;
}

.messenger-panel-search {
  padding: 10px 12px;
  background: #f0f2f5;
  border-bottom: 1px solid #e9edef;
}

.messenger-panel-search input {
  border-radius: 20px;
  border: none;
  background: #ffffff;
  font-size: 0.85rem;
}

.messenger-list {
  max-height: 400px;
  overflow-y: auto;
}

.messenger-list-item {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
}

.messenger-list-item:hover {
  background-color: #f5f6f6;
}

.messenger-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #dfe5e7;
}

.messenger-list-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8696a0;
  font-weight: 600;
}

.messenger-list-meta {
  flex: 1;
  min-width: 0;
}

.messenger-list-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.messenger-list-preview {
  font-size: 0.8rem;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messenger-list-side {
  text-align: right;
  flex-shrink: 0;
}

.messenger-list-time {
  font-size: 0.72rem;
  color: #667781;
}

.messenger-list-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Popup chat windows */
.popup-chat-window {
  position: fixed;
  width: 360px;
  height: 480px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1060;
  background: #efeae2;
}

.popup-chat-header {
  background: #075e54;
  color: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.popup-chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #128c7e;
  flex-shrink: 0;
}

.popup-chat-header-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.popup-chat-header-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-chat-header-actions {
  display: flex;
  gap: 4px;
}

.popup-chat-header-actions .btn {
  color: #ffffff;
  opacity: 0.9;
  padding: 2px 6px;
}

.popup-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #efeae2 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d9d2c5' fill-opacity='0.25'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.popup-chat-bubble-row {
  display: flex;
  max-width: 82%;
}

.popup-chat-bubble-row.mine {
  align-self: flex-end;
}

.popup-chat-bubble-row.theirs {
  align-self: flex-start;
}

.popup-chat-bubble {
  padding: 6px 10px 4px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.popup-chat-bubble-row.mine .popup-chat-bubble {
  background: #d9fdd3;
  border-radius: 8px 8px 0 8px;
}

.popup-chat-bubble-row.theirs .popup-chat-bubble {
  background: #ffffff;
  border-radius: 8px 8px 8px 0;
}

.popup-chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
}

.popup-chat-bubble-time {
  font-size: 0.65rem;
  color: #667781;
}

.popup-chat-typing {
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #667781;
  font-style: italic;
  flex-shrink: 0;
}

.popup-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #f0f2f5;
  border-top: 1px solid #e9edef;
  flex-shrink: 0;
}

.popup-chat-input-area input {
  border-radius: 20px;
  border: none;
  font-size: 0.88rem;
  flex: 1;
}

.popup-chat-input-area .btn-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-chat-input-area .btn-send:hover {
  background: #128c7e;
}

.phonebook-dept-card {
  border: 1px solid #e8ebef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.phonebook-dept-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease;
}

.phonebook-dept-header:hover {
  background: #f3f6fb;
}

.phonebook-dept-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.phonebook-chevron {
  font-size: 0.8rem;
  color: #6c757d;
  transition: transform 120ms ease;
}

.phonebook-dept-list {
  border-top: 1px solid #e8ebef;
}

.phonebook-person {
  padding: 8px 10px 8px 46px;
  border-bottom: 1px solid #f1f3f5;
}

.phonebook-person:last-child {
  border-bottom: none;
}

.phonebook-person:hover {
  background: #f9fafb;
}

.phonebook-call-btn {
  padding: 2px 6px !important;
  font-size: 0.75rem;
}

.phonebook-copy {
  text-decoration: none;
}

/* Fikirler */
.fikir-card {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.fikir-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

.fikir-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.fikir-desc {
  font-size: 0.88rem;
  color: #495057;
  line-height: 1.4;
  white-space: pre-line;
}

/* Admin dashboard */
.admin-dashboard {
  margin-top: 8px;
}

.admin-stat-card {
  border-radius: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  background: rgba(10, 102, 194, 0.08);
  color: #0a66c2;
}

.admin-stat-value {
  font-size: 1.8rem;
  font-weight: 600;
}

.admin-stat-sub {
  font-size: 0.8rem;
  color: #6c757d;
}

.admin-stat-primary .admin-stat-icon { background: rgba(10, 102, 194, 0.10); color: #0a66c2; }
.admin-stat-success .admin-stat-icon { background: rgba(25, 135, 84, 0.10); color: #198754; }
.admin-stat-warning .admin-stat-icon { background: rgba(255, 193, 7, 0.15); color: #b08500; }
.admin-stat-secondary .admin-stat-icon { background: rgba(108, 117, 125, 0.12); color: #495057; }
.admin-stat-info .admin-stat-icon { background: rgba(13, 110, 253, 0.10); color: #0d6efd; }
.admin-stat-danger .admin-stat-icon { background: rgba(220, 53, 69, 0.10); color: #dc3545; }

.admin-spark {
  height: 26px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 2px;
}

.admin-spark-bar {
  width: 100%;
  max-width: 10px;
  flex: 1;
  border-radius: 6px;
  background: rgba(10, 102, 194, 0.18);
}

.admin-stat-success .admin-spark-bar { background: rgba(25, 135, 84, 0.18); }
.admin-stat-info .admin-spark-bar { background: rgba(13, 110, 253, 0.18); }
.admin-stat-secondary .admin-spark-bar { background: rgba(108, 117, 125, 0.18); }

/* Notifications */
.notif-item {
  padding: 14px 16px;
  border: none;
  transition: background 120ms ease;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-unread {
  background: #f0f7ff;
}

.notif-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a66c2;
  flex-shrink: 0;
  margin-top: 6px;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}