/* Glassmorphism UI with Purple Tones */
:root {
  --primary-purple: #8B5CF6;
  --secondary-purple: #A855F7;
  --light-purple: #C4B5FD;
  --dark-purple: #5B21B6;
  --accent-purple: #DDD6FE;
  --glass-bg: rgba(139, 92, 246, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --text-primary: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #CBD5E1;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Background Elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(196, 181, 253, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px 0 rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Header Styling */
.main-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
}

.main-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.logo-container {
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.logo-container img {
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transform: scale(2.0);
  transition: transform 0.3s ease;
}

/* Mobile-specific logo sizing */
@media (max-width: 768px) {
  .logo-container img {
    transform: scale(2.0);
    margin: 20px 0;
  }
  
  .logo-container {
    margin-bottom: 2rem;
  }
}

/* Company branding styles */
.company-branding {
  text-align: center;
  padding: 10px 0;
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.company-branding p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Enhanced Button Styling with Soft Micro-Interactions */
.glass-btn {
  background: rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: var(--text-primary);
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 4px 15px 0 rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateZ(0);
}

.glass-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.6s ease;
}

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

.glass-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px 0 rgba(139, 92, 246, 0.5),
    0 2px 8px 0 rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
}

.glass-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 4px 12px 0 rgba(139, 92, 246, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.glass-btn:focus {
  outline: none;
  box-shadow: 
    0 4px 15px 0 rgba(139, 92, 246, 0.3),
    0 0 0 3px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-btn-primary {
  background: rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.6);
}

.glass-btn-primary:hover {
  background: rgba(139, 92, 246, 0.65);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 30px 0 rgba(139, 92, 246, 0.6),
    0 4px 12px 0 rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Soft pulse animation for important buttons */
.glass-btn-pulse {
  animation: softPulse 3s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 
      0 4px 15px 0 rgba(139, 92, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 20px 0 rgba(139, 92, 246, 0.4),
      0 0 0 2px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

/* Ripple effect for button clicks */
.glass-btn-ripple {
  position: relative;
  overflow: hidden;
}

.glass-btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.glass-btn-ripple:active::after {
  width: 300px;
  height: 300px;
  transition: width 0.1s, height 0.1s;
}

/* Specialized Button Types with Soft Micro-Interactions */

/* Small/Compact buttons for toolbars and controls */
.glass-btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-btn-sm:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 
    0 6px 18px 0 rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icon buttons with circular design */
.glass-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.glass-btn-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 8px 25px 0 rgba(139, 92, 246, 0.5),
    0 0 0 3px rgba(139, 92, 246, 0.2);
}

.glass-btn-icon:active {
  transform: scale(0.95) rotate(-2deg);
  transition: all 0.1s ease;
}

/* Success/positive action buttons */
.glass-btn-success {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86EFAC;
}

.glass-btn-success:hover {
  background: rgba(34, 197, 94, 0.3);
  color: #DCFCE7;
  box-shadow: 
    0 8px 25px 0 rgba(34, 197, 94, 0.4),
    0 2px 8px 0 rgba(34, 197, 94, 0.2);
}

/* Warning/caution buttons */
.glass-btn-warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.glass-btn-warning:hover {
  background: rgba(245, 158, 11, 0.3);
  color: #FEF3C7;
  box-shadow: 
    0 8px 25px 0 rgba(245, 158, 11, 0.4),
    0 2px 8px 0 rgba(245, 158, 11, 0.2);
}

/* Danger/destructive action buttons */
.glass-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.glass-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #FEE2E2;
  box-shadow: 
    0 8px 25px 0 rgba(239, 68, 68, 0.4),
    0 2px 8px 0 rgba(239, 68, 68, 0.2);
  transform: translateY(-2px) scale(1.02);
}

/* Loading state for buttons */
.glass-btn-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.glass-btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.8);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toggle/switch style buttons */
.glass-btn-toggle {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-btn-toggle.active {
  background: rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 
    0 4px 15px 0 rgba(139, 92, 246, 0.5),
    inset 0 2px 4px rgba(139, 92, 246, 0.3);
  transform: scale(0.96);
}

.glass-btn-toggle.active:hover {
  transform: scale(0.98);
  box-shadow: 
    0 6px 20px 0 rgba(139, 92, 246, 0.6),
    inset 0 2px 4px rgba(139, 92, 246, 0.4);
}

/* Floating action button style */
.glass-btn-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: fabFloat 4s ease-in-out infinite;
}

.glass-btn-fab:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 
    0 12px 35px 0 rgba(139, 92, 246, 0.6),
    0 0 0 4px rgba(139, 92, 246, 0.2);
}

@keyframes fabFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sophisticated hover animations for different button sizes */
.glass-btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-btn-lg:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 35px 0 rgba(139, 92, 246, 0.5),
    0 4px 15px 0 rgba(139, 92, 246, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Form Elements */
.glass-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* File Upload Area */
.file-upload-area {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(139, 92, 246, 0.5);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
}

.file-upload-area.dragover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--light-purple);
  transform: scale(1.02);
}

/* Results Section */
.results-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
}

.content-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Tags */
.tag {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Copy Button */
.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* Alert Styling */
.alert {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
}

.alert-danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.alert-info {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
}

/* Statistics Cards */
.stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.stats-card i {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-card h3 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 2.5rem;
  margin: 1rem 0;
}

/* Table Styling */
.table {
  color: var(--text-secondary);
  background: transparent;
}

.table thead th {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-weight: 600;
}

.table tbody td {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08);
}

/* Badge Styling */
.badge {
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 500;
}

.bg-success {
  background: rgba(34, 197, 94, 0.8) !important;
}

.bg-danger {
  background: rgba(239, 68, 68, 0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2.5rem;
  }
  
  .glass-form {
    padding: 1.5rem;
  }
  
  .file-upload-area {
    padding: 2rem 1rem;
  }
}

/* Animation for floating elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Scroll styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.8);
}

/* Additional Glassmorphic Components */
.glass-alert {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInDown 0.5s ease-out;
}

.glass-alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.glass-alert-success { border-color: rgba(34, 197, 94, 0.5); color: rgb(34, 197, 94); }
.glass-alert-error { border-color: rgba(239, 68, 68, 0.5); color: rgb(239, 68, 68); }
.glass-alert-warning { border-color: rgba(245, 158, 11, 0.5); color: rgb(245, 158, 11); }
.glass-alert-info { border-color: rgba(59, 130, 246, 0.5); color: rgb(59, 130, 246); }

.glass-close-btn {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
}

.glass-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.glass-file-upload {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-file-upload:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.glass-file-upload:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.glass-file-upload:hover:before {
  left: 100%;
}

.glass-header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(168, 85, 247, 0.8));
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-header-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 127, 0.8));
}

.glass-list {
  list-style: none;
  padding: 0;
}

.glass-list li {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.glass-list li:hover {
  transform: translateX(5px);
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.1);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glassmorphic Tooltips */
.glass-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  max-width: 300px;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-tooltip:before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.glass-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glass-tooltip.top {
  transform-origin: bottom center;
}

.glass-tooltip.top:before {
  bottom: -6px;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  border-bottom: none;
}

.glass-tooltip.bottom {
  transform-origin: top center;
}

.glass-tooltip.bottom:before {
  top: -6px;
  bottom: auto;
  border-bottom: 6px solid rgba(0, 0, 0, 0.9);
  border-top: none;
}

/* Tooltip trigger elements */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover .glass-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Enhanced hover effects for tooltip-enabled elements */
.tooltip-enhanced {
  transition: all 0.3s ease;
}

.tooltip-enhanced:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Pulse animation for important tooltips */
@keyframes tooltipPulse {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  50% { 
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  }
}

.glass-tooltip.pulse {
  animation: tooltipPulse 2s infinite;
}

/* Context-specific tooltip styles */
.glass-tooltip.success {
  background: rgba(34, 197, 94, 0.9);
  border-color: rgba(34, 197, 94, 0.3);
}

.glass-tooltip.success:before {
  border-top-color: rgba(34, 197, 94, 0.9);
  border-bottom-color: rgba(34, 197, 94, 0.9);
}

.glass-tooltip.warning {
  background: rgba(245, 158, 11, 0.9);
  border-color: rgba(245, 158, 11, 0.3);
  color: #000;
}

.glass-tooltip.warning:before {
  border-top-color: rgba(245, 158, 11, 0.9);
  border-bottom-color: rgba(245, 158, 11, 0.9);
}

.glass-tooltip.info {
  background: rgba(59, 130, 246, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

.glass-tooltip.info:before {
  border-top-color: rgba(59, 130, 246, 0.9);
  border-bottom-color: rgba(59, 130, 246, 0.9);
}

/* AI Tools Styling */
.glass-btn-secondary {
  background: rgba(88, 50, 140, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.glass-btn-secondary:hover {
  background: rgba(88, 50, 140, 0.4);
  border-color: rgba(139, 92, 246, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.trending-tag {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: trendingPulse 2s infinite;
}

.trending-tag:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.4));
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.05);
}

@keyframes trendingPulse {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
  }
  50% { 
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  }
}

#toneVariationsResults,
#hashtagTrendsResults {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vizzi Mascot Hero Section */
.vizzi-mascot-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.mascot-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.vizzi-mascot-large {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 8px 32px rgba(138, 43, 226, 0.3));
}

.vizzi-mascot-large svg {
  width: 100%;
  height: 100%;
}

.mascot-speech-bubble {
  background: rgba(103, 126, 234, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px 20px 20px 5px;
  padding: 1rem 1.5rem;
  color: white;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

.mascot-speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(103, 126, 234, 0.95) transparent transparent;
}

/* Mascot SVG Animations */
.mascot-aura {
  animation: mascotGlow 4s ease-in-out infinite;
}

.mascot-body, .mascot-head {
  animation: mascotFloat 3s ease-in-out infinite;
}

.eye-pupil {
  animation: eyeBlink 6s infinite;
}

.magic-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

.magic-sparkle.sparkle-1 { animation-delay: 0s; }
.magic-sparkle.sparkle-2 { animation-delay: 0.5s; }
.magic-sparkle.sparkle-3 { animation-delay: 1s; }
.magic-sparkle.sparkle-4 { animation-delay: 1.5s; }

.wand {
  animation: wandWave 3s ease-in-out infinite;
}

.circuit-pattern {
  animation: circuitPulse 3s ease-in-out infinite;
}

@keyframes mascotGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes wandWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Mobile responsive for mascot */
@media (max-width: 768px) {
  .mascot-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .vizzi-mascot-large {
    width: 120px;
    height: 120px;
  }
  
  .mascot-speech-bubble {
    max-width: 250px;
    text-align: center;
  }
  
  .mascot-speech-bubble::before {
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent rgba(103, 126, 234, 0.95) transparent;
  }
}
