﻿.scanner-page {
    max-width: 420px;
    margin: auto;
    font-family: Arial;
    text-align: center;
    padding: 20px;
}

/* Header */
.header h1 {
    margin: 0;
    font-size: 26px;
}

.header p {
    color: gray;
    margin-bottom: 20px;
}

/* Camera */
.camera-card {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: black;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

    .camera-card video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Scan frame animation */
.scan-frame {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    border: 2px solid #00ff88;
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,255,136,0.5);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(0,255,136,0);
    }
}

/* Buttons */
.buttons {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn.start {
        background: #28a745;
        color: white;
    }

    .btn.stop {
        background: #dc3545;
        color: white;
    }

    .btn:hover {
        transform: scale(1.05);
    }

/* Result */
.result-card {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .result-card p {
        font-size: 18px;
        font-weight: bold;
    }
