.scanner-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  zxing-scanner {
    width: 100%;
    height: 100%;
  }

  .scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;

    .scan-frame {
      width: 250px;
      height: 250px;
      border: 2px solid white;
      border-radius: 20px;
      box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5);
      position: relative;

      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--ion-color-secondary);
        box-shadow: 0 0 10px var(--ion-color-secondary);
        animation: scan 2s linear infinite;
      }
    }

    .scan-text {
      color: white;
      margin-top: 24px;
      font-weight: 500;
      text-align: center;
      padding: 0 40px;
    }
  }

  .camera-toggle-container {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }

  .camera-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    outline: none;

    &:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    &:active {
      background: rgba(255, 255, 255, 0.35);
      transform: scale(0.96);
      box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.37);
    }

    ion-icon {
      font-size: 20px;
    }
  }

  .ipad-warning-container {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: white;
    z-index: 10;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    ion-icon {
      font-size: 24px;
      color: var(--ion-color-secondary);
      flex-shrink: 0;
      margin-top: 2px;
    }

    p {
      margin: 0;
      font-family: 'Outfit', sans-serif;
      font-size: 0.82rem;
      line-height: 1.45;
      font-weight: 500;
      text-align: left;
      
      strong {
        color: var(--ion-color-secondary);
        font-weight: 700;
      }
    }
  }
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}
