#camera-screen {
    background-color: var(--bg-color);
    position: relative;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-color);
}

.camera-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-color);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.camera-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.2s;
    z-index: 10;
}

.camera-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#camera-controls {
    position: absolute;
    display: flex;
    pointer-events: auto;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#camera-screen.camera-orientation-portrait #camera-controls {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

#camera-screen.camera-orientation-landscape #camera-controls {
    right: 40px;
    top: 50%;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column-reverse;
}

.camera-shutter-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--camera-shutter-border);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.camera-shutter-btn::after {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--camera-shutter-fill);
    transition: transform 0.1s;
}

.camera-shutter-btn:active {
    transform: scale(0.96);
}

.camera-shutter-btn:active::after {
    transform: scale(0.92);
}

.camera-shutter-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.camera-switch-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: inherit;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.camera-switch-btn .icon {
    width: 28px;
    height: 28px;
}

.camera-switch-btn:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
}

.camera-switch-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.camera-message {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 16px;
    border-radius: 9999px;
    font-size: 14px;
    pointer-events: none;
}
