/* PromptForge — Custom Styles */

/* Base input styling */
.input-field {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #e5e7eb;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.input-field:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.input-field::placeholder { color: #4b5563; }
.input-field option { background: #1a1a24; }

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Framework chip */
.framework-chip {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a24;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}
.framework-chip:hover { border-color: #22c55e; color: #22c55e; }
.framework-chip.active {
  background: rgba(34,197,94,0.15);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

/* Template chip */
.template-chip {
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a24;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.template-chip:hover {
  border-color: rgba(255,255,255,0.2);
  color: #e5e7eb;
  background: #22222f;
}

/* History item */
.history-item {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}
.history-item:hover {
  border-color: rgba(34,197,94,0.3);
  background: #22222f;
}
.history-item .task-preview {
  font-size: 0.7rem;
  color: #d1d5db;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.history-item .meta {
  font-size: 0.65rem;
  color: #6b7280;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.history-item .fw-badge {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border-radius: 9999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Copy success animation */
@keyframes copySuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.copy-success {
  animation: copySuccess 0.3s ease;
  background: rgba(34,197,94,0.15) !important;
  border-color: #22c55e !important;
  color: #4ade80 !important;
}

/* Fade-in for output section */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeSlideUp 0.35s ease forwards; }

/* Skeleton pulse */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.generating {
  background: linear-gradient(90deg, #1a1a24 25%, #22222f 50%, #1a1a24 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
  height: 120px;
  width: 100%;
}
