/* Button Styles - Extracted from login.css */

/* Theme Toggle Button */
.theme-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  box-shadow:
    0 4px 12px var(--shadow-light),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.theme-btn:hover::before {
  left: 100%;
}

.theme-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 20px var(--shadow-medium),
    0 0 20px rgba(135, 206, 250, 0.3);
}

.theme-btn .moon-icon {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary) !important;
}

.theme-btn .sun-icon {
    display: none;
    font-size: 1.2rem;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .theme-btn .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-btn .moon-icon {
    display: none;
    color: var(--text-primary) !important;
}

/* Back Button */
.back-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  box-shadow:
    0 4px 12px var(--shadow-light),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 20px var(--shadow-medium),
    0 0 20px rgba(135, 206, 250, 0.3);
}

/* Scroll Navigation Buttons */
.scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  box-shadow:
    0 4px 12px var(--shadow-light),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.scroll-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 6px 20px var(--shadow-medium),
    0 0 20px rgba(135, 206, 250, 0.3);
}

.scroll-nav.prev {
  left: 10px;
}

.scroll-nav.next {
  right: 10px;
}

.scroll-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Primary and Secondary Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--rainbow-blue);
  background: rgba(135, 206, 250, 0.1);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--rainbow-blue);
  background: rgba(135, 206, 250, 0.1);
}

/* Normal Button Styling */
.btn-normal {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-normal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--rainbow-blue);
  background: rgba(135, 206, 250, 0.1);
}

/* Password Step Action Buttons */
.password-step-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-step-actions .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.password-step-actions .btn-secondary:hover {
  background: var(--border-color);
}

.password-step-actions .btn-primary {
  background: var(--rainbow-blue);
  color: white;
}

.password-step-actions .btn-primary:hover {
  background: var(--rainbow-indigo);
  transform: translateY(-1px);
}

/* Decision Buttons */
.decision-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.decision-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(135, 206, 250, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.decision-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px var(--shadow-medium),
    0 0 20px rgba(135, 206, 250, 0.3);
  border-color: var(--rainbow-blue);
}

.decision-btn:hover::before {
  transform: translateX(100%);
}

.decision-btn.primary {
  border-color: var(--glass-border);
}

.decision-btn.secondary {
  border-color: var(--glass-border);
}

.decision-btn i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-primary);
}

.decision-btn span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.decision-btn small {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
}

/* Choice Option Buttons */
.choice-option {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.choice-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(135, 206, 250, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.choice-option:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px var(--shadow-medium),
    0 0 20px rgba(135, 206, 250, 0.3);
  border-color: var(--rainbow-blue);
}

.choice-option:hover::before {
  transform: translateX(100%);
}

/* Search Button */
.search-btn {
  padding: 0.75rem 1rem;
  background: var(--rainbow-blue);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--rainbow-indigo);
  transform: scale(1.05);
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(135, 206, 250, 0.3);
}

/* Add Account Button */
.add-account {
  font-size: 24px;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  position: relative;
}

/* Popup Menu Buttons */
.popup-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  margin: 5px 0;
}

.popup-menu button:hover {
  background-color: #0056b3;
}

/* Close Button (Modal) */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.login-button:hover {
  background-color: #0056b3;
}

/* Exit Button */
.exit-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.exit-btn:hover {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* Delete Account Button */
.delete-account-btn {
  position: absolute;
  top: -14px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(48, 28, 30, 0.95);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0;
}

.account-card-wrapper:hover .delete-account-btn {
  display: flex;
}

/* Delete Confirmation Buttons */
.delete-confirm-btn,
.delete-cancel-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.delete-confirm-btn {
  background: #ef4444;
  color: white;
}

.delete-confirm-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.delete-cancel-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.delete-cancel-btn:hover {
  background: var(--border-color);
}

/* Custom Popup Close Button */
.custom-popup-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-popup-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Responsive Button Styles */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .theme-toggle,
  .back-button {
    top: 1rem;
  }

  .theme-toggle {
    right: 1rem;
  }

  .back-button {
    left: 1rem;
  }

  .decision-buttons {
    gap: 1rem;
  }

  .decision-btn {
    padding: 1.5rem;
  }

  .search-actions button {
    width: 100%;
  }

  .password-step-actions button {
    width: 100%;
  }

  .password-step-content .password-step-actions button {
    width: 100%;
  }

  .modal-actions .btn-secondary,
  .modal-actions .btn-primary {
    flex: 1;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .scroll-nav {
    width: 36px;
    height: 36px;
  }

  .scroll-nav.prev {
    left: 0.5rem;
  }

  .scroll-nav.next {
    right: 0.5rem;
  }
}

/* ===== BUTTONS EXTRACTED FROM WATCH.CSS ===== */

/* Navigation Buttons - Return/Previous Button */
#prev, .return-btn {
  position: fixed;
  width: 38px;
  height: 38px;
  left: 20px;
  top: 40px;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: normal;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Light theme adjustments for return button */
[data-theme="light"] #prev,
[data-theme="light"] .return-btn {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#prev:hover, .return-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Light theme hover adjustments */
[data-theme="light"] #prev:hover,
[data-theme="light"] .return-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#prev i, .return-btn i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* Theme-aware color for return button icon */
[data-theme="light"] #prev i,
[data-theme="light"] .return-btn i {
  color: rgba(0, 0, 0, 0.9);
}

/* Next History Button - positioned next to prev button */
#next-history {
  position: fixed;
  width: 38px;
  height: 38px;
  left: 68px; /* Position it to the right of prev button (20px + 38px + 10px gap) */
  top: 40px;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: normal;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#next-history:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#next-history i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* Hidden state for navigation buttons - completely hidden, no hover override */
#prev.hidden,
#next-history.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-15px) scale(0.8);
  visibility: hidden;
}

/* Floating Action Button - Left Bottom Corner */
.floating-action-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
}

.floating-action-button:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.floating-action-button:active {
  transform: translateY(0) scale(0.95);
  transition: all 0.1s ease;
}

.floating-action-button i {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
}

/* Auto-hide functionality for floating elements */
.floating-action-button,
.floating-action-menu,
.info-popup {
  transition: opacity 1.8s ease, transform 1.8s ease;
}

/* Hide floating elements after inactivity */
.floating-action-button.hidden,
.floating-action-menu.hidden,
.info-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transition: all 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-action-button.hidden {
  transform: translateY(20px) scale(0.8);
}

.floating-action-menu.hidden {
  transform: translateY(30px) scale(0.6) rotate(-15deg);
}

.info-popup.hidden {
  transform: translateX(-20px) scale(0.9);
}

/* Show floating elements on hover (but NOT navigation buttons) */
main:hover .floating-action-button.hidden,
main:hover .floating-action-menu.hidden,
main:hover .info-popup.hidden {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Mobile Responsive Styles for Watch Page Buttons */
@media (max-width: 768px) {
  .floating-action-button {
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
  }
  
  .floating-action-button i {
    font-size: 20px;
  }

  #prev, .return-btn {
    left: 15px;
    top: 75px;
    width: 35px;
    height: 35px;
  }

  #prev i, .return-btn i {
    font-size: 14px;
  }
  
  /* Next History Button mobile positioning */
  #next-history {
    left: 60px; /* Adjusted for mobile (15px + 35px + 10px gap) */
  }
}