/* Consistent Button Styles */

/* Base button styles - Reference site style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  gap: 0.375rem;
  white-space: nowrap;
}

/* Button sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Button variants */
.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #2f3439;
  color: #e4e6eb;
  border-color: #3a3f47;
}

.btn-secondary:hover {
  background-color: #363b42;
}

.btn-ghost {
  background-color: transparent;
  color: #b0b3b8;
}

.btn-ghost:hover {
  background-color: #2f3439;
  color: #e4e6eb;
}

/* Icon buttons */
.btn-icon {
  padding: 0.5rem;
  aspect-ratio: 1 / 1;
}

.btn-icon.btn-sm {
  padding: 0.375rem;
}

.btn-icon.btn-lg {
  padding: 0.625rem;
}

/* Button group */
.btn-group {
  display: inline-flex;
  background-color: #2f3439;
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.125rem;
}

.btn-group .btn {
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: transparent;
  border: none;
}

.btn-group .btn:hover {
  background-color: #363b42;
}

.btn-group .btn.active {
  background-color: #363b42;
  color: #e4e6eb;
}

/* Navigation bar specific styles - Reference site style */
.nav-bar .btn {
  height: 2rem; /* Compact height */
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

.nav-bar .btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
}

.nav-bar .btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Panel header buttons */
.panel-header-btn {
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.panel-header-btn:hover {
  background-color: #2f3439;
}

.panel-header-btn svg {
  width: 1rem;
  height: 1rem;
  color: #b0b3b8;
}

/* Upload button */
.upload-btn {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  background-color: #2563eb;
}

.upload-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Collection button */
.collection-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #2f3439;
  color: #e4e6eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.collection-btn:hover {
  background-color: #363b42;
}

.collection-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Sort dropdown */
.sort-dropdown {
  background-color: #2f3439;
  border: 1px solid #3a3f47;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #e4e6eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-dropdown:hover {
  border-color: #4a5058;
}

.sort-dropdown:focus {
  outline: none;
  border-color: #4a5058;
}

/* View toggle buttons */
.view-toggle {
  display: flex;
  background-color: #2f3439;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.view-toggle button {
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  background-color: transparent;
  color: #b0b3b8;
  transition: all 0.15s ease;
}

.view-toggle button:hover {
  color: #e4e6eb;
}

.view-toggle button.active {
  background-color: #363b42;
  color: #e4e6eb;
}

.view-toggle button svg {
  width: 1rem;
  height: 1rem;
}