/* ============================================================
   EBMINI AI Tools Platform - Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

/* --- Top Navigation --- */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-brand { font-size: 16px; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { color: var(--gray-600); font-weight: 500; }
.nav-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover { background: var(--gray-200); text-decoration: none; }
.logout-btn { color: var(--danger); }

/* Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 13px;
  text-decoration: none;
}
.dropdown-content a:hover { background: var(--gray-50); text-decoration: none; }

/* --- Main Content --- */
.main-content {
  min-height: calc(100vh - 56px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
  gap: 4px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; color: var(--gray-700); font-size: 13px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.flex-grow { flex: 2; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
}
.checkbox-label:hover { background: var(--primary-light); }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

/* --- Alerts --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.badge-admin { background: #ede9fe; color: #7c3aed; }
.badge-user { background: var(--gray-100); color: var(--gray-600); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* --- Login Page --- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}
.login-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 400px;
  max-width: 90vw;
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-header h1 { font-size: 28px; color: var(--primary); margin-bottom: 4px; }
.login-header p { color: var(--gray-500); }
.login-form .form-group label { font-size: 14px; }
.login-form input {
  padding: 10px 14px;
  font-size: 15px;
}

/* --- Dashboard --- */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}
.dashboard-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.dashboard-left {
  width: 340px;
  min-width: 340px;
  flex-shrink: 0;
}
.dashboard-right {
  flex: 1;
  min-width: 0;
}
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 24px; margin-bottom: 4px; }
.dashboard-header p { color: var(--gray-500); }
.version-tag {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: var(--gray-400);
  opacity: 0.6;
  pointer-events: none;
  z-index: 10;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  display: block;
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--gray-800);
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.tool-icon { font-size: 40px; margin-bottom: 12px; }
.tool-card h3 { font-size: 18px; margin-bottom: 8px; }
.tool-card p { color: var(--gray-500); font-size: 13px; line-height: 1.5; }

/* --- Tool Groups (产品线分组) --- */
.tool-group { margin-bottom: 28px; }
.tool-group:last-child { margin-bottom: 0; }
.tool-group-header {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.coming-soon-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 10px;
}
.coming-soon-card {
  opacity: 0.45;
  pointer-events: none;
  border-style: dashed;
}

/* --- Dashboard Section --- */
.dashboard-section {
  margin-top: 0;
}
.dashboard-left .dashboard-section {
  margin-bottom: 24px;
}
.dashboard-section:last-child { margin-bottom: 0; }
.dashboard-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-section .section-header h2 { font-size: 18px; }
.section-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* --- Ranking List --- */
.ranking-list {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.ranking-item:last-child { border-bottom: none; }
.ranking-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ranking-item:nth-child(1) .ranking-rank { background: #fef3c7; color: #92400e; }
.ranking-item:nth-child(2) .ranking-rank { background: #e5e7eb; color: #4b5563; }
.ranking-item:nth-child(3) .ranking-rank { background: #fed7aa; color: #9a3412; }
.ranking-info { flex: 1; min-width: 0; }
.ranking-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.ranking-bar-track {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}
.ranking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 4px;
  transition: width 0.3s;
  min-width: 4px;
}
.ranking-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  font-size: 13px;
}
.ranking-tokens { font-weight: 700; color: var(--gray-800); }
.ranking-calls { color: var(--gray-400); font-size: 12px; }

/* Personal stats cards */
.personal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.personal-stat {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.personal-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.personal-stat-label {
  font-size: 13px;
  color: var(--gray-500);
}
@media (max-width: 600px) {
  .personal-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Error & Empty States --- */
.error-page, .empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 24px;
}
.error-card h1 { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--gray-400); font-size: 15px; }
.text-warning { color: var(--warning); }

/* --- Admin Pages --- */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.admin-page h1 { font-size: 22px; margin-bottom: 24px; }
.admin-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card h2 { font-size: 18px; margin-bottom: 16px; color: var(--gray-800); }
.admin-form { max-width: 100%; }
.table-container { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: var(--gray-50);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.admin-table tr:hover { background: var(--gray-50); }
.admin-table .row-disabled { opacity: 0.5; }
.action-cell { white-space: nowrap; }
.action-cell .btn { margin-right: 2px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 400px;
  max-width: 90vw;
}
.modal-lg { min-width: 600px; }
.modal-content h3 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

/* ============================================================
   Chat Application
   ============================================================ */
.chat-app {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  width: 260px;
  min-width: 260px;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-header h2 { font-size: 15px; margin-bottom: 10px; }
.conversation-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.conversation-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.conversation-item:hover { background: var(--gray-50); }
.conversation-item.active { background: var(--primary-light); border-color: var(--primary); }
.conv-title { font-size: 13px; font-weight: 500; word-break: break-all; }
.conv-meta { margin-top: 2px; }
.conv-meta small { color: var(--gray-400); }
.btn-delete-conv {
  position: absolute;
  right: 8px;
  top: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}
.conversation-item:hover .btn-delete-conv { opacity: 1; }

/* Reports sidebar */
.chat-reports {
  width: 240px;
  min-width: 240px;
  background: white;
  border-left: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.report-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.report-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  margin-bottom: 6px;
  font-size: 13px;
}
.report-item h4 { font-size: 13px; margin-bottom: 4px; }
.report-item small { color: var(--gray-400); }
.report-actions { display: flex; gap: 4px; margin-top: 6px; }

/* Main chat */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--gray-50);
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  gap: 12px;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-header-left h2 { font-size: 16px; white-space: nowrap; }
.current-conv-title { color: var(--gray-500); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-hint {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #fefce8; border: 1px solid #fde68a;
  border-radius: var(--radius); font-size: 13px; margin-top: 4px;
}
.report-hint span { color: #92400e; }
.model-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 12px;
  min-width: 80px;
  text-align: center;
}
.model-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.model-card.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.model-card.active .model-card-provider { color: rgba(255,255,255,0.75); }
.model-card.active .model-card-name { color: white; }
.model-card-provider {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.model-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

/* Mode selector */
.mode-selector {
  display: flex; gap: 6px;
  padding-right: 8px;
  border-right: 1px solid var(--gray-200);
  margin-right: 4px;
}
.mode-card {
  padding: 5px 12px; border: 2px solid var(--gray-300);
  border-radius: var(--radius); background: white; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all 0.15s;
  white-space: nowrap;
}
.mode-card:hover { border-color: var(--primary); background: var(--primary-light); }
.mode-card.active { border-color: var(--primary); background: var(--primary); color: white; }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.chat-welcome {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.chat-welcome h3 { font-size: 20px; margin-bottom: 8px; color: var(--gray-600); }
.chat-message {
  margin-bottom: 16px;
  max-width: 85%;
}
.chat-message.user { margin-left: auto; }
.chat-message.assistant { margin-right: auto; }
.message-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 14px;
}
.chat-message.user .message-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message.assistant .message-bubble {
  background: white;
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}
.message-meta { font-size: 11px; color: var(--gray-400); margin-top: 4px; padding: 0 4px; }
.chat-message.user .message-meta { text-align: right; }

/* Assistant message markdown styles */
.message-bubble h1, .message-bubble h2, .message-bubble h3 { margin: 12px 0 8px; }
.message-bubble h1 { font-size: 1.3em; }
.message-bubble h2 { font-size: 1.15em; }
.message-bubble h3 { font-size: 1em; }
.message-bubble p { margin-bottom: 8px; }
.message-bubble ul, .message-bubble ol { margin: 8px 0; padding-left: 20px; }
.message-bubble li { margin-bottom: 4px; }
.message-bubble code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.message-bubble pre {
  background: var(--gray-800);
  color: #e5e7eb;
  padding: 12px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 8px 0;
}
.message-bubble pre code { background: none; padding: 0; color: inherit; }
.message-bubble table { border-collapse: collapse; margin: 8px 0; width: 100%; }
.message-bubble th, .message-bubble td { border: 1px solid var(--gray-200); padding: 6px 10px; text-align: left; }
.message-bubble th { background: var(--gray-50); }
.message-bubble blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  color: var(--gray-600);
  margin: 8px 0;
}

/* Copy button on messages */
.msg-actions { margin-top: 6px; }
.msg-actions .btn { font-size: 11px; padding: 2px 8px; }

/* Input */
.chat-input-area {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--gray-200);
}
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  resize: none;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
}
.chat-input-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.chat-input-row .btn { align-self: flex-end; padding: 10px 20px; }
.chat-input-hint { margin-top: 6px; font-size: 12px; color: var(--gray-400); }
.upload-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 13px;
}
.upload-status { color: var(--success); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Loading indicator */
.loading-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.loading-dots span {
  width: 8px; height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Copy success toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Task result */
.task-result-bloc { margin: 0 0 16px; }
.task-result-header { padding: 8px 14px; background: var(--primary-light); border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 600; color: var(--primary); }
.task-output { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 0 0 8px 8px; overflow-x: auto; }
.task-output pre { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.6; max-height: 600px; overflow-y: auto; }
.task-error { padding: 12px 16px; background: #fef2f2; color: #dc2626; border-radius: 8px; margin-top: 8px; font-size: 13px; }
.task-files { margin-top: 8px; padding: 12px 16px; background: white; border: 1px solid var(--gray-200); border-radius: 8px; }
.task-files h4 { margin-bottom: 6px; font-size: 13px; }
.file-link { display: block; padding: 4px 0; font-size: 13px; color: var(--primary); }
.task-actions { margin-top: 8px; display: flex; gap: 8px; }
.task-status-bar { padding: 8px 0; font-size: 13px; }

/* Report delete button */
.report-item .btn-danger { font-size: 10px; padding: 2px 6px; }

/* Responsive */
@media (max-width: 768px) {
  .chat-sidebar, .chat-reports { display: none; }
  .form-row { flex-direction: column; }
}
