.mirror-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bs-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mirror-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mirror-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mirror-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-icon {
    opacity: 0.5;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.overlay-text {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 0;
}

/* Fullscreen mode */
.mirror-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    z-index: 9999;
    border-radius: 0;
    aspect-ratio: auto;
}

.mirror-container.fullscreen .mirror-canvas {
    width: 100vw;
    height: 100vh;
}

/* Snapshot */
.snapshot-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--bs-border-color);
}

.snapshot-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Effects card */
#effectsCard {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] #effectsCard {
    background: #1f1f1f;
}

/* Range inputs styling */
.form-range {
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    background: var(--bs-primary);
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    background: var(--bs-primary);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mirror-container {
        border-radius: 8px;
    }

    .overlay-icon {
        width: 48px;
        height: 48px;
    }

    .overlay-text {
        font-size: 0.95rem;
    }
}

/* Loading animation */
.mirror-overlay.loading::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Print hide */
@media print {
    .mirror-container,
    .snapshot-wrapper {
        display: none;
    }
}
