/*
 * Quackr - Slack-like application styles
 */

/* Sidebar scrollbar */
.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Main area scrollbar */
.messages-scroll::-webkit-scrollbar {
  width: 8px;
}
.messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.messages-scroll::-webkit-scrollbar-thumb {
  background: #C1C1C1;
  border-radius: 4px;
}
.messages-scroll::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

/* Compose box focus state */
.compose-box {
  border: 1px solid #868686;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}
.compose-box:focus-within {
  border-color: #1264A3;
  box-shadow: 0 0 0 1px #1264A3;
}

/* Compose textarea */
.compose-textarea {
  outline: none;
  border: none;
  resize: none;
  background: transparent;
}
.compose-textarea::placeholder {
  color: #868686;
}

/* Sidebar section toggle */
.sidebar-section summary {
  list-style: none;
  cursor: pointer;
}
.sidebar-section summary::-webkit-details-marker {
  display: none;
}
.sidebar-section summary .section-arrow {
  transition: transform 0.15s ease;
}
.sidebar-section[open] summary .section-arrow {
  transform: rotate(0deg);
}
.sidebar-section:not([open]) summary .section-arrow {
  transform: rotate(-90deg);
}

/* Message hover actions */
.message-row .message-actions {
  opacity: 0;
  transition: opacity 0.1s ease;
}
.message-row:hover .message-actions {
  opacity: 1;
}

/* Slack-style prose overrides for light theme */
.slack-message-body p {
  margin: 0;
}
.slack-message-body pre {
  background: #F8F8F8;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 4px 0;
  overflow-x: auto;
}
.slack-message-body code {
  background: #F0F0F0;
  border: 1px solid #E1E1E1;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.85em;
  color: #E01E5A;
}
.slack-message-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.slack-message-body blockquote {
  border-left: 4px solid #DDDDDD;
  padding-left: 12px;
  margin: 4px 0;
  color: #616061;
}
.slack-message-body a {
  color: #1264A3;
  text-decoration: none;
}
.slack-message-body a:hover {
  text-decoration: underline;
}
.slack-message-body ul, .slack-message-body ol {
  margin: 2px 0;
  padding-left: 24px;
}

/* Channel header divider */
.channel-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* Tabs styling */
.channel-tab {
  position: relative;
}
.channel-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1264A3;
}
