.btn-danger:hover,
.btn-primary:hover,
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.btn-compare:hover,
.btn-danger:hover,
.btn-primary:hover,
.btn-success:hover {
  box-shadow: var(--shadow-md)
}

.btn-filter.active,
.btn-filter:hover,
.btn-quantity:hover {
  border-color: var(--primary-color)
}

.btn-favorite i,
.btn-float i {
  font-size: 1.2rem
}

.btn,
.item-actions-large .btn {
  gap: .5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  max-width: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation
}

.btn-outline,
.btn-secondary {
  border: 2px solid var(--primary-color)
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--primary-color)
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  text-decoration: none
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff
}

.btn-outline {
  background: 0 0;
  color: var(--primary-color)
}

.btn-compare,
.btn-icon {
  border: none;
  transition: var(--transition-fast)
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .9rem
}

.btn-block {
  width: 100%;
  justify-content: center
}

.btn-favorite,
.btn-icon {
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  display: flex
}

.btn-icon {
  background: rgba(255, 255, 255, .95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
  position: relative;
  padding: .5rem;
  color: var(--text-secondary);
  font-size: 1.25rem
}

.btn-icon:hover {
  background: #fff;
  color: var(--primary-color);
  transform: scale(1.1)
}

.btn-icon.btn-delete {
  color: #ef4444
}

.btn-icon.btn-delete:hover {
  background: #fee;
  color: #dc2626;
  transform: scale(1.1)
}

.btn-compare {
  flex: 1;
  padding: .6rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer
}

.btn-compare:hover {
  transform: scale(1.02)
}

.btn-compare.selected,
.btn-in-comparison {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  animation: .3s pulse
}

.btn-compare.selected:hover,
.btn-in-comparison:hover {
  background: linear-gradient(135deg, #27ae60, #229954) !important
}

.btn-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 255, 255, .95);
  border: none;
  border-radius: 50% !important;
  justify-content: center;
  transition: .3s;
  z-index: 10;
  display: flex !important;
  align-items: center !important;
}

.btn-filter,
.btn-quantity,
.btn-view-details {
  transition: var(--transition-fast);
  cursor: pointer
}

.btn-favorite i {
  color: #666;
  transition: .3s
}

.btn-favorite:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

.btn-float:hover,
.floating-compare-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 119, 190, .5)
}

.btn-favorite.favorited i,
.btn-favorite:hover i {
  color: #ff6b6b
}

.btn-favorite.favorited:hover {
  transform: scale(1.15) rotate(5deg)
}

.btn-favorite.favorited:hover i {
  color: #ff5252
}

.btn-filter {
  padding: .75rem 1.5rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-weight: 500
}

.btn-filter:hover {
  color: var(--primary-color)
}

.btn-filter.active {
  background: var(--gradient-primary);
  color: #fff
}

.btn-quantity:hover,
.btn-view-details:hover {
  background: var(--primary-color);
  color: #fff
}

.btn-view-details {
  padding: .6rem 1rem;
  background: 0 0;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 600
}

.btn-delete-capture,
.btn-quantity,
.btn-remove-inventory {
  color: var(--text-secondary)
}

.btn-quantity {
  width: 28px;
  height: 28px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center
}

.btn-delete-capture:hover,
.btn-remove-inventory:hover {
  background: rgba(239, 68, 68, .1);
  color: #ef4444
}

.btn-delete-capture {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: 50%;
  transition: var(--transition-fast)
}

.btn-mark-all-read,
.btn-remove-inventory {
  border: none;
  padding: .5rem;
  background: 0 0;
  transition: var(--transition-fast);
  cursor: pointer
}

.btn-remove-inventory {
  border-radius: 4px
}

.btn-mark-all-read:hover,
.btn-view-all:hover {
  background: rgba(0, 119, 190, .1)
}

.btn-mark-all-read {
  color: var(--primary-color);
  font-size: .85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: .5rem
}

.btn-clear-all,
.btn-view-all {
  background: 0 0;
  border: none;
  color: var(--text-secondary);
  font-size: .9rem;
  cursor: pointer;
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: .5rem
}

.btn-float,
.floating-compare-btn {
  position: fixed;
  bottom: 30px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 119, 190, .4);
  gap: 12px;
  font-weight: 600;
  transition: .3s;
  font-size: 1rem;
  display: flex
}

.btn-view-all:hover {
  color: var(--primary-color)
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, .1);
  color: #ef4444
}

.btn-float {
  right: 30px;
  align-items: center;
  padding: 16px 24px;
  z-index: 9999 !important;
  /* Fix: Aggressive z-index to ensure visibility */
  animation: .5s slideInUp
}

.floating-compare-btn {
  left: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 15px 30px;
  cursor: pointer;
  align-items: center;
  animation: .5s slideInLeft;
  background-color: #0077be !important;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: #fff !important;
  opacity: 1 !important;
  z-index: 9999 !important;
  display: flex !important
}

.floating-compare-btn i {
  font-size: 1.3rem;
  color: #fff !important
}

.floating-compare-btn .compare-count {
  background: rgba(255, 255, 255, .3);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  min-width: 28px;
  text-align: center
}

.item-modal-info .item-actions .btn {
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.purchase-links .btn {
  justify-content: center
}

.modal-actions .btn {
  width: 100%
}

.wishlist-card-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.empty-state .btn {
  margin-top: var(--spacing-md)
}

.item-actions-large .btn {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap
}

.technique-content .btn {
  width: 100%;
  margin-top: var(--spacing-sm)
}



@media (max-width:968px) {
  .item-modal-info .item-actions .btn {
    flex: 1 1 calc(50% - var(--spacing-xs));
    min-width: 150px
  }
}

@media (max-width:768px) {

  .item-actions-large .btn,
  .item-modal-info .item-actions .btn {
    width: 100%
  }

  .btn-float {
    bottom: 110px;
    /* Fix: Move up further to clearly clear navbar */
    right: 20px;
    width: auto;
    min-width: 56px;
    height: 56px;
    padding: 0 1.25rem;
    justify-content: center;
    font-size: .9rem;
    white-space: nowrap
  }

  .btn-float i {
    font-size: 1.25rem;
    margin-right: .5rem
  }

  /* Fix: Support both potential IDs and enforce position */
  #page-logbook .btn-float,
  #page-capturas .btn-float {
    bottom: 115px !important;
  }

  .btn-delete-capture {
    position: static;
    margin-top: var(--spacing-sm);
    width: 100%
  }
}

.floating-compare-btn.hidden {
  display: none !important
}

/* ═══════════════════════════════════════════════════════════
   MIGRADO DE components.css - 2025-12-30
   Categoria: buttons
   Seletores: 65
   ═══════════════════════════════════════════════════════════ */



.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-delete-capture {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-delete-capture:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-quantity {
  width: 28px;
  height: 28px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-quantity:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-remove-inventory {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-remove-inventory:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-mark-all-read {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-mark-all-read:hover {
  background: rgba(0, 119, 190, 0.1);
}

.btn-view-all,
.btn-clear-all {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-view-all:hover {
  background: rgba(0, 119, 190, 0.1);
  color: var(--primary-color);
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

to {
  transform: translateX(0);
  opacity: 1;
}

.item-actions-large .btn {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: normal !important;
  height: auto !important;
  min-height: 48px;
  padding: 0.75rem 1rem;
  text-align: center;
  line-height: 1.2;
}

/* Mobile catalog menu button - hidden by default */
.mobile-catalog-menu {
  display: none;
}

/* Sidebar toggle button - hidden by default on desktop */
.sidebar-toggle {
  display: none;
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.btn-favorite i {
  font-size: 1.2rem;
  color: #94a3b8;
  /* Slate 400 */
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-favorite:hover i {
  color: #ef4444;
}

.btn-favorite:active {
  transform: scale(0.9);
}

/* Estado Favoritado */
.btn-favorite.favorited {
  background: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-favorite.favorited i {
  color: #ef4444;
  /* Red 500 */
}

.btn-favorite.favorited:hover {
  transform: scale(1.1);
}

.btn-favorite.favorited:hover i {
  color: #dc2626;
  /* Red 600 */
}

.btn-compare {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-compare:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-compare.selected {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  animation: pulse 0.3s ease;
}

.btn-compare.selected:hover {
  background: linear-gradient(135deg, #27ae60, #229954);
}

/* Botão de comparação no modal */
.btn-in-comparison {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.btn-in-comparison:hover {
  background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.item-modal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.item-modal-info .item-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: auto;
}

.item-modal-info .item-actions .btn {
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.purchase-links .btn {
  justify-content: center;
}

.item-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 2px solid var(--border-color);
}

.location-modal-footer .btn {
  min-width: 140px;
}

.btn-view-details {
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-view-details:hover {
  background: var(--primary-color);
  color: white;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.wishlist-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.wishlist-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.wishlist-card-actions .btn {
  width: 100%;
  justify-content: center;
}

.empty-state .btn {
  margin-top: var(--spacing-md);
}

.item-actions-large {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-actions-large .btn {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.btn-filter {
  padding: 0.75rem 1.5rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.btn-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-filter.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
}

.technique-content {
  padding: var(--spacing-md);
}

.technique-content .btn {
  width: 100%;
  margin-top: var(--spacing-sm);
}

.post-actions {
  display: flex;
  gap: var(--spacing-md);
}

.post-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.post-actions button:hover {
  color: var(--primary-color);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon:hover {
  background: white;
  transform: scale(1.1);
}

.btn-icon.btn-delete {
  color: #ef4444;
}

.btn-icon.btn-delete:hover {
  background: #fee;
  color: #dc2626;
}

.btn-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 119, 190, 0.4);
  z-index: 999;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease;
}

.btn-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 119, 190, 0.5);
}

.btn-float i {
  font-size: 1.2rem;
}

to {
  transform: translateY(0);
  opacity: 1;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}