/* Helpdesk Ticketing System Premium Styling */
:root {
  --bg-main: #0b0f19;
  --bg-card: #151d30;
  --bg-card-hover: #1c263e;
  --border-color: #24304f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  /* Status Colors */
  --status-new-bg: rgba(147, 51, 234, 0.15);
  --status-new-text: #c084fc;
  --status-new-border: rgba(147, 51, 234, 0.3);
  
  --status-progress-bg: rgba(217, 119, 6, 0.15);
  --status-progress-text: #fbbf24;
  --status-progress-border: rgba(217, 119, 6, 0.3);
  
  --status-waiting-bg: rgba(59, 130, 246, 0.15);
  --status-waiting-text: #60a5fa;
  --status-waiting-border: rgba(59, 130, 246, 0.3);
  
  --status-done-bg: rgba(16, 185, 129, 0.15);
  --status-done-text: #34d399;
  --status-done-border: rgba(16, 185, 129, 0.3);

  /* Priority Colors */
  --prio-low-bg: #1e293b;
  --prio-low-text: #94a3b8;
  --prio-medium-bg: #1e3a8a;
  --prio-medium-text: #93c5fd;
  --prio-high-bg: #881337;
  --prio-high-text: #fca5a5;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: rgba(21, 29, 48, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

.role-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.role-tag.admin {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.role-tag.user {
  background-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.25);
}

/* Dashboard Layout */
.dashboard-content {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.filters-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Ticket Board Grid */
.ticket-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.board-column {
  background-color: rgba(21, 29, 48, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 4px;
}

.column-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background-color: var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

.column-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 4px;
}

/* Ticket Cards */
.ticket-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: var(--transition);
}

.ticket-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--bg-card-hover);
}

.ticket-card.prio-high::before { background-color: #ef4444; }
.ticket-card.prio-medium::before { background-color: #3b82f6; }
.ticket-card.prio-low::before { background-color: #64748b; }

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ticket-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

.ticket-card-meta {
  display: none;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}
.ticket-card.expanded .ticket-card-meta {
  display: flex;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-status-new {
  background-color: var(--status-new-bg);
  color: var(--status-new-text);
  border: 1px solid var(--status-new-border);
}
.badge-status-in_progress {
  background-color: var(--status-progress-bg);
  color: var(--status-progress-text);
  border: 1px solid var(--status-progress-border);
}
.badge-status-waiting {
  background-color: var(--status-waiting-bg);
  color: var(--status-waiting-text);
  border: 1px solid var(--status-waiting-border);
}
.badge-status-done {
  background-color: var(--status-done-bg);
  color: var(--status-done-text);
  border: 1px solid var(--status-done-border);
}

.badge-prio-low { background-color: var(--prio-low-bg); color: var(--prio-low-text); }
.badge-prio-medium { background-color: var(--prio-medium-bg); color: var(--prio-medium-text); }
.badge-prio-high { background-color: var(--prio-high-bg); color: var(--prio-high-text); }

/* Table list view alternative */
.table-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.ticket-table th, .ticket-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}
.ticket-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.ticket-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}
.ticket-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

/* Modals & Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 550px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: var(--transition);
}
.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Detail view styling (ticket.php) */
.ticket-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .ticket-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-main {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.comments-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.comment-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-main);
}

.comment-body {
  font-size: 14px;
  white-space: pre-wrap;
}

/* DRAG & DROP classes */
.column-list.drag-over {
  background-color: rgba(99, 102, 241, 0.1);
  border: 2px dashed var(--primary);
  border-radius: 8px;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  z-index: 1100;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Card and Table Expanded Views - Premium Styles
   ========================================== */

/* Edit buttons */
.btn-card-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}
.btn-card-edit:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-card-edit svg {
  stroke: currentColor;
}

.btn-table-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background-color: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: var(--transition);
}
.btn-table-edit:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Action column spacing in table */
.action-col {
  text-align: center;
  width: 90px;
}

/* Kanban Ticket Card description expansion */
.ticket-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.ticket-card.expanded .ticket-card-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  color: var(--text-main);
}

/* Comments section inside ticket-card */
.ticket-card-comments {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 0;
}

.ticket-card.expanded .ticket-card-comments {
  max-height: 250px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 10px;
  overflow-y: auto;
}

/* Table Row interactive hover/select */
.ticket-row {
  transition: var(--transition);
}
.ticket-row.expanded {
  background-color: rgba(255, 255, 255, 0.02);
}
.ticket-row.expanded td {
  border-bottom: none !important;
}

/* Detail Row (accordion) */
.detail-row td {
  padding: 0 20px 20px 20px !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: rgba(11, 15, 25, 0.2);
}

.table-detail-expanded {
  background-color: rgba(21, 29, 48, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: -6px;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-detail-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .table-detail-inner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.table-detail-desc, .table-detail-comments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.detail-desc-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 12px;
  white-space: pre-wrap;
}

/* General mini-comments styling */
.comments-preview-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.no-comments-text {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

.mini-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.mini-comment-item {
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
}

.mini-comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}

.mini-comment-author {
  font-weight: 700;
  color: var(--primary);
}

.mini-comment-date {
  color: var(--text-muted);
  font-size: 10px;
}

.mini-comment-content {
  color: var(--text-main);
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Custom scrollbar for mini lists */
.mini-comments-list::-webkit-scrollbar,
.ticket-card-comments::-webkit-scrollbar {
  width: 4px;
}
.mini-comments-list::-webkit-scrollbar-track,
.ticket-card-comments::-webkit-scrollbar-track {
  background: transparent;
}
.mini-comments-list::-webkit-scrollbar-thumb,
.ticket-card-comments::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.mini-comments-list::-webkit-scrollbar-thumb:hover,
.ticket-card-comments::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   Kanban Swimlanes (Horizontal Rows)
   ========================================== */
.swimlanes-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.swimlane {
  background-color: rgba(21, 29, 48, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swimlane-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.swimlane-icon {
  font-size: 20px;
  line-height: 1;
}

.swimlane-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

/* Reset default height of board columns for swimlanes */
.swimlane .ticket-board {
  gap: 16px;
}
.swimlane .board-column {
  min-height: auto;
  padding: 12px;
}
.swimlane .column-list {
  min-height: 100px;
}

/* Recent Activity Highlights & Badges */
.ticket-card-activity {
  font-size: 12px;
  background-color: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  color: var(--text-main);
  transition: var(--transition);
}
.ticket-card.expanded .ticket-card-activity {
  display: flex;
}
.ticket-card:hover .ticket-card-activity {
  background-color: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}

/* User Avatar & Header Row */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}
.activity-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-avatar-initial {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.activity-user {
  font-weight: 700;
  color: #a5b4fc;
}
.activity-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* Content & Details Formatting */
.activity-content {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.activity-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.comment-quote {
  font-style: italic;
  color: #cbd5e1;
}
.status-change-flow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mini-status {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.arrow-separator {
  color: var(--text-muted);
  font-size: 10px;
}
.creation-text {
  color: var(--text-muted);
}

/* Table Specific Layout */
.table-activity-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 200px;
}
.activity-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.activity-user-badge.small {
  display: inline-flex;
  gap: 4px;
  font-size: 11px;
}
.activity-user-badge.small .user-avatar-initial {
  width: 13px;
  height: 13px;
  font-size: 8px;
}
.table-activity-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.activity-detail-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.activity-detail-preview .mini-status {
  font-size: 8px;
  padding: 0px 4px;
}
.activity-detail-preview .comment-quote {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: inline-block;
}


.badge-recent-activity {
  background-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  width: fit-content;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-recent-activity::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 6px #818cf8;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
