<script setup lang="ts">
defineProps<{
    label?: string
}>()
</script>

<template>
    <div class="panel glass glass-border">
        <div v-if="label" class="panel-label">{{label}}</div>
        <slot />
    </div>
</template>

<style scoped>

/* Panels */
.panel {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
    opacity: 0.8;
}


</style>
