/* Projects Drawer Styles */
.projects-drawer {
  width: 500px;
  max-width: 90vw;
}

.projects-drawer .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.projects-drawer .dialog-header .drawer-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.projects-drawer .dialog-header .drawer-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.projects-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--card);
  color: var(--foreground);
  margin-bottom: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.projects-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.projects-search-input::placeholder {
  color: var(--muted-foreground);
}

.projects-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projects-list::-webkit-scrollbar {
  width: 6px;
}

.projects-list::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: var(--radius-md);
}

.projects-list::-webkit-scrollbar-thumb {
  background: var(--muted-foreground);
  border-radius: var(--radius-md);
}

.projects-list::-webkit-scrollbar-thumb:hover {
  background: var(--foreground);
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-align: left;
  width: 100%;
  padding: 20px 10px !important;
  margin: 0 !important;
}

.project-item:hover {
  border-color: var(--primary);
  background: var(--muted);
}

.project-item.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.project-item.active svg {
  color: var(--primary);
}

.project-item-content {
  flex: 1;
  min-width: 0;
}

.project-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item-description {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-list .empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}

/* Project Header Links */
.project-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.project-link-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.project-link-chip:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.project-link-chip svg {
  opacity: 0.7;
}

.project-link-chip:hover svg {
  opacity: 1;
}
