/* SuperAgents — superagents-views.css
 * Module : views
 * Généré depuis index.html
 */

/* ── CONVERSATIONS VIEW ─────────────────── */
.conversations-header {
  padding: 20px 24px 14px; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--zen-border);
}
.conversations-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }

/* Search bar */
.conv-search-wrap {
  position: relative; margin-bottom: 10px;
}
.conv-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--zen-text-muted); pointer-events: none;
}
.conv-search-input {
  width: 100%; padding: 9px 34px 9px 36px; border-radius: 10px;
  border: 1.5px solid var(--zen-border); background: var(--zen-surface);
  font-size: 12.5px; font-family: inherit; color: var(--zen-text);
  transition: var(--transition); outline: none;
}
.conv-search-input:focus { border-color: var(--zen-primary); box-shadow: 0 0 0 3px rgba(45,212,168,0.1); }
.conv-search-input::placeholder { color: var(--zen-text-muted); }
.conv-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--zen-text-muted);
  cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px;
}
.conv-search-clear:hover { background: var(--zen-bg); color: var(--zen-text); }

/* Search highlight */
.conv-search-highlight { background: #FEF3C7; color: #92400E; border-radius: 2px; padding: 0 1px; }

.conv-filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* Delete button on conv items */
.conv-item { position: relative; }
.conv-item-delete {
  position: absolute; right: 8px; top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: var(--zen-text-muted); font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.conv-item:hover .conv-item-delete { opacity: 1; }
.conv-item-delete:hover { background: #FEE2E2; color: var(--zen-danger); border-color: #FECACA; }
.conv-filter {
  padding: 5px 12px; border-radius: 18px; border: 1.5px solid var(--zen-border);
  background: var(--zen-surface); font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--zen-text-secondary); transition: var(--transition);
}
.conv-filter:hover { border-color: var(--zen-primary-light); }
.conv-filter.active { background: var(--zen-primary); color: #fff; border-color: var(--zen-primary); }

.conversations-list { flex: 1; overflow-y: auto; padding: 14px 24px; }
.conv-group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--zen-text-muted); padding: 10px 0 6px;
}
.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition); margin-bottom: 3px;
}
.conv-item:hover { background: var(--zen-surface); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.conv-item-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; overflow: hidden;
}
.conv-item-avatar svg { width: 100%; height: 100%; }
.conv-item-info { flex: 1; min-width: 0; }
.conv-item-title {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px;
}
.conv-item-preview {
  font-size: 11.5px; color: var(--zen-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-item-meta { text-align: right; flex-shrink: 0; }
.conv-item-date { font-size: 11px; color: var(--zen-text-muted); }
.conv-item-badge {
  display: inline-block; padding: 1px 7px; border-radius: 8px;
  font-size: 9.5px; font-weight: 700; margin-top: 3px;
  background: var(--zen-bg); color: var(--zen-primary-dark);
}

/* ── DOCUMENTS VIEW ─────────────────────── */
.docs-header {
  padding: 20px 24px 12px; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--zen-border);
}
.docs-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.docs-subtitle { font-size: 13px; color: var(--zen-text-muted); margin: 0; }
.docs-tabs { display: flex; gap: 0; overflow-x: auto; }
.docs-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  border: none; background: none; color: var(--zen-text-muted);
  cursor: pointer; white-space: nowrap; position: relative;
  transition: var(--transition); border-bottom: 2.5px solid transparent;
}
.docs-tab:hover { color: var(--zen-text); }
.docs-tab.active { color: var(--zen-primary-dark); border-bottom-color: var(--zen-primary); }

.docs-panel { display: none; flex-direction: column; flex: 1; overflow-y: auto; }
.docs-panel.active { display: flex; }

.docs-search-wrap { position: relative; padding: 14px 24px 0; }
.docs-toolbar {
  display: flex; gap: 8px; padding: 14px 24px 0; flex-wrap: wrap; align-items: center;
}
.docs-breadcrumb {
  padding: 8px 24px; display: flex; gap: 4px; align-items: center;
  font-size: 13px; color: var(--zen-text-muted); flex-wrap: wrap;
}
.docs-breadcrumb-item {
  cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: var(--transition);
}
.docs-breadcrumb-item:hover { background: var(--zen-bg); color: var(--zen-primary-dark); }
.docs-breadcrumb-sep { color: var(--zen-border); font-size: 11px; }

.docs-list { padding: 10px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }

.doc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition); position: relative;
}
.doc-item:hover { background: var(--zen-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.doc-item-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.doc-item-icon.folder { background: #FEF3C7; }
.doc-item-icon.file { background: #EFF6FF; }
.doc-item-icon.indexed { background: #D1FAE5; }
.doc-item-info { flex: 1; min-width: 0; }
.doc-item-name {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.doc-item-meta {
  font-size: 12px; color: var(--zen-text-muted); margin-top: 1px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.doc-item-meta .agent-badge {
  background: rgba(45,212,168,0.1); color: var(--zen-primary-dark);
  padding: 1px 6px; border-radius: 6px; font-weight: 600; font-size: 11px;
}
.doc-item-actions {
  display: flex; gap: 4px; opacity: 0; transition: var(--transition); flex-shrink: 0;
}
.doc-item:hover .doc-item-actions { opacity: 1; }
.doc-item-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--zen-text-muted); font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.doc-item-btn:hover { background: var(--zen-bg); border-color: var(--zen-border); }
.doc-item-btn.danger:hover { background: #FEE2E2; color: var(--zen-danger); border-color: #FECACA; }
.doc-item-btn.rag-index:hover { background: #D1FAE5; color: #059669; border-color: #A7F3D0; }

.doc-select-bar {
  display: none; padding: 10px 24px; background: var(--zen-primary);
  color: white; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md); margin: 8px 24px 0;
}
.doc-select-bar.active { display: flex; }
.doc-select-bar .count { flex: 1; }
.doc-select-bar button {
  padding: 6px 14px; border-radius: var(--radius-md); border: none;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.doc-select-bar .btn-copy { background: white; color: var(--zen-primary-dark); }
.doc-select-bar .btn-copy:hover { background: #f0f0f0; }
.doc-select-bar .btn-deselect { background: rgba(255,255,255,0.2); color: white; }
.doc-select-bar .btn-deselect:hover { background: rgba(255,255,255,0.3); }

.doc-check {
  width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--zen-border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 12px; color: transparent;
}
.doc-check.checked { background: var(--zen-primary); border-color: var(--zen-primary); color: white; }

.folder-picker-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1200;
  display: none; align-items: center; justify-content: center;
}
.folder-picker-overlay.active { display: flex; }
.folder-picker {
  background: white; border-radius: 16px; width: 420px; max-height: 480px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.folder-picker-header { padding: 16px 20px; border-bottom: 1px solid var(--zen-border); }
.folder-picker-header h3 { font-size: 17px; font-weight: 800; margin: 0; }
.folder-picker-header p { font-size: 12px; color: var(--zen-text-muted); margin: 4px 0 0; }
.folder-picker-bc { padding: 8px 20px; font-size: 13px; color: var(--zen-text-muted); display: flex; gap: 4px; align-items: center; }
.folder-picker-bc span { cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.folder-picker-bc span:hover { background: var(--zen-bg); }
.folder-picker-list { flex: 1; overflow-y: auto; padding: 4px 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.folder-picker-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-md); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.folder-picker-item:hover { background: var(--zen-surface); }
.folder-picker-item .icon { font-size: 20px; }
.folder-picker-footer {
  padding: 12px 20px; border-top: 1px solid var(--zen-border);
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
}
.folder-picker-footer label { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--zen-text-muted); }
.folder-picker-footer label input { accent-color: var(--zen-primary); }

.docs-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--zen-text-muted); text-align: center; gap: 10px;
}
.docs-empty svg { opacity: 0.3; }
.docs-empty h3 { font-size: 17px; font-weight: 700; margin: 0; }
.docs-empty p { font-size: 13px; margin: 0; max-width: 300px; }

