#scanner-container, #machine-scanner-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 480px;
    margin: 0 auto;
    border: 2px solid #ccc;
    background-color: #f8f9fa;
    overflow: hidden;
}

.barcode-controls {
    margin: 15px 0;
    text-align: center;
}

.barcode-controls button {
    margin: 0 5px;
    padding: 8px 16px;
}

#stop-scanner {
    display: none;
}

.scanner-result {
    margin: 10px 0;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.scanner-status {
    margin-top: 10px;
    padding: 5px;
    text-align: center;
    color: #495057;
    font-weight: bold;
}

.barcode-form {
    margin-top: 20px;
}

.barcode-instructions {
    margin-bottom: 20px;
    color: #6c757d;
}

.video-container {
    position: relative;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #28a745;
    z-index: 10;
}

.ticket-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.auto-submit-section {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Нови стилове за обновения изглед */
.scanner-area {
    margin-bottom: 20px;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 15px;
}

.btn-outline-primary,
.btn-outline-secondary {
    border-width: 1px;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    color: #fff;
}

.text-danger {
    font-size: 0.85rem;
    max-width: 220px;
    text-align: right;
}

@media (max-width: 768px) {
    .text-danger {
        font-size: 0.8rem;
        max-width: 160px;
    }
}

@media (max-width: 576px) {
    .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    .text-danger {
        text-align: left;
        max-width: 100%;
        margin-top: 5px;
    }
} 