.camera-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 12px;
    z-index: 1000;
    width: 450px;
    max-width: 95vw;
    max-height: 85vh;
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.camera-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

.camera-header .close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.camera-header .close:hover,
.camera-header .close:focus {
    color: #333;
    text-decoration: none;
}

.camera-body {
    margin-top: 20px;
}

.camera-body ul {
    list-style: none;
    padding: 0;
}

.camera-body li {
    margin-bottom: 15px;
}

/* Modernisierte Buttons */
.camera-body .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.camera-body .btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.camera-body .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Animation für Klick-Effekt */
.camera-body .btn:active,
.btn-delete:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uploaded-image {
    margin-top: 20px;
    text-align: center;
}

.uploaded-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modernisierte Delete-Buttons */
.btn-delete {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-delete:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.5);
}

/* SVG-Icons in Buttons */
.btn-delete svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    fill: #fff;
}

.user-image {
    display: grid;
    grid-template-columns: 150px auto auto auto; /* Spaltenlayout */
    align-items: center;
    gap: 10px; /* Abstand zwischen den Spalten */
    margin-bottom: 10px;
}

.user-image img {
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.image-actions {
    display: flex;
    flex-direction: row; /* Buttons nebeneinander anordnen */
    gap: 5px; /* Abstand zwischen den Buttons */
}

.image-actions .btn {
    padding: 6px 10px; /* Kleinere Padding */
    font-size: 12px; /* Verkleinerte Schriftgröße */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.image-actions .btn:hover {
    background-color: #0056b3;
}

.image-actions .btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.image-actions .btn-danger:hover {
    background-color: #c82333;
}

.image-visibility-select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 12px; /* Verkleinerte Schriftgröße */
    cursor: pointer;
}

@media (max-width: 600px) {
    .camera-container {
        width: 98vw !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 60vh !important;
        max-height: 90vh !important;
        padding: 8px !important;
        border-radius: 8px !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        box-sizing: border-box !important;
        overflow: auto !important;
    }

    .camera-header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 6px;
    }

    .camera-header h3 {
        font-size: 1.1em;
    }

    .camera-header .close {
        font-size: 28px;
        margin-top: 8px;
    }

    .camera-body {
        margin-top: 10px;
        padding: 5px;
    }

    .camera-body .btn,
    .btn-delete {
        font-size: 15px;
        padding: 10px 0;
        width: 100%;
        min-width: unset;
    }

    .user-image {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .image-actions {
        flex-direction: column;
        gap: 5px;
    }

    .image-actions .btn {
        font-size: 13px;
        padding: 8px 0;
    }

    .image-visibility-select {
        font-size: 13px;
        width: 100%;
    }
}
