/* Project Panel Styles */
.project-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-height: 80vh;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow: hidden;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
}

.project-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: #333;
  border-bottom: 1px solid #444;
}

.project-panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.project-panel-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-panel-close:hover {
  color: #fff;
}

.project-panel-content {
  padding: 12px;
  height: calc(80vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-panel-content h4 {
  color: #fff;
  margin: 0 0 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
}

.project-panel-content > div {
  margin-bottom: 16px;
}

.recent-projects-section {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-info {
  background: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
}

.current-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.current-project-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.current-project-meta {
  color: #aaa;
  font-size: 12px;
}

.current-project-description {
  color: #ccc;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.current-project-actions {
  display: flex;
  gap: 8px;
}

.current-project-actions .project-btn {
  background: #555;
  color: white;
  border: none;
  padding: 4px 8px;
  margin: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.2s;
}

.current-project-actions .project-btn:hover {
  background: #666;
}

.project-btn {
  background: #04aa6d;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.project-btn:hover:not(:disabled) {
  background: #038857;
}

.project-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

.project-item {
  background: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.project-item:hover {
  border-color: #666;
}

.project-item.current {
  border-color: #04aa6d;
  background: #1a2a1a;
}

.project-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 16px;
}

.project-name {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  margin-right: 8px;
}

.project-description {
  color: #ccc;
  font-size: 13px;
  margin-right: 8px;
}

.project-caves {
  color: #888;
  font-size: 12px;
  margin-right: 8px;
}

.project-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.project-meta-text {
  color: #aaa;
  font-size: 12px;
}

.current-badge {
  background: #04aa6d;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

.project-item-actions {
  margin-top: 8px;
}

.project-action-btn {
  background: #555;
  color: white;
  border: none;
  padding: 4px 8px;
  margin-right: 4px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.2s;
}

.project-action-btn:hover {
  background: #666;
}

.project-action-btn.delete:hover {
  background: #8a1a12;
}

.project-search-container {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.project-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.project-search-input::placeholder {
  color: #888;
}

.project-search-input:focus {
  outline: none;
  border-color: #04aa6d;
  box-shadow: 0 0 0 2px rgba(4, 170, 109, 0.2);
}

#recent-projects-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
