body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling on camera view */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;

    /* Native App Feel */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Camera View */
#camera-view {
    position: relative;
    width: 100%;
    height: 100%;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fullscreen fill */
}

.camera-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    pointer-events: none;
    /* Let clicks pass through container */
}

#shutter-btn {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    /* Prevent flexing */
    border-radius: 50%;
    background-color: white;
    border: 5px solid rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: transform 0.1s;
}

#btnFlash {
    position: absolute;
    /* Take out of flow to prevent shifting shutter */
    left: 50%;
    margin-left: 60px;
    /* Offset from center: 35px (half shutter) + 25px gap */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
}

#btnFlash.active {
    background: rgba(255, 204, 0, 0.9);
    /* Yellow active state */
    color: #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

#btnFlash.hidden {
    display: none !important;
}

#shutter-btn:active {
    transform: translateX(-50%) scale(0.9);
}

/* Review View */
#review-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow-y: auto;
    /* Allow scrolling for form */
}

#review-view.hidden {
    display: none;
}

#captured-image {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.form-container {
    padding: 20px;
    background: white;
    flex: 1;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -20px;
    /* Overlap image slightly */
    position: relative;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    /* Fix padding issue */
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#retake-btn {
    background: #f0f0f0;
    color: #333;
}

#save-btn {
    background: #007bff;
    color: white;
}

#save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Onboarding / Landing Screen --- */
.glass-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    /* Ensure on top of float buttons */
    width: 90%;
    max-width: 350px;
    /* Reverted to original wider size */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#sloganBanner .carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    margin-bottom: 20px;
    /* Space between carousel and button */
}

#sloganBanner .carousel-track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;

    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

#sloganBanner .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
    /* Square - crops landscape images centrally */
    overflow: hidden;
}

/* Images */
#sloganBanner .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover ensures cropping of edges */
    object-position: center;
    /* Center crop */
    display: block;
}

/* Specific alignments for visibility - Landscape Zoom Out */
.slide-capture {
    /* Zoom out to show more context (shutter btn) */
    transform: scale(0.95);
    transform-origin: center center;
}

.slide-review {
    /* Zoom out to show Abschicken btn */
    transform: scale(0.95);
    transform-origin: center center;
}

.slide-success {
    transform: scale(0.95);
    transform-origin: center center;
}

.slide-map {
    transform: scale(0.95);
    transform-origin: center center;
}

/* Dots */
#sloganBanner .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

#sloganBanner .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s;
}

#sloganBanner .dot.active {
    background: #007AFF;
    transform: scale(1.1);
}

.action-btn {
    background: #007AFF;
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s;
}

.action-btn:active {
    transform: scale(0.98);
}

/* New Map Buttons */
#btnHeatmap {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100 !important;
    --background: rgba(255, 255, 255, 0.4);
    --border-radius: 50px;
    --backdrop-filter: blur(10px);
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
}