* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #2d3436;
}

body.upload-page {
    background-position: center;
}

.app {
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.upload-app {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.upload-panel {
    width: min(420px, calc(100vw - 30px));
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.upload-page .upload-panel {
    position: relative;
    top: auto;
    left: auto;
    width: min(620px, calc(100vw - 30px));
    padding: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.upload-panel h1 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.toggle-panel-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    background: rgba(45, 52, 54, 0.85);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.upload-panel p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.upload-panel.is-collapsed {
    width: auto;
    max-width: calc(100vw - 30px);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.62);
}

.upload-panel.is-collapsed p,
.upload-panel.is-collapsed #beeUpload,
.upload-panel.is-collapsed .camera-actions,
.upload-panel.is-collapsed .camera-preview {
    display: none;
}

.camera-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.camera-actions button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    background: #f39c12;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.camera-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.camera-preview {
    margin-top: 10px;
    width: min(420px, 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.upload-page .camera-preview {
    width: 100%;
}

.upload-status {
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 600;
}

.stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.bee-image {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(96px, 15vw, 200px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    font-weight: 600;
}
