@use '../../themes/index' as *;
@use '../../abstracts/index' as *;

/* 
  Initial loading screen styles
*/
.initial-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  .loading-content {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    h1 {
      font-size: 2.5rem;
      margin-bottom: 2rem;
      font-weight: var(--bold);
      color: var(--primary-color);
    }

    .loading-animation {
      margin: 1rem 0;

      // Spinner styles - thicker ring
      .spinner-ring {
        @include spinner-size(56px);
      }
    }

    .loading-message {
      font-size: 1rem;
      color: var(--text-secondary);
      margin: 0;
    }

    .loading-status-log {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      width: 100%;
      max-width: 400px;

      .status-line {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;

        &.active {
          background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);

          .status-step {
            color: var(--primary-color);
            font-weight: 600;
          }

          .status-text {
            color: var(--text-primary);
            font-weight: 600;
          }
        }

        .status-step {
          color: var(--text-secondary);
          font-family: 'Courier New', monospace;
          font-weight: 500;
          min-width: 3rem;
          text-align: left;
        }

        .status-text {
          color: var(--text-secondary);
          text-align: left;
          flex: 1;
        }
      }
    }
  }
}
