﻿.label-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-item {
    background-color: var(--label-backcolor, #f0f0f0); /* Standard bakgrundsfärg */
    color: var(--label-forecolor, #000); /* Standard textfärg */
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1.6px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}
.label-editor-container {
    border: dashed;
    width: 500px;
    padding: 16px;
    box-sizing: border-box; /* Säkerställer korrekt storlek med padding */
}

    .label-editor-container h2 {
        margin-bottom: 16px;
        font-size: 18px;
        text-align: center;
    }

.label-item-button {
    background-color: var(--label-backcolor, #f0f0f0); /* Dynamisk bakgrundsfärg */
    color: var(--label-forecolor, #000); /* Dynamisk textfärg */
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1.6px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .label-item-button:hover {
        transform: scale(1.05); /* Förstoringsanimation vid hover */
        opacity: 1; /* Förbättrad synlighet */
    }

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

/* Popup Content */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 180px;
    width: 100%;
    position: relative;
}

/* popup label listLabel List */
.popup-label-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* popup Label Item */
.popup-label-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

/* Label Style */
.label-style {
    background-color: var(--label-backcolor, #f0f0f0); /* Dynamisk bakgrundsfärg */
    color: var(--label-forecolor, #000); /* Dynamisk textfärg */
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 1.6px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    text-align: center;
    width: fit-content;
}
