body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.navbar-brand {
    font-weight: 600;
}

.progress {
    height: 20px;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.code {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Flash page: device label preview */
.label-preview-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border: 1px dashed rgba(0,0,0,0.25);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.label-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.label-preview-device-id {
    font-weight: 700;
}

/* Label Designer */
.designer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.designer-canvas-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.designer-canvas {
    position: relative;
    background: #fff;
    border: 1px dashed rgba(0,0,0,0.35);
    border-radius: 10px;
    overflow: hidden;
}

.designer-element {
    position: absolute;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
}

.designer-element.selected {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.designer-hint {
    font-size: 0.85rem;
    color: #6c757d;
}
