/* Custom styles beyond Tailwind */

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.peer-checked:border-blue-500 {
    border-color: #3b82f6;
}

input[type="radio"]:checked + label {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

#camera-container,
#result-container {
    aspect-ratio: 4/3;
    height: auto;
    max-height: 400px;
}

.drop-area-highlight {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.result-container {
    aspect-ratio: 1/1;
    height: 100%;
    width: 100%;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.result-image:hover {
    opacity: 0.9;
}

#lightbox button {
    cursor: pointer;
    padding: 1rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

#lightbox button:hover {
    opacity: 1;
}

.zoom-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.result-container:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}

.regenerate-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.result-container:hover .regenerate-btn {
    opacity: 1;
}

.regenerate-btn:hover {
    transform: scale(1.1);
    background-color: #2563eb;
}

/* Lightbox styles */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox button {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#lightbox button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#lightbox-img {
    transition: transform 0.3s ease;
}
