/* --- UI Elements --- */

/* Buttons */
.btn-primary {
  background: var(--text-main);
  color: var(--bg-app);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Mobile Buttons */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
}

/* Icon Buttons */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  line-height: 1;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* --- SEARCH --- */
.search-container {
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 8px 32px 8px 12px;
  color: var(--text-main);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-active);
  box-shadow: 0 0 0 1px var(--accent-bg);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;

  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: 50%;
  font-size: 10px;
  color: var(--text-dim);
}

.toast-success .toast-icon {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent);
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* --- RESOURCES --- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none !important; /* Force no underline */
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.resource-link:hover {
  border-color: var(--accent);
  background: var(--bg-active);
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.resource-link span {
  font-size: 16px; /* Icon size */
}
