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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #ececec;
  --text-primary: #0d0d0d;
  --text-secondary: #6b6b6b;
  --accent: #10a37f;
  --accent-hover: #0d8a6a;
  --border: #e5e5e5;
  --danger: #ef4444;
}

body {
  font-family: ui-sans-serif, -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  font-size: 13px;
}

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-secondary);
}

.login-box {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 320px;
}

.login-box h2 {
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--text-primary);
}

.login-box p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.login-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box button:hover {
  background: var(--accent-hover);
}

.login-error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 12px;
}

.app-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  position: absolute;
  z-index: 1000;
}

.sidebar-header {
  padding: 10px;
  display: flex;
  gap: 6px;
}

.new-chat-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.new-chat-btn:hover {
  background: var(--bg-tertiary);
}

.new-folder-btn {
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.new-folder-btn:hover {
  background: var(--bg-tertiary);
}

.search-container {
  padding: 0 10px 10px;
}

.search-container input {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
}

.search-container input:focus {
  outline: none;
  border-color: var(--accent);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 6px 6px;
}

.folder-tree {
  margin-bottom: 6px;
}

.folder-item {
  margin-bottom: 2px;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease-out;
  position: relative;
  min-height: 32px;
  box-sizing: border-box;
}

.folder-header:hover {
  background: var(--bg-tertiary);
}

.folder-header.active {
  background: var(--bg-tertiary);
}

.folder-icon {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.folder-name {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-count {
  font-size: 10px;
  color: var(--text-secondary);
}

.folder-children {
  margin-left: 14px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease-out;
  margin-bottom: 2px;
  position: relative;
  min-height: 32px;
  box-sizing: border-box;
}

.chat-item:hover {
  background: var(--bg-tertiary);
}

.chat-item.active {
  background: var(--bg-tertiary);
}

.chat-item-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.chat-item-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-item-title {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-desc {
  font-size: 11px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Drag and Drop styles */
.chat-item.dragging {
  opacity: 0.5;
  background: var(--bg-tertiary);
}

.chat-item[draggable="true"] {
  cursor: grab;
}

.chat-item[draggable="true"]:active {
  cursor: grabbing;
}

.folder-header.drag-over {
  background: var(--accent);
  color: white;
  border-radius: 6px;
}

.folder-header.drag-over .folder-icon,
.folder-header.drag-over .folder-name,
.folder-header.drag-over .folder-count {
  color: white;
}

#chatList.drag-over {
  background: rgba(16, 163, 127, 0.1);
  border: 2px dashed var(--accent);
  border-radius: 6px;
  min-height: 40px;
}

.chat-item-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
}

.chat-item:hover .chat-item-actions {
  opacity: 1;
  visibility: visible;
}

.chat-item-actions button {
  padding: 3px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
}

.chat-item-actions button:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-primary);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.toggle-sidebar {
  padding: 6px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 6px;
}

.toggle-sidebar:hover {
  background: var(--bg-tertiary);
}

.chat-header h1 {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-selector select {
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

.model-selector select:focus {
  outline: none;
  border-color: var(--accent);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.welcome-screen h2 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}

.welcome-screen p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 13px;
}

.quick-actions button {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.quick-actions button:hover {
  background: var(--accent-hover);
}

.messages {
  max-width: 720px;
  margin: 0 auto;
}

.message {
  margin-bottom: 20px;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.message-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.message:hover .message-actions {
  opacity: 1;
}

.message-delete-btn,
.message-edit-btn {
  padding: 4px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
}

.message-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.message-edit-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.message-edit-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.message-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.message-edit-actions button {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
}

.message-edit-actions .cancel-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.message-edit-actions .save-btn {
  background: var(--accent);
  color: white;
}

.message-avatar {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
}

.message.user .message-avatar {
  background: var(--accent);
  color: white;
}

.message.assistant .message-avatar {
  background: #5436DA;
  color: white;
}

.message.ghost .message-avatar {
  background: #6b7280;
  color: white;
}

.message-role {
  font-weight: 600;
  font-size: 12px;
}

.message-content {
  padding-left: 36px;
  line-height: 1.5;
  font-size: 12px;
}

.message-content a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: break-word;
}

.message-content a:hover {
  text-decoration: underline;
}

.message-content strong,
.message-content b {
  font-weight: normal;
}

.message-content em,
.message-content i {
  font-style: normal;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  font-size: 12px;
  font-weight: normal;
  margin: 0;
}

.ai-response-inline {
  margin-top: 12px;
}

.ai-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.ai-label {
  font-weight: 600;
  color: #5436DA;
  font-size: 12px;
  margin-bottom: 6px;
}

.message-content p {
  margin-bottom: 10px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content pre {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
}

.message-content code {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
}

.message-content :not(pre) > code {
  background: #f6f8fa;
  padding: 2px 5px;
  border-radius: 4px;
}

.message-content ul, .message-content ol {
  margin-left: 18px;
  margin-bottom: 10px;
}

.message-content li {
  margin-bottom: 3px;
}

.input-container {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.input-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.add-manual-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.add-manual-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.input-role-select {
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.input-role-select:focus {
  border-color: var(--accent);
}

.input-wrapper textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: none;
  max-height: 180px;
  line-height: 1.5;
  padding: 6px 0;
}

.input-wrapper textarea:focus {
  outline: none;
}

.input-wrapper textarea::placeholder {
  color: var(--text-secondary);
}

.send-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.send-btn:hover {
  background: var(--accent-hover);
}

.send-btn:disabled {
  background: var(--bg-tertiary);
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 10px;
  min-width: 360px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-content h3 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  margin-bottom: 10px;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--accent);
}

.folder-modal-content {
  min-width: 400px;
}

.folder-customization {
  margin-bottom: 12px;
}

.folder-customization label,
.folder-instructions label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.icon-color-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-picker-full {
  width: 100%;
}

.icon-picker-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-picker-header input[type="text"] {
  flex: 1;
  margin-bottom: 0;
}

.icon-preview {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-preview:hover {
  border-color: var(--accent);
}

.icon-preview i {
  width: 18px;
  height: 18px;
}

.icon-dropdown {
  display: none;
  margin-top: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

.icon-dropdown.show {
  display: block;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.icon-option {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s;
}

.icon-option:hover {
  background: var(--bg-tertiary);
}

.icon-option.selected {
  background: var(--accent);
  color: white;
}

.icon-option i {
  width: 16px;
  height: 16px;
}

.color-picker {
  display: flex;
  align-items: center;
}

.color-picker input[type="color"] {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  margin-bottom: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-picker input[type="color"]::-webkit-color-swatch {
  border-radius: 6px;
  border: none;
}

.folder-instructions textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
}

.folder-instructions textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.folder-icon i,
.folder-icon svg {
  width: 18px;
  height: 18px;
}

.modal-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 14px;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-actions button:not(.primary):not(.danger) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-actions button.primary {
  background: var(--accent);
  color: white;
}

.modal-actions button.danger {
  background: var(--danger);
  color: white;
}

.context-menu {
  display: none;
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  z-index: 1001;
  min-width: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  pointer-events: none;
}

.context-menu.show {
  display: block;
  pointer-events: auto;
}

.context-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s;
}

.context-menu button:hover {
  background: var(--bg-tertiary);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.search-results {
  padding: 10px;
}

.search-results h4 {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.search-result-item {
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
}

.search-result-item:hover {
  background: var(--bg-tertiary);
}

.search-result-item .title {
  font-size: 12px;
  margin-bottom: 2px;
}

.search-result-item .preview {
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    z-index: 1000;
    height: 100%;
  }
  
  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Info Panel */
.content-with-panel {
  display: flex;
  flex: 1;
  min-height: 0;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.toggle-info-panel {
  padding: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  margin-left: 10px;
}

.toggle-info-panel:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.info-panel {
  width: 280px;
  background: white;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.info-panel.hidden {
  display: none;
}

.info-panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.info-panel-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.info-panel-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-section, .attachments-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-header, .attachments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.refresh-btn {
  padding: 4px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
}

.refresh-btn:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}

.summary-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
}

.summary-text .no-summary {
  color: var(--text-secondary);
  font-style: italic;
}

.attachment-count {
  font-weight: normal;
  color: var(--text-secondary);
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.attachment-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-thumb:hover .attachment-delete,
.attachment-thumb:hover .attachment-star {
  opacity: 1;
}

.attachment-star {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-star:hover {
  background: rgba(0,0,0,0.8);
}

.attachment-star.active {
  color: gold;
  opacity: 1;
}

.attachment-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn:hover {
  background: var(--bg-primary);
  color: var(--accent);
  border-color: var(--accent);
}

.ghost-settings-section {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.ghost-name-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
}

.ghost-name-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ghost-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
}

/* Image Lightbox */
.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-lightbox.show {
  display: flex;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.upload-progress {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 280px;
}

.upload-progress.show {
  display: block;
}

.upload-progress-text {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.upload-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}
