/* Revivify AI Premium Aesthetics */

:root {
  --revivify-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --revivify-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --revivify-glass: rgba(255, 255, 255, 0.7);
  --revivify-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.premium-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--revivify-shadow) !important;
}

.glass-panel {
  background: var(--revivify-glass) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.gradient-text {
  background: var(--revivify-emerald);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.usage-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #E5E7EB;
  overflow: hidden;
}

.usage-progress-active {
  height: 100%;
  background: var(--revivify-emerald);
  transition: width 1s ease-in-out;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.micro-interaction {
  transition: transform 0.2s ease;
}

.micro-interaction:active {
  transform: scale(0.95);
}

/* Custom shadow depth */
.revivify-depth-1 { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
.revivify-depth-2 { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); }
.revivify-depth-3 { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); }

/* Stacked Action Buttons styling */
.full-width-button {
  width: 100px;
}

.full-width-button button {
  width: 100% !important;
  min-height: 24px !important;
  height: 24px !important;
  padding: 2px 4px !important;
  font-size: 10px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Custom button colors */
.approve-btn button {
  background: #008060 !important; /* Shopify Success Green */
  border-color: #008060 !important;
  color: white !important;
}

.retry-ai-btn button {
  background: #FF8C00 !important; /* Dark Orange */
  border-color: #FF8C00 !important;
  color: white !important;
}

.dismiss-btn button {
  background: #D72C0D !important; /* Shopify Critical Red */
  border-color: #D72C0D !important;
  color: white !important;
}

.full-width-button button:hover {
  filter: brightness(0.9);
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fab-bubble {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 13px;
  font-weight: 500;
  color: #202223;
  position: relative;
}

.fab-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

.fab-button {
  background: linear-gradient(90deg, #008060 0%, #00a077 100%);
  color: white !important;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 128, 96, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 128, 96, 0.4);
}

/* Custom Intent Badges */
.intent-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.intent-quality-damage { background-color: #FEE2E2; color: #991B1B; }
.intent-financial { background-color: #D1FAE5; color: #065F46; }
.intent-size-fit { background-color: #DBEAFE; color: #1E40AF; }
.intent-flavor-preference { background-color: #FEF3C7; color: #92400E; }
.intent-overstock { background-color: #F3E8FF; color: #6B21A8; }
.intent-unknown { background-color: #F3F4F6; color: #374151; }

/* Action Required Badge */
.action-required-badge {
  background-color: #FFEDD5;
  color: #9A3412;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Status Badges for Historical Saves */
.outcome-skip { background-color: #DCFCE7; color: #166534; }
.outcome-pause-save { background-color: #D1FAE5; color: #065F46; }
.outcome-pause-replace { background-color: #065F46; color: white; }
.outcome-dark-green { background-color: #065F46; color: white; }

/* Revenue Highlight */
.revenue-highlight {
  color: #059669;
  font-weight: 800;
}

.support-btn button {
  background: #008060 !important;
  border-color: #008060 !important;
  color: white !important;
}
