/* ROI Calculator - Modern Salesforce Agentforce-Inspired Design */
/* Blue Gradient Theme from Vuexy Dashboard */

:root {
  /* Primary Blue Gradients */
  --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #0EA5E9 100%);
  --gradient-header: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #0EA5E9 100%);
  --gradient-light: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #E0F2FE 100%);
  
  /* Solid Colors */
  --primary-blue: #3B82F6;
  --secondary-blue: #0EA5E9;
  --dark-blue: #1E40AF;
  --light-blue: #DBEAFE;
  --white: #FFFFFF;
  
  /* Shadows & Effects */
  --card-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
  --card-shadow-hover: 0 16px 48px rgba(59, 130, 246, 0.25);
  --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --emboss-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section with Gradient Background */
.roi-hero-section {
  background: linear-gradient(135deg, #3B82F6 0%, #0EA5E9 100%) !important;
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  min-height: 400px;
}

/* Animated Gradient Top Line */
.gradient-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    #FFFFFF 20%,
    #60A5FA 50%,
    #FFFFFF 80%,
    transparent
  );
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Curved SVG Decoration */
.curve-decoration {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.curve-decoration svg {
  width: 100%;
  height: 100%;
}

/* Embossed Message Style */
.embossed-message {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 500;
  text-shadow: var(--text-shadow);
  margin-bottom: 1.5rem;
  opacity: 0.95;
  letter-spacing: -0.02em;
}

/* Large ROI Value Display */
.roi-value-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease;
  flex-wrap: wrap;
}

.currency-symbol {
  font-size: 3rem;
  font-weight: 600;
  color: var(--white);
  margin-right: 0.5rem;
  opacity: 0.9;
}

.roi-number {
  font-size: 4.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--emboss-shadow);
  letter-spacing: -0.03em;
  animation: pulseGlow 2s ease infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

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

/* ROI Subtitle */
.roi-subtitle {
  color: var(--white);
  font-size: 1.125rem;
  opacity: 0.9;
  text-align: center;
  margin-top: 1rem;
}

/* Process Breakdown Cards */
.process-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 100%;
}

.process-stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-base);
}

.process-stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.process-stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-stat-value {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Modern Process Cards */
.process-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-blue);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card.selected {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.process-card.selected::before {
  transform: scaleX(1);
}

/* Process Card Content */
.process-id {
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.process-name {
  color: #1F2937;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.process-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.process-kpi {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kpi-label {
  color: #6B7280;
  font-size: 0.75rem;
}

.kpi-value {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.875rem;
}

.process-model {
  background: var(--light-blue);
  color: var(--dark-blue);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Summary Card with Gradient Border */
.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.summary-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-blue);
}

/* Result Cards */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.08);
  transition: var(--transition-base);
  border: 1px solid #E5E7EB;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-blue);
}

.result-label {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.result-value {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Buttons with Gradient */
.btn-gradient {
  background: var(--gradient-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

/* Process Type Selector */
.process-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.process-type-btn {
  flex: 1;
  padding: 1rem;
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.process-type-btn:hover:not(.disabled) {
  border-color: var(--primary-blue);
  background: #F0F9FF;
}

.process-type-btn.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--card-shadow);
}

.process-type-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F9FAFB;
}

.type-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.type-count {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Charts Container */
.charts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.chart-title {
  color: #1F2937;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Form Inputs with Blue Theme */
.form-input,
.form-select {
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-base);
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Slider with Blue Theme */
.form-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  outline: none;
  transition: var(--transition-base);
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: var(--transition-base);
}

.form-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.5);
}

.form-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: var(--transition-base);
}

/* Adoption Ramp Options */
.ramp-options {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ramp-option {
  flex: 1;
  padding: 0.75rem;
  background: var(--white);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 500;
}

.ramp-option:hover {
  border-color: var(--primary-blue);
  background: #F0F9FF;
}

.ramp-option.active {
  background: var(--gradient-blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  .roi-number {
    font-size: 3.5rem;
  }
  
  .process-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roi-hero-section {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
  }
  
  .roi-number {
    font-size: 2.5rem;
  }
  
  .currency-symbol {
    font-size: 2rem;
  }
  
  .embossed-message {
    font-size: 1.125rem;
  }
  
  .process-breakdown {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .process-stat-card {
    padding: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-gradient,
  .btn-outline {
    width: 100%;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease;
}

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

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}