/* buttons.css — All button styles: login, icon, primary/secondary/danger/success/ghost, hero, add, GenLog actions
   Extracted from components.css (R4 split) */

/* ==================== BUTTONS ==================== */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-login:active {
  transform: scale(0.97);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-danger {
  background-color: #fef2f2;
  color: #dc2626;
}

.btn-icon-danger:hover {
  background-color: #fee2e2;
  transform: scale(1.05);
}

.btn-icon-secondary {
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-icon-secondary:hover {
  background-color: #f1f5f9;
  color: #475569;
  transform: scale(1.05);
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary-lg:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.btn-primary-lg:active {
  transform: scale(0.97);
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary-lg:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary-lg:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.btn-secondary-lg:active {
  transform: scale(0.97);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary-sm:active {
  transform: scale(0.96);
}

.btn-danger-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.btn-danger-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-danger-lg:active {
  transform: scale(0.97);
}

.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-danger-sm:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-danger-sm:active {
  transform: scale(0.96);
}

.btn-success-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}

.btn-success-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

.btn-success-sm:active {
  transform: scale(0.96);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.btn-hero-primary:active {
  transform: scale(0.97);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-hero-secondary:active {
  transform: scale(0.97);
}

/* Focus states for accessibility */
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* ==================== ADD BUTTON ==================== */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-add:active {
  transform: scale(0.96);
}

/* ==================== ADD GenLog ROW ==================== */
.btn-add-GenLog-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: white;
  color: #475569;
  border: 1px dashed #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-GenLog-inline:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
}

/* ==================== DELETE GenLog BUTTON ==================== */
.btn-delete-GenLog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 0.375rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-GenLog:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: scale(1.05);
}

.btn-delete-GenLog:active {
  transform: scale(0.95);
}

/* ==================== EDIT GenLog BUTTON ==================== */
.btn-edit-GenLog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 0.375rem;
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-GenLog:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  transform: scale(1.05);
}

.btn-edit-GenLog:active {
  transform: scale(0.95);
}

/* ==================== SMALL PRIMARY BUTTON (override) ==================== */
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary-sm:hover {
  background: #1d4ed8;
}
