@import url("https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.6.2/cropper.min.css");

/* Navigation Bar Global Mapping */
body {
  padding-bottom: 90px;
}

.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(11, 17, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: #0ed3ff;
}

/* Global WebSocket Toasts */
#global-notifications {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 18px;
  width: 320px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.02);
  animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  #global-notifications {
    top: auto;
    bottom: 100px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    align-items: center;
  }
  
  .toast-notification {
    width: 100%;
    max-width: 350px;
  }
}

.challenge-toast {
  border-left: 4px solid #0ed3ff;
}

.decline-toast {
  border-left: 4px solid #ef4444;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-avatar,
.toast-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.toast-avatar-placeholder {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0ed3ff;
}

.toast-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.toast-actions {
  display: flex;
  gap: 10px;
}

.btn-toast-accept {
  flex: 1;
  text-align: center;
  background: #0ed3ff;
  color: #000;
  padding: 8px 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-toast-accept:hover {
  background: #fff;
}

.btn-toast-decline {
  flex: 1;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toast-decline:hover {
  background: rgba(239, 68, 68, 0.2);
}

.toast-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.toast-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

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

/* Global Kinetic Interfaces */
.hover-animate-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .hover-animate-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    z-index: 10;
  }
}

.hover-animate-card:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.hover-animate-btn,
.auth-btn,
.auth-btn-google {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {

  .hover-animate-btn:hover,
  .auth-btn:hover,
  .auth-btn-google:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    z-index: 10;
  }
}

.hover-animate-btn:active,
.auth-btn:active,
.auth-btn-google:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5) !important;
}

.hover-animate-card::after,
.hover-animate-btn::after,
.auth-btn::after,
.auth-btn-google::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  transform: translate(-10%, -10%);
}

@media (hover: hover) {

  .hover-animate-card:hover::after,
  .hover-animate-btn:hover::after,
  .auth-btn:hover::after,
  .auth-btn-google:hover::after {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.hover-animate-card:active::after,
.hover-animate-btn:active::after,
.auth-btn:active::after,
.auth-btn-google:active::after {
  opacity: 1;
  transform: translate(0, 0);
}

#global-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* -----------------[ Native Structural Hover CSS Definitions ]----------------- */
.btn-challenge:hover {
  transform: translateY(-2px);
}

.logout-btn:hover {
  color: #ef4444 !important;
}

.modal-close-btn:hover,
.hover-color-white:hover {
  color: #ffffff !important;
}

.category-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 182, 255, 0.4) !important;
}

.hover-bg-blue-transparent:hover {
  background: rgba(56, 182, 255, 0.05) !important;
}

.btn-clone-persona:hover {
  background: rgba(56, 182, 255, 0.1) !important;
}

.btn-update-engine:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.3) !important;
}

.hoverable-row {
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .hoverable-row:hover {
    background-color: rgba(56, 182, 255, 0.05) !important;
  }
}

@import "sparkle_button.css";


/* CSP-compliant hover states to replace inline JS event handlers */
.hover-icon-emerald:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.hover-icon-blue:hover {
  background: rgba(56, 182, 255, 0.2) !important;
  color: #38b6ff !important;
  border-color: rgba(56, 182, 255, 0.5) !important;
}

.hover-card-blue:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(56, 182, 255, 0.1) !important;
  border-color: rgba(56, 182, 255, 0.2) !important;
}

.hover-card-purple:hover {
  background: rgba(168, 85, 247, 0.05) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  transform: translateX(5px) !important;
}

.hover-btn-blue:hover {
  background: rgba(56, 182, 255, 0.1) !important;
}

.hover-btn-emerald:hover {
  background: rgba(16, 185, 129, 0.1) !important;
}

.hover-btn-purple:hover {
  background: rgba(168, 85, 247, 0.3) !important;
}

.hover-bg-white-subtle:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}

.hover-bg-white-10:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.hover-bg-white-20:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.hover-bg-white-08:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}