/* NiceAppBro Custom Theme */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Brand Colors */
    --color-primary: #4b8797;
    --color-primary-light: #6699a6;
    --color-primary-lighter: #9cbfc4;
    --color-secondary: #10b981;
    --color-accent: #2d3748;
    
    /* State Colors */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f0f8ff;
    --color-bg-accent: #f8fafc;
    
    /* Chart Colors */
    --color-chart-success: rgb(128, 255, 165);
    --color-chart-danger: rgb(255, 99, 99);
    --color-chart-danger-dark: rgb(220, 38, 38);
    --color-chart-primary: rgb(1, 191, 236);
  }
  
}

/* Component Classes */
  /* Button Components */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
  }
  
  .btn-primary:hover {
    transform: scale(1.05);
  }
  
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    background-color: var(--color-secondary);
    color: white;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
  }
  
  .btn-secondary:hover {
    transform: scale(1.05);
  }
  
  .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    transition: all 0.3s;
    text-decoration: none;
  }
  
  .btn-outline-primary:hover {
    background-color: #f9fafb;
  }
  
  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    background-color: var(--color-secondary);
    color: white;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-size: 1.125rem;
  }
  
  .btn-cta:hover {
    transform: scale(1.05);
  }
  
  .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    background-color: white;
    color: black;
    border: 2px solid white;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-size: 1.125rem;
    text-decoration: none;
  }
  
  .btn-cta-primary:hover {
    transform: scale(1.05);
  }
  
  .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    font-size: 1.125rem;
    text-decoration: none;
  }
  
  .btn-cta-secondary:hover {
    background-color: white;
    color: #374151;
  }
  
  /* Text Components */
  .text-primary {
    color: var(--color-primary);
  }
  
  .text-primary-light {
    color: var(--color-primary-light);
  }
  
  .text-accent {
    color: var(--color-accent);
  }
  
  .text-success {
    color: var(--color-success);
  }
  
  .text-danger {
    color: var(--color-danger);
  }
  
  /* Background Components */
  .bg-primary {
    background-color: var(--color-primary);
  }
  
  .bg-primary-light {
    background-color: var(--color-primary-light);
  }
  
  .bg-secondary {
    background-color: var(--color-secondary);
  }
  
  .bg-section-primary {
    background-color: var(--color-bg-primary);
  }
  
  .bg-section-secondary {
    background-color: var(--color-bg-secondary);
  }
  
  .bg-section-accent {
    background-color: var(--color-bg-accent);
  }
  
  /* Border Components */
  .border-primary {
    border-color: var(--color-primary);
  }
  
  .border-secondary {
    border-color: var(--color-secondary);
  }
  
  .border-success {
    border-color: var(--color-success);
  }
  
  .border-danger {
    border-color: var(--color-danger);
  }
  
  /* Timeline Components */
  .timeline-card-diy {
    background-color: #fef2f2;
    border: 2px solid var(--color-danger);
  }
  
  .timeline-card-yoink {
    border: 2px solid var(--color-primary);
    background: rgba(75, 135, 151, 0.1);
  }
  
  .timeline-card-success {
    background-color: #f0fdf4;
    border: 2px solid var(--color-success);
  }
  
  .timeline-card-neutral {
    background-color: #f9fafb;
    border: 2px dashed #9ca3af;
  }
  
  
  /* Pricing Components */
  .pricing-card {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 2px solid #e5e7eb;
  }
  
  .pricing-card-featured {
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
  }
}

/* Custom Timeline Styles */
.timeline-container {
  position: relative;
  padding: 2rem;
  min-height: 500px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #e5e7eb;
  top: 60px;
  bottom: 0;
}

.timeline-line-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary-lighter));
  top: 60px;
  height: 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(102, 153, 166, 0.5);
}

.timeline-start-node {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: white;
  border: 4px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 0 30px rgba(102, 153, 166, 0.4);
  animation: pulse 2s infinite;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 16px;
  height: 16px;
  background: var(--color-primary-light);
  border: 3px solid var(--color-secondary);
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  box-shadow: 0 0 20px rgba(102, 153, 166, 0.6);
}

.timeline-label {
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-lighter));
  color: white;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 15;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
  box-shadow: 0 4px 15px rgba(102, 153, 166, 0.4);
}

.timeline-label.milestone {
  background: linear-gradient(135deg, var(--color-success), var(--color-success-light));
}