html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: none;
}

#map {
    height: 100vh;
    width: 100%;
}

#toolbox {
    display: none;
    position: fixed;
    top: 5rem;
    left: 1rem;
    z-index: 1040;
    width: 310px;
}

html[data-toolbox-visible='true'] #toolbox {
    display: block;
}

#toggleToolbox {
    position: fixed;
    top: 2.5rem;
    left: 3rem;
    z-index: 1050;
}

.leaflet-control-attribution {
    font-size: 11px;
}

#uploadProgressContainer {
    display: none;
}

#uploadProgressContainer .progress {
    height: 20px;
}

#uploadProgressBar {
    width: 0%;
}

#uploadPercentText {
    font-size: 12px;
    color: white;
}

#uploadProgressBar span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Popup card styling */
.popup-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    word-wrap: break-word;
}

.popup-title:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.popup-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.popup-image {
    display: block;
    max-height: 300px;
    border-radius: 4px;
    margin: 4px 0;
}

.popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.popup-actions a {
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    color: #0066cc;
}

.popup-actions a:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
}

.popup-actions .delete-link {
    color: #c00;
}

.popup-actions .delete-link:hover {
    background-color: #fee;
}
