/* style.css - ESSEM Digital Innovations Brand Theme (Light) */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-muted: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-brand: #1d4ed8;
  --accent-brand-hover: #1e40af;
  --accent-cyan: #0284c7;
  --accent-glow: rgba(29, 78, 216, 0.15);
  
  --status-pending: #b45309;
  --status-pending-bg: #fffbeb;
  --status-pending-border: #fde68a;
  
  --status-progress: #1d4ed8;
  --status-progress-bg: #eff6ff;
  --status-progress-border: #bfdbfe;
  
  --status-done: #15803d;
  --status-done-bg: #f0fdf4;
  --status-done-border: #bbf7d0;
  
  --priority-low: #64748b;
  --priority-medium: #b45309;
  --priority-high: #c2410c;
  --priority-critical: #b91c1c;
  --priority-critical-bg: #fef2f2;
  --priority-critical-border: #fecaca;

  --type-feature: #6d28d9;
  --type-bug: #b91c1c;
  --type-improvement: #0284c7;
  --type-task: #475569;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.brand-icon-lg {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent-brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-brand);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
  background: var(--accent-brand-hover);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.btn-danger {
  background-color: #fef2f2;
  color: var(--priority-critical);
  border-color: #fecaca;
}

.btn-danger:hover {
  background-color: var(--priority-critical);
  color: #ffffff;
}

.btn-icon {
  padding: 0.45rem 0.65rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

/* Layout container */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  flex: 1;
}

/* Auth Screen */
.auth-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.brand-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-center h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.auth-error {
  color: var(--priority-critical);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
  background: #fef2f2;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-brand);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Dashboard Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-brand);
  box-shadow: var(--shadow-md);
}

.stat-card.active-stat-filter {
  border-color: var(--accent-brand);
  background-color: var(--status-progress-bg);
  box-shadow: 0 0 0 2px var(--accent-brand);
}

.stat-info h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card.total .stat-icon { background: var(--bg-tertiary); color: var(--accent-brand); }
.stat-card.pending .stat-icon { background: var(--status-pending-bg); color: var(--status-pending); }
.stat-card.progress .stat-icon { background: var(--status-progress-bg); color: var(--status-progress); }
.stat-card.done .stat-icon { background: var(--status-done-bg); color: var(--status-done); }
.stat-card.overdue .stat-icon { background: var(--priority-critical-bg); color: var(--priority-critical); }

/* Controls Bar */
.controls-bar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.view-tabs {
  display: flex;
  background-color: var(--bg-tertiary);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background-color: #ffffff;
  color: var(--accent-brand);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.45rem 0.75rem 0.45rem 2.2rem;
  font-size: 0.85rem;
  width: 100%;
}

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

.filters-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-select {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.pending { background-color: var(--status-pending); }
.status-dot.progress { background-color: var(--status-progress); }
.status-dot.done { background-color: var(--status-done); }

/* Status Badges */
.badge-pending { background-color: var(--status-pending-bg); color: var(--status-pending); border: 1px solid var(--status-pending-border); }
.badge-progress { background-color: var(--status-progress-bg); color: var(--status-progress); border: 1px solid var(--status-progress-border); }
.badge-done { background-color: var(--status-done-bg); color: var(--status-done); border: 1px solid var(--status-done-border); }

/* Priority Badges */
.badge-low { color: var(--priority-low); background: #f1f5f9; border: 1px solid #cbd5e1; }
.badge-medium { color: var(--priority-medium); background: #fffbeb; border: 1px solid #fde68a; }
.badge-high { color: var(--priority-high); background: #fff7ed; border: 1px solid #fed7aa; }
.badge-critical { color: var(--priority-critical); background: #fef2f2; border: 1px solid #fecaca; }

/* Type Badges */
.badge-type { background-color: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.badge-feature { color: var(--type-feature); background: #f5f3ff; border: 1px solid #ddd6fe; }
.badge-bug { color: var(--type-bug); background: #fef2f2; border: 1px solid #fecaca; }
.badge-improvement { color: var(--type-improvement); background: #f0f9ff; border: 1px solid #bae6fd; }
.badge-task { color: var(--type-task); background: #f8fafc; border: 1px solid #e2e8f0; }

/* Creator Chip */
.creator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
}
.avatar-ceo { background: #6d28d9; }
.avatar-qa { background: #db2777; }
.avatar-dev { background: #2563eb; }

/* Table View */
.table-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.task-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.task-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

.task-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.task-row:hover {
  background-color: var(--bg-hover);
}

.task-title-cell {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-id {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--accent-brand);
  background: var(--status-progress-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--status-progress-border);
  font-weight: 700;
}

.task-desc-preview {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: normal;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.date-badge.overdue {
  color: var(--priority-critical);
  font-weight: 700;
}

.action-btns {
  display: flex;
  gap: 0.35rem;
}

/* Kanban View */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 520px;
}

@media (max-width: 900px) {
  .kanban-grid {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  box-shadow: var(--shadow-sm);
}

.column-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-tertiary);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.column-count {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.column-body {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background-color: var(--bg-primary);
  transition: background-color 0.2s;
}

.column-body.drag-over {
  background-color: var(--status-progress-bg);
  border: 2px dashed var(--accent-brand);
}

.kanban-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}

.kanban-card:hover {
  border-color: var(--accent-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kanban-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.card-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-muted);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.card-actions {
  display: flex;
  gap: 0.25rem;
}

/* Dialog / Modal */
dialog.modal {
  margin: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text-primary);
  max-width: 540px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* Attachments & Dropzone Styling */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent-brand);
  background-color: var(--status-progress-bg);
}

.hidden-file-input {
  display: none;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.dropzone-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.browse-link {
  color: var(--accent-brand);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.25rem;
}

.attachment-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.attachment-card:hover {
  border-color: var(--accent-brand);
  transform: translateY(-1px);
}

.attachment-thumb {
  width: 100%;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--bg-tertiary);
  cursor: pointer;
}

.attachment-file-icon {
  width: 100%;
  height: 65px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.attachment-file-icon span.ext-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  background: var(--accent-brand);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 2px;
}

.attachment-info {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.attachment-name {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.attachment-size {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 2;
}

.attachment-remove:hover {
  background: var(--priority-critical);
}

/* Table & Kanban Attachment Badges & Thumbnails */
.attachment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 0.725rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.attachment-badge:hover {
  background-color: var(--status-progress-bg);
  border-color: var(--status-progress-border);
  color: var(--accent-brand);
}

.attachment-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.attachment-thumb-mini {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.attachment-thumb-mini:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Lightbox Modal Styling */
.lightbox-modal {
  max-width: 650px;
  width: 90%;
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.lightbox-preview-container {
  width: 100%;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0.5rem;
}

.lightbox-preview-container img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-icon-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem;
  color: #ffffff;
  font-size: 3rem;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.lightbox-filename {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-filesize {
  font-size: 0.8rem;
  color: var(--text-muted);
}
