/* line 8, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

/* line 21, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* line 31, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 24px 32px;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease-out;
}

/* line 48, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__header {
  text-align: center;
  margin-bottom: 16px;
}

/* line 53, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* line 59, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__logo-image {
  height: 50px;
  width: auto;
  max-width: 100%;
  animation: logoPulse 2s ease-in-out infinite;
}

/* line 66, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

/* line 78, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-section {
  margin-bottom: 12px;
}

/* line 82, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-bar-container {
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 12px;
}

/* line 89, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* line 96, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* line 104, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-percentage {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
}

/* line 110, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* line 118, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.5s ease-out;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* line 126, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

/* line 142, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__progress-fill.progress-updating {
  animation: pulseProgress 0.3s ease-out;
}

/* line 151, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__documents {
  margin-bottom: 12px;
}

/* line 155, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__documents-title {
  font-size: 13px;
  font-weight: 600;
  color: #141c25;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* line 165, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__documents-count {
  font-size: 13px;
  font-weight: 500;
  color: #637083;
  background: #f2f4f7;
  padding: 2px 8px;
  border-radius: 10px;
}

/* line 173, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__documents-count .count-updated {
  animation: pulseScale 0.3s ease-out;
}

/* line 182, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__doc-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px;
}

/* line 190, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
  position: relative;
  animation: docFadeIn 0.3s ease-out both;
}

/* line 200, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon--analyzing .doc-icon__file svg {
  stroke: #2E7FD8;
  animation: docPulse 1.5s ease-in-out infinite;
}

/* line 207, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon--success .doc-icon__file svg {
  stroke: #10B981;
}

/* line 210, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon--success .doc-icon__status {
  background: #10B981;
  animation: statusPop 0.3s ease-out;
}

/* line 217, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon--failed .doc-icon__file svg {
  stroke: #EF4444;
  opacity: 0.7;
}

/* line 221, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon--failed .doc-icon__status {
  background: #EF4444;
}

/* line 227, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon__file {
  width: 32px;
  height: 38px;
  position: relative;
}

/* line 232, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon__file svg {
  width: 100%;
  height: 100%;
  stroke: #e4e7ec;
  fill: #f9fafb;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

/* line 241, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon__status {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* line 254, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon__status svg {
  width: 8px;
  height: 8px;
  stroke: white;
}

/* line 261, app/assets/stylesheets/onboarding_welcome.scss */
.doc-icon__name {
  font-size: 8px;
  font-weight: 500;
  color: #637083;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

@keyframes docPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@keyframes statusPop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* line 318, app/assets/stylesheets/onboarding_welcome.scss */
.document-card__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #e2e8f0;
  border-top-color: #2E7FD8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* line 331, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__case-analysis {
  margin-bottom: 12px;
}

/* line 335, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

/* line 345, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status--pending {
  border-color: #e2e8f0;
  background: #f8fafc;
}

/* line 350, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status--analyzing {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #fafafe 0%, #EFF6FF 100%);
}

/* line 355, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status--success {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* line 360, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status--warning {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* line 365, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status--failed {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

/* line 371, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* line 384, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__content {
  flex: 1;
}

/* line 388, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

/* line 395, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__message {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* line 402, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__loader {
  flex-shrink: 0;
}

/* line 406, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* line 420, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__button:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* line 426, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__button:active {
  transform: translateY(0);
}

/* line 431, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__skip {
  flex-shrink: 0;
  text-align: center;
  margin-left: auto;
}

/* line 437, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__skip-link {
  display: inline-block;
  color: #2E7FD8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 16px;
  border: 2px solid #2E7FD8;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* line 450, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__skip-link:hover {
  background: #2E7FD8;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 127, 216, 0.3);
}

/* line 457, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__skip-link:active {
  transform: translateY(0);
}

/* line 462, app/assets/stylesheets/onboarding_welcome.scss */
.case-analysis-status__skip-note {
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}

/* line 473, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__tips {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

/* line 481, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__tip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  flex: 1;
}

/* line 492, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__tip-icon {
  width: 16px;
  height: 16px;
  color: #2E7FD8;
  flex-shrink: 0;
}

/* line 499, app/assets/stylesheets/onboarding_welcome.scss */
.welcome-overlay__tip-text {
  font-size: 11px;
  color: #475569;
  margin: 0;
  line-height: 1.3;
}

/* line 510, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-highlight {
  position: absolute;
  border: 3px solid #1e6fc8;
  border-radius: 8px;
  pointer-events: none;
  z-index: 9998;
  animation: tutorialPulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 99999px rgba(0, 0, 0, 0.5);
}

/* line 519, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-highlight--fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* line 524, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: tooltipFadeIn 0.3s ease-out;
}

/* line 534, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip--fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* line 539, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__content {
  position: relative;
}

/* line 543, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

/* line 550, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__message {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* line 557, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* line 564, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__skip {
  background: transparent;
  border: none;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* line 574, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__skip:hover {
  background: #f7fafc;
  color: #4b5563;
}

/* line 580, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* line 586, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__progress {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

/* line 592, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__next,
.tutorial-tooltip__finish {
  background: #1e6fc8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* line 604, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__next:hover,
.tutorial-tooltip__finish:hover {
  background: #1e6fc8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 127, 216, 0.3);
}

/* line 611, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip__arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

/* line 619, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip--top .tutorial-tooltip__arrow {
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
}

/* line 625, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip--bottom .tutorial-tooltip__arrow {
  top: -6px;
  left: 50%;
  margin-left: -6px;
}

/* line 631, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip--left .tutorial-tooltip__arrow {
  right: -6px;
  top: 50%;
  margin-top: -6px;
}

/* line 637, app/assets/stylesheets/onboarding_welcome.scss */
.tutorial-tooltip--right .tutorial-tooltip__arrow {
  left: -6px;
  top: 50%;
  margin-top: -6px;
}

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

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

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

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

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

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes pulseProgress {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

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

@keyframes successPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tutorialPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

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

/* line 764, app/assets/stylesheets/onboarding_welcome.scss */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: #1e6fc8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* line 772, app/assets/stylesheets/onboarding_welcome.scss */
.spinner--small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@media (max-width: 768px) {
  /* line 784, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__content {
    padding: 28px 20px;
    max-height: 95vh;
    border-radius: 16px;
  }
  /* line 790, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__title {
    font-size: 22px;
  }
  /* line 794, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__subtitle {
    font-size: 13px;
  }
  /* line 798, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__documents-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  /* line 803, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__progress-bar-container {
    padding: 12px 16px;
  }
  /* line 807, app/assets/stylesheets/onboarding_welcome.scss */
  .document-card {
    padding: 10px;
  }
  /* line 811, app/assets/stylesheets/onboarding_welcome.scss */
  .document-card__title {
    font-size: 11px;
  }
  /* line 815, app/assets/stylesheets/onboarding_welcome.scss */
  .case-analysis-status {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  /* line 822, app/assets/stylesheets/onboarding_welcome.scss */
  .case-analysis-status__icon {
    margin: 0 auto 8px;
  }
  /* line 826, app/assets/stylesheets/onboarding_welcome.scss */
  .tutorial-tooltip {
    max-width: calc(100vw - 40px);
    padding: 20px;
  }
}

@media (max-width: 480px) {
  /* line 833, app/assets/stylesheets/onboarding_welcome.scss */
  .welcome-overlay__documents-grid {
    grid-template-columns: 1fr;
  }
}
