/* COD-ALL - Complete Stylesheet */

:root {
  --bg-primary: #0c0c14;
  --bg-secondary: #111119;
  --bg-tertiary: #191924;
  --bg-card: #1c1c2a;
  --bg-hover: #22223a;
  --bg-input: #16161f;
  --border: #2a2a3e;
  --border-light: #33334a;
  --text-primary: #e4e4ec;
  --text-secondary: #8888a4;
  --text-muted: #5a5a78;
  --accent: #7c6cf0;
  --accent-light: #9d8ff8;
  --accent-dim: rgba(124, 108, 240, 0.12);
  --accent-glow: rgba(124, 108, 240, 0.25);
  --error: #ef4466;
  --warning: #f0a030;
  --success: #34d399;
  --info: #38bdf8;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sidebar-width: 280px;
  --panel-width: 340px;
  --topbar-height: 52px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  font-size: 14px;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 100;
}
.sidebar.collapsed { width: 0; border-right: none; transform: translateX(-100%); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  min-height: 60px;
}

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

.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: white; flex-shrink: 0;
}

.logo-text { font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }

.btn-new-chat {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 32px); margin: 12px 16px; padding: 10px 16px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); color: var(--accent-light);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.btn-new-chat:hover { background: rgba(124, 108, 240, 0.2); box-shadow: 0 0 20px var(--accent-glow); }

.sidebar-section { flex: 1; overflow-y: auto; padding: 8px; }
.sidebar-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 8px 12px 4px; }
.chat-history-list { display: flex; flex-direction: column; gap: 2px; }

.chat-history-item {
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--transition); display: flex; align-items: center; gap: 10px; position: relative;
}
.chat-history-item:hover { background: var(--bg-hover); }
.chat-history-item.active { background: var(--accent-dim); }
.chat-history-item .preview { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.chat-history-item .time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.chat-history-item .delete-btn { display: none; background: none; border: none; color: var(--error); cursor: pointer; font-size: 12px; padding: 4px; }
.chat-history-item:hover .delete-btn { display: block; }
.chat-history-item:hover .time { display: none; }

.sidebar-footer { border-top: 1px solid var(--border); padding: 8px; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none;
  font-size: 13px; cursor: pointer; transition: all var(--transition);
  background: none; border: none; width: 100%; font-family: var(--font-sans);
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; }

/* Topbar */
.topbar {
  height: var(--topbar-height); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--bg-secondary); flex-shrink: 0; z-index: 50;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-center { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--text-secondary); }

.provider-badge {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  background: var(--accent-dim); color: var(--accent-light); font-weight: 500;
}

.btn-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: none;
  background: none; color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 15px;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon.btn-sm { width: 28px; height: 28px; font-size: 12px; }
.sidebar-toggle { display: none; }

/* Content Area */
.content-area { flex: 1; display: flex; overflow: hidden; position: relative; }

/* Panels */
.panel {
  width: var(--panel-width); background: var(--bg-secondary);
  display: flex; flex-direction: column; flex-shrink: 0;
  transition: width var(--transition), opacity var(--transition); overflow: hidden;
}
.panel.hidden { width: 0; opacity: 0; border: none; overflow: hidden; }
.panel-left { border-right: 1px solid var(--border); }
.panel-right { border-left: 1px solid var(--border); }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 48px;
}
.panel-header h3 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }

.panel-toolbar { padding: 8px; border-bottom: 1px solid var(--border); }
.path-bar { display: flex; gap: 4px; align-items: center; }

.path-input {
  flex: 1; padding: 6px 10px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary); font-family: var(--font-mono); font-size: 12px; outline: none;
}
.path-input:focus { border-color: var(--accent); }
.panel-content { flex: 1; overflow-y: auto; padding: 8px; }

/* File items */
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 6px; cursor: pointer; transition: background var(--transition); font-size: 13px;
}
.file-item:hover { background: var(--bg-hover); }
.file-item i { width: 18px; text-align: center; flex-shrink: 0; }
.file-item .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.file-item .icon-folder { color: #f0c040; }
.file-item .icon-file { color: var(--text-secondary); }
.file-item .icon-code { color: var(--accent-light); }
.file-item .icon-config { color: var(--success); }
.file-item .icon-image { color: #f06090; }
.file-item .icon-data { color: var(--info); }

/* Chat Area */
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }

.welcome-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px; text-align: center;
}
.welcome-screen.hidden { display: none; }

.welcome-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 32px; color: white;
  margin-bottom: 24px; box-shadow: 0 0 60px var(--accent-glow);
}

.welcome-screen h1 {
  font-family: var(--font-mono); font-size: 36px; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.welcome-screen p { color: var(--text-secondary); margin-bottom: 40px; font-size: 16px; }
.welcome-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 500px; width: 100%; }

.welcome-card {
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary);
}
.welcome-card:hover {
  border-color: var(--accent); background: var(--bg-hover); color: var(--text-primary);
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.welcome-card i { font-size: 18px; color: var(--accent); width: 24px; text-align: center; }

/* Messages */
.messages-container { flex: 1; overflow-y: auto; display: none; padding: 20px 0; }
.messages-container.visible { display: block; }
#messagesList { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.message { margin-bottom: 24px; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

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

.message-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.message-avatar.user { background: linear-gradient(135deg, #2563eb, #38bdf8); color: white; }
.message-avatar.assistant { background: linear-gradient(135deg, var(--accent), #a855f7); color: white; font-family: var(--font-mono); font-size: 10px; }
.message-name { font-size: 13px; font-weight: 600; }
.message-time { font-size: 11px; color: var(--text-muted); }

.message-body { padding-left: 38px; font-size: 14.5px; line-height: 1.7; color: var(--text-primary); }
.message-body p { margin-bottom: 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; color: var(--accent-light); }

.message-body pre {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; margin: 12px 0; overflow-x: auto; position: relative;
}
.message-body pre code { background: none; padding: 0; color: var(--text-primary); font-size: 13px; line-height: 1.5; }

.message-body pre .copy-btn {
  position: absolute; top: 8px; right: 8px; padding: 4px 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-secondary); font-size: 11px; cursor: pointer; font-family: var(--font-sans);
  opacity: 0; transition: opacity var(--transition);
}
.message-body pre:hover .copy-btn { opacity: 1; }
.message-body pre .copy-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.message-body ul, .message-body ol { padding-left: 20px; margin: 8px 0; }
.message-body li { margin-bottom: 4px; }
.message-body a { color: var(--accent-light); text-decoration: none; }
.message-body a:hover { text-decoration: underline; }
.message-body blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--text-secondary); margin: 12px 0; }
.message-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.message-body th, .message-body td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; font-size: 13px; }
.message-body th { background: var(--bg-tertiary); font-weight: 600; }

.typing-indicator { display: flex; gap: 4px; align-items: center; padding-left: 38px; }
.typing-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: typingBounce 1.4s infinite ease-in-out; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.fallback-notice {
  padding: 6px 12px; background: rgba(240, 160, 48, 0.1); border: 1px solid rgba(240, 160, 48, 0.3);
  border-radius: 6px; font-size: 12px; color: var(--warning); margin-left: 38px; margin-bottom: 8px;
}

/* Input Area */
.input-area { padding: 16px 24px 24px; background: linear-gradient(transparent, var(--bg-primary) 20%); }
.input-container { max-width: 800px; margin: 0 auto; }

.input-context {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 12px; color: var(--accent-light);
}
.input-context button { background: none; border: none; color: var(--accent-light); cursor: pointer; padding: 2px; }

.input-wrapper {
  display: flex; align-items: flex-end; gap: 8px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px;
  transition: border-color var(--transition);
}
.input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input-context + .input-wrapper { border-radius: 0 0 var(--radius) var(--radius); }

.input-wrapper textarea {
  flex: 1; background: none; border: none; color: var(--text-primary);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  resize: none; outline: none; max-height: 200px; min-height: 24px; padding: 4px 0;
}
.input-wrapper textarea::placeholder { color: var(--text-muted); }

.input-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.provider-select {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-secondary); font-size: 11px; font-family: var(--font-sans);
  padding: 4px 8px; outline: none; cursor: pointer;
}
.provider-select:focus { border-color: var(--accent); }
.provider-select option { background: var(--bg-card); color: var(--text-primary); }

.btn-send {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 14px;
}
.btn-send:hover { background: var(--accent-light); box-shadow: 0 0 16px var(--accent-glow); }
.btn-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); width: 100%; max-height: 90vh; display: flex; flex-direction: column;
}
.modal-large { max-width: 900px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 14px; font-weight: 600; font-family: var(--font-mono); }
.modal-actions { display: flex; gap: 8px; align-items: center; }
.modal-body { flex: 1; overflow: auto; padding: 0; }

.file-editor {
  width: 100%; min-height: 500px; background: var(--bg-primary); color: var(--text-primary);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  padding: 20px; border: none; outline: none; resize: none;
}

.btn-sm {
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-tertiary); color: var(--text-primary); font-size: 12px;
  font-family: var(--font-sans); cursor: pointer; transition: all var(--transition);
}
.btn-sm:hover { background: var(--bg-hover); border-color: var(--accent); }

/* Telemetry Panel */
.telemetry-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.telemetry-stat .label { font-size: 12px; color: var(--text-secondary); }
.telemetry-stat .value { font-size: 14px; font-weight: 600; font-family: var(--font-mono); }

.telemetry-event {
  padding: 8px 12px; border-bottom: 1px solid rgba(42, 42, 62, 0.5); font-size: 12px;
}
.telemetry-event .event-type { font-weight: 500; color: var(--accent-light); }
.telemetry-event .event-time { color: var(--text-muted); font-size: 11px; }

.severity-error { border-left: 3px solid var(--error); }
.severity-warning { border-left: 3px solid var(--warning); }
.severity-info { border-left: 3px solid var(--info); }

/* System Info */
.sys-info-block {
  padding: 12px; margin: 8px 0; background: var(--bg-primary); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.sys-info-block .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.sys-info-block pre { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); white-space: pre-wrap; word-break: break-all; }

/* Loading */
.loading-spinner { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 200; }
  .sidebar.collapsed { transform: translateX(-100%); }
  .sidebar-toggle { display: flex; }
  .panel { width: 280px; }
  .welcome-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .panel { position: fixed; right: 0; top: 0; height: 100vh; z-index: 150; width: 100%; max-width: 340px; }
  .panel-left { left: 0; right: auto; }
  .topbar-center { display: none; }
  .welcome-screen h1 { font-size: 28px; }
  .welcome-icon { width: 60px; height: 60px; font-size: 24px; border-radius: 18px; }
}


/* ======== COD-ALL v2 Additions ======== */

/* Terminal Panel */
.terminal-panel {
  background: #0a0a0f;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #151520;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-header-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-header-bar .dot-red { background: #ff5f57; }
.terminal-header-bar .dot-yellow { background: #febc2e; }
.terminal-header-bar .dot-green { background: #28c840; }

.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #c8c8d8;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-output .stdout { color: #c8c8d8; }
.terminal-output .stderr { color: #ef4466; }
.terminal-output .cmd-line { color: #34d399; font-weight: 500; }
.terminal-output .exit-code { color: var(--text-muted); font-size: 11px; }
.terminal-output .exit-code.error { color: #ef4466; }

.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: #0d0d15;
}

.terminal-prompt {
  color: #34d399;
  font-size: 13px;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: #e4e4ec;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.terminal-cwd-bar {
  padding: 4px 12px;
  background: #0d0d15;
  border-bottom: 1px solid rgba(42, 42, 62, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-cwd-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  outline: none;
}

/* Learning Panel */
.learning-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px 0;
}

.learning-stat-card {
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.learning-stat-card .stat-value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

.learning-stat-card .stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.learning-entry {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 42, 62, 0.5);
  font-size: 12px;
}

.learning-entry .entry-category {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent-light);
  font-weight: 500;
  margin-right: 6px;
}

.learning-entry .entry-pattern {
  color: var(--text-primary);
  font-size: 12px;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.learning-entry .entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}

.confidence-bar {
  width: 50px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}

.confidence-bar .fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.confidence-bar .fill.high { background: var(--success); }
.confidence-bar .fill.medium { background: var(--warning); }
.confidence-bar .fill.low { background: var(--error); }

.learning-feedback-btns {
  display: flex;
  gap: 4px;
}

.learning-feedback-btns button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  transition: all var(--transition);
}

.learning-feedback-btns button:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.learning-feedback-btns button.btn-positive:hover { color: var(--success); border-color: var(--success); }
.learning-feedback-btns button.btn-negative:hover { color: var(--error); border-color: var(--error); }

/* Image Preview */
.image-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 12px;
  color: var(--info);
}

.image-preview img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.image-preview button {
  background: none;
  border: none;
  color: var(--info);
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
}

.image-preview + .input-wrapper {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* File actions in explorer */
.file-item .file-actions {
  display: none;
  gap: 2px;
}

.file-item:hover .file-actions {
  display: flex;
}

.file-item:hover .meta {
  display: none;
}

.file-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  border-radius: 3px;
  transition: all var(--transition);
}

.file-actions button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.file-actions button.btn-delete:hover { color: var(--error); }
