/* Professional Camera & Preview System */
.camera-interface {
    margin-top: 15px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls-v2 {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
}

.cam-btn-primary {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cam-btn-primary:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.cam-btn-primary:active {
    transform: scale(0.9);
}

.cam-btn-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.cam-btn-secondary {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cam-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.preview-container {
    margin-top: 15px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    border: 2px solid rgba(var(--shadow-color), 0.1);
    background: var(--bg-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body.dark-mode .preview-container {
    border-color: rgba(255, 255, 255, 0.1);
    background: #000;
}

.preview-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.btn-remove-preview {
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.btn-remove-preview:hover {
    background: #dc2626;
    transform: scale(1.05);
}

body.dark-mode .preview-container {
    border-color: #334155;
    background: #0f172a;
}