﻿.preview-container {
    position: relative;
    height: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00a3ff, transparent);
    opacity: 0;
    transform: translateY(-100%);
}

.scanning .scanner-line {
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 1;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Panel Controls */
.panel-container {
    position: relative;
    transition: all 0.3s ease;
}

.panel-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-container:hover .panel-toolbar {
    opacity: 1;
}

/* Fullscreen Mode */
.panel-container:fullscreen {
    background: white;
    padding: 2rem;
}

    .panel-container:fullscreen .panel-toolbar {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }

/* Action Buttons */
.action-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e4e6ef;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-button:hover {
        background: #f5f8fa;
    }

/* Loading States */
.panel-loading {
    position: relative;
}

    .panel-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e4e6ef transparent;
}

    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        background-color: #e4e6ef;
        border-radius: 3px;
    }

.card:fullscreen {
    background-color: white;
    padding: 2rem;
    overflow: auto;
}

    .card:fullscreen .card-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1000;
        padding: 1rem 2rem;
    }

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .empty-state h6 {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        max-width: 200px;
        margin: 0 auto;
    }

.scanning-active {
    position: relative;
}

.scanning-state {
    /* animation: pulse 2s infinite; */
}

.shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite linear;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.scanning-active .ki-loading {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
} 