/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ============================================
   AlignUI Design System — CSS Foundation
   ============================================ */

/* --- Labels --- */
.align-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
  margin-bottom: 0.375rem;
}

/* --- Text / Number / Date / Email Inputs --- */
.align-input {
  display: block;
  width: 100%;
  height: 2.5rem; /* 40px */
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0A0D14;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.align-input::placeholder {
  color: #9CA3AF;
}

.align-input:hover {
  background-color: #F9FAFB;
  box-shadow: inset 0 0 0 1px transparent, 0px 1px 2px 0px rgba(16,24,40,0.05);
}

.align-input:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #F9FAFB;
}

/* Error variant */
.align-input-error {
  box-shadow: inset 0 0 0 1px #DC2626, 0px 1px 2px 0px rgba(16,24,40,0.05) !important;
}

.align-input-error:focus {
  box-shadow: 0 0 0 2px #DC2626 !important;
}

/* --- Textarea --- */
.align-textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #0A0D14;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  resize: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.align-textarea::placeholder {
  color: #9CA3AF;
}

.align-textarea:hover {
  background-color: #F9FAFB;
  box-shadow: inset 0 0 0 1px transparent, 0px 1px 2px 0px rgba(16,24,40,0.05);
}

.align-textarea:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #F9FAFB;
}

/* --- Native Select Fallback --- */
.align-select-native {
  display: block;
  width: 100%;
  height: 2.5rem;
  padding-left: 0.75rem;
  padding-right: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0A0D14;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.align-select-native:hover {
  background-color: #F9FAFB;
  box-shadow: inset 0 0 0 1px transparent, 0px 1px 2px 0px rgba(16,24,40,0.05);
}

.align-select-native:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-select-native:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #F9FAFB;
}

/* --- Custom Select: Trigger Button --- */
.align-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0A0D14;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  text-align: left;
}

.align-select-trigger:hover {
  background-color: #F9FAFB;
  box-shadow: inset 0 0 0 1px transparent, 0px 1px 2px 0px rgba(16,24,40,0.05);
}

.align-select-trigger:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-select-trigger .chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #6B7280;
  transition: transform 0.2s ease;
}

.align-select-trigger.open .chevron {
  transform: rotate(180deg);
}

.align-select-trigger .placeholder {
  color: #9CA3AF;
}

/* --- Custom Select: Dropdown Panel --- */
.align-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #fff;
  border-radius: 1rem; /* rounded-2xl = 16px */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  max-height: 196px;
  overflow-y: auto;
  padding: 0.25rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.align-select-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hidden scrollbar for dropdown */
.align-select-dropdown::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.align-select-dropdown {
  scrollbar-width: none;
}

/* --- Custom Select: Option Items --- */
.align-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #374151;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.1s ease;
}

.align-select-option:hover,
.align-select-option.focused {
  background-color: #F3F4F6;
}

.align-select-option.selected {
  color: #0A0D14;
  font-weight: 500;
}

.align-select-option .checkmark {
  width: 1rem;
  height: 1rem;
  color: #0A0D14;
  opacity: 0;
  flex-shrink: 0;
}

.align-select-option.selected .checkmark {
  opacity: 1;
}

/* --- Error Text --- */
.align-error-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #DC2626;
}

/* --- Primary Button --- */
.align-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #fff;
  background-color: #3b82f6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.align-btn-primary:hover {
  background-color: #2563eb;
}

.align-btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
}

.align-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Secondary Button --- */
.align-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #374151;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.align-btn-secondary:hover {
  background-color: #F9FAFB;
}

.align-btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Drawer Overlay --- */
.align-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- Drawer Panel --- */
.align-drawer-panel {
  background-color: #fff;
  border-left: 1px solid #E2E4E9;
  height: 100%;
  position: relative;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.align-drawer-panel.open {
  transform: translateX(0);
}

/* --- Drawer Header --- */
.align-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem; /* p-5 */
  gap: 0.75rem;
}

/* --- Drawer Body --- */
.align-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Hidden scrollbar for drawer body */
.align-drawer-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.align-drawer-body {
  scrollbar-width: none;
}

/* --- Drawer Footer --- */
.align-drawer-footer {
  display: flex;
  padding: 1.25rem;
  gap: 1rem;
}

/* --- Close Button (Ghost) --- */
.align-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: #6B7280;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.align-close-btn:hover {
  background-color: #F3F4F6;
  color: #374151;
}

.align-close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-close-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- File Input --- */
.align-file-input {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  color: #6B7280;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.align-file-input::file-selector-button {
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-right: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: #F9FAFB;
  border: none;
  border-right: 1px solid #E2E4E9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.align-file-input::file-selector-button:hover {
  background-color: #F3F4F6;
}

.align-file-input:focus {
  box-shadow: 0 0 0 2px #3B82F6;
}

/* --- Radio & Checkbox --- */
.align-radio {
  accent-color: #3b82f6;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.align-checkbox {
  accent-color: #3b82f6;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* --- Billing Type Card Selector --- */
.billing-type-card input:checked + .billing-card-inner {
  border-color: #2563EB;
  background-color: #EFF6FF;
}

.billing-type-card input:checked + .billing-card-inner .billing-card-icon {
  color: #2563EB;
}

/* ============================================
   Custom Datepicker (AlignUI)
   ============================================ */

/* --- Datepicker Trigger (mirrors .align-select-trigger) --- */
.align-datepicker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0A0D14;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2E4E9, 0px 1px 2px 0px rgba(16,24,40,0.05);
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  text-align: left;
}

.align-datepicker-trigger:hover {
  background-color: #F9FAFB;
  box-shadow: inset 0 0 0 1px transparent, 0px 1px 2px 0px rgba(16,24,40,0.05);
}

.align-datepicker-trigger:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px #3B82F6;
}

.align-datepicker-trigger .calendar-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #6B7280;
}

.align-datepicker-trigger .placeholder {
  color: #9CA3AF;
}

/* --- Datepicker Dropdown Panel --- */
.align-datepicker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  padding: 0.75rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-width: 280px;
}

.align-datepicker-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Datepicker Header --- */
.align-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  background-color: #F9FAFB;
  border-radius: 0.5rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.align-datepicker-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A0D14;
}

.align-datepicker-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: #6B7280;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.align-datepicker-nav:hover {
  background-color: #E5E7EB;
  color: #374151;
}

/* --- Day Labels Row --- */
.align-datepicker-day-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.25rem;
}

.align-datepicker-day-labels span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  padding: 0.25rem 0;
}

/* --- Day Grid --- */
.align-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* --- Day Cell --- */
.align-datepicker-day {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
  margin: 0 auto;
}

.align-datepicker-day:hover:not(.disabled):not(.selected) {
  background-color: #F3F4F6;
}

.align-datepicker-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1px #3b82f6;
  color: #3b82f6;
  font-weight: 600;
}

.align-datepicker-day.selected {
  background-color: #3b82f6;
  color: #fff;
  font-weight: 600;
}

.align-datepicker-day.disabled {
  color: #D1D5DB;
  cursor: not-allowed;
}

.align-datepicker-day.empty {
  cursor: default;
}

/* ============================================
   Message Links
   ============================================ */
.msg-link {
  color: #3B82F6;
  text-decoration: none;
}

.msg-link:hover {
  text-decoration: underline;
}

/* Links inside own messages (blue bubble) */
.bg-blue-500 .msg-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   Inline Code
   ============================================ */
.inline-code {
  background-color: #F3F4F6;
  color: #1F2937;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125em;
}

/* Inline code inside own messages (blue bubble) */
.bg-blue-500 .inline-code {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ============================================
   Code Blocks (triple backtick)
   ============================================ */
.code-block {
  display: block;
  background-color: #1E293B;
  color: #E2E8F0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  max-height: 300px;
  overflow: auto;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  white-space: pre;
  display: block;
}

.code-block-lang {
  display: block;
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Code blocks in own messages (blue bubble) */
.bg-blue-500 .code-block {
  background-color: rgba(0, 0, 0, 0.3);
  color: #E2E8F0;
}

/* ============================================
   Blockquotes
   ============================================ */
.msg-blockquote {
  display: block;
  border-left: 3px solid #3B82F6;
  padding-left: 0.75rem;
  margin: 0.25rem 0;
  color: #6B7280;
}

/* Blockquotes in own messages (blue bubble) */
.bg-blue-500 .msg-blockquote {
  border-left-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Bullet Lists
   ============================================ */
.msg-list {
  display: block;
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}

.msg-list-item {
  display: list-item;
  list-style-type: disc;
}

/* Bullet lists in own messages (blue bubble) */
.bg-blue-500 .msg-list-item {
  color: inherit;
}

/* ============================================
   @Mention Pills
   ============================================ */
.mention-pill {
  display: inline;
  background-color: #EFF6FF;
  color: #1D4ED8;
  border-radius: 0.25rem;
  padding: 0.0625rem 0.25rem;
  font-weight: 500;
  font-size: inherit;
  white-space: nowrap;
}

/* Mention pills inside own messages (blue bubble) */
.bg-blue-500 .mention-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ============================================
   Project & Task Reference Pills
   ============================================ */
.reference-pill {
  display: inline;
  border-radius: 0.25rem;
  padding: 0.0625rem 0.25rem;
  font-weight: 500;
  font-size: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.reference-project {
  background-color: #F3E8FF;
  color: #7C3AED;
}

.reference-task {
  background-color: #F0FDF4;
  color: #15803D;
}

/* Reference pills inside own messages (blue bubble) */
.bg-blue-500 .reference-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Reference autocomplete tab styles */
.ref-tab-active {
  color: #3B82F6;
  border-bottom: 2px solid #3B82F6;
}

/* ============================================
   Message Reactions
   ============================================ */
.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  background-color: #F9FAFB;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.25rem;
  transition: background-color 0.15s, border-color 0.15s;
}

.reaction-pill:hover {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
}

.reaction-pill-active {
  background-color: #EFF6FF;
  border-color: #3B82F6;
}

.reaction-pill-active:hover {
  background-color: #DBEAFE;
}

/* Emoji picker button */
.emoji-picker-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.125rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s;
  border: none;
  background: none;
}

.emoji-picker-btn:hover {
  background-color: #F3F4F6;
}

/* --- Unread Separator --- */
.unread-separator {
  transition: opacity 0.5s ease-out;
}
.unread-separator.fading {
  opacity: 0;
}

/* Channel description */
.channel-description-text {
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.channel-description-text.channel-description-expanded {
  white-space: normal;
  max-width: none;
  overflow: visible;
}
#channel-description-container:hover > button.transition-opacity {
  opacity: 1 !important;
}

/* DM Read Receipt Checkmarks */
.read-receipt-check {
  font-size: 10px;
  letter-spacing: -2px;
}

/* Search Highlight Animation */
.search-highlight {
  animation: searchHighlightFade 3s ease-out;
}
@keyframes searchHighlightFade {
  0% { background-color: #FEF9C3; } /* yellow-100 */
  70% { background-color: #FEF9C3; }
  100% { background-color: transparent; }
}

/* Search results line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Audio Player
   ============================================ */
.audio-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  min-width: 220px;
  max-width: 300px;
}
.audio-player-own {
  background: rgba(255, 255, 255, 0.15);
}
.audio-player-other {
  background: #f3f4f6;
}
.audio-play-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
.audio-player-own .audio-play-btn {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}
.audio-player-own .audio-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.audio-player-other .audio-play-btn {
  color: #3B82F6;
  background: #dbeafe;
}
.audio-player-other .audio-play-btn:hover {
  background: #bfdbfe;
}
.audio-progress-wrapper {
  flex: 1;
  height: 4px;
  background: rgba(156, 163, 175, 0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  min-width: 80px;
}
.audio-player-own .audio-progress-wrapper {
  background: rgba(255, 255, 255, 0.25);
}
.audio-progress-bar {
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.audio-player-own .audio-progress-bar {
  background: white;
}
.audio-player-other .audio-progress-bar {
  background: #3B82F6;
}
.audio-duration {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.audio-player-own .audio-duration {
  color: rgba(255, 255, 255, 0.7);
}
.audio-player-other .audio-duration {
  color: #6b7280;
}
.audio-speed-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background-color 0.15s;
}
.audio-player-own .audio-speed-btn {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}
.audio-player-own .audio-speed-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.audio-player-other .audio-speed-btn {
  color: #6b7280;
  background: #e5e7eb;
}
.audio-player-other .audio-speed-btn:hover {
  background: #d1d5db;
}

/* Audio Recording Indicator */
.audio-recording-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: recordingPulse 1.2s ease-in-out infinite;
}
@keyframes recordingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Recording waveform bars */
.recording-waveform-bar {
  display: inline-block;
  width: 3px;
  border-radius: 1.5px;
  background: #3B82F6;
  transition: height 0.1s ease;
}

