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

arcgis-scene {
    height: 100%;
    width: 100%;
}

/* Bottom panel styling */
#bottom-panel {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(80, 80, 80, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

calcite-action-group {
    --calcite-action-group-columns: 5;
}

calcite-action {
    --calcite-action-text-color: white;
    --calcite-action-icon-color: white;
}

/* Make action icons much bigger */
#bottom-panel calcite-action {
    font-size: 128px;
    transform: scale(3);
    margin: 0 40px;
}

#bottom-panel calcite-action:hover {
    --calcite-action-text-color-press: white;
}

/* Custom zoom controls styling */
#zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#zoom-controls calcite-button {
    width: 40px;
    height: 40px;
    --calcite-button-background-color: rgba(80, 80, 80, 0.5);
    --calcite-button-text-color: white;
}

#zoom-controls calcite-button:hover {
    --calcite-button-background-color: rgba(100, 100, 100, 0.7);
}

/* Style feature count chip to match */
#feature-count-panel {
    z-index: 100;
    background-color: rgba(80, 80, 80, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    --calcite-chip-background-color: transparent;
    --calcite-chip-text-color: white;
    --calcite-chip-close-icon-color: white;
    transition: opacity 1s ease-out;
    opacity: 1;
}

#feature-count-panel.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

calcite-dialog {
    --calcite-z-index-modal: 999999;
}

/* Ensure dialog backdrop */
calcite-dialog::part(scrim) {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensure popups appear below dialog */
arcgis-popup {
    --calcite-z-index: 100;
}

/* Basemap block styling to match bottom panel */
#basemap-block {
    background-color: rgba(80, 80, 80, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --calcite-block-header-background-color: transparent;
    --calcite-block-header-background-color-hover: rgba(100, 100, 100, 0.7);
    --calcite-block-heading-text-color: white;
    --calcite-block-icon-color: white;
    --calcite-block-text-color: white;
}

/* Hidden class for toggling visibility */
.hidden {
    display: none !important;
}

calcite-action.hidden {
    display: none !important;
}
