.inbox-layout {
  display: flex;
  height: calc(100vh - 64px);
  background: #f8fafc;
}

.inbox-sidebar {
  width: 280px;
  background: white;
  border-inline-end: 1px solid #e2e8f0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.conversation-count {
  font-size: 13px;
  color: #64748b;
}

.quick-filters {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.filter-btn:hover {
  background: #f1f5f9;
}

.filter-btn.active {
  background: #eff6ff;
  color: #0ea5e9;
}

.filter-btn .icon {
  width: 18px;
  height: 18px;
}

.filter-btn .badge {
  margin-inline-start: auto;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.filter-btn.active .badge {
  background: #0ea5e9;
  color: white;
}

.status-filters, .workspace-filters {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.status-filters h3, .workspace-filters h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.status-filter, .workspace-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.status-filter:hover, .workspace-filter:hover {
  background: #f1f5f9;
}

.status-filter.active, .workspace-filter.active {
  background: #eff6ff;
  color: #0ea5e9;
}

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

.status-dot.status-open { background: #ef4444; }
.status-dot.status-assigned { background: #f97316; }
.status-dot.status-in_progress { background: #3b82f6; }
.status-dot.status-waiting { background: #eab308; }
.status-dot.status-closed { background: #94a3b8; }

.status-filter .count, .workspace-filter .count {
  margin-inline-start: auto;
  font-size: 12px;
  color: #94a3b8;
}

.inbox-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inbox-header {
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.search-form {
  position: relative;
}

.search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  padding-inline-start: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #0ea5e9;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #64748b;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .inbox-sidebar {
    display: none;
  }
}
