/* ===== FULLSCREEN BARCODE DISPLAY ===== */

#barcode-display-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

#barcode-display-overlay.active {
    opacity: 1;
}

.barcode-display-content {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.barcode-container {
    width: 90%;
    max-width: 500px;
}

.barcode-container svg {
    width: 100% !important;
    height: auto !important;
    max-width: 500px;
}

/* Error display */
.barcode-error {
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.barcode-error p {
    margin: 0.5rem 0;
}

.error-detail {
    font-size: 0.9rem;
    color: #ccc;
    font-family: monospace;
}

.error-hint {
    font-size: 0.85rem;
    color: #ff6b6b;
    margin-top: 1rem;
    font-style: italic;
}

/* ===== BARCODE ICON BUTTON ===== */

.barcode-icon-btn {
background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #666;
    display: block;
    position: absolute;
    right: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.barcode-icon-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.barcode-icon-btn:active {
    transform: scale(0.95);
}

.barcode-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Barcode item styling */
.item.barcode {
    /* Optional: Add visual indicator that item has barcode */
}

.item.barcode .item-content {
    /* Optional: Style barcode item content differently */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .barcode-container {
        width: 95%;
    }
    
    .barcode-display-content {
        padding: 1rem;
    }
    
    .barcode-icon-btn {
        padding: 0.35rem;
    }
}

/* Landscape mode */
@media (max-height: 500px) {
    .barcode-container {
        max-width: 400px;
    }
}
