/* static/css/scanner.css */
/* Стили только для страницы сканирования */

.scanner-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.scanner-device {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.scanner-screen {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}

.scanner-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.scanner-crosshair::before,
.scanner-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(200, 149, 106, 0.8);
}

.scanner-crosshair::before {
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 2px); }
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #C8956A;
    border-style: solid;
}

.corner-tl { top: -1px; left: -1px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.corner-tr { top: -1px; right: -1px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.scanner-hint {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 0.875rem;
}

.scanner-hint i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #C8956A;
}

.manual-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.manual-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.manual-input-group {
    display: flex;
    gap: 1rem;
}

.manual-input-group input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 2px solid #E8D5C4;
    border-radius: 50px;
    font-size: 1.125rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.3s ease;
}

.manual-input-group input:focus {
    outline: none;
    border-color: #C8956A;
    box-shadow: 0 0 0 4px rgba(200, 149, 106, 0.1);
}

.manual-input-group button {
    white-space: nowrap;
    padding: 0.875rem 2rem;
    background: #C8956A;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manual-input-group button:hover {
    background: #A8754A;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .manual-input-group {
        flex-direction: column;
    }

    .scanner-crosshair {
        width: 150px;
        height: 150px;
    }
}