.alarm-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    box-sizing: border-box;
    gap: 0.35rem;
    border-radius: 0.5rem;
    position: relative;
    text-align: center;
}
.alarm-muted-slot {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    width: 2rem;
    height: 2rem;
}

.alarm-muted-icon {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.alarm-muted-icon.hidden {
    opacity: 0;
    pointer-events: none;
}

.alarm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.alarm-widget-name {
    text-align: center;
    width: 100%;
    word-break: break-word;
    font-size: 1.25rem;
}

.alarm-widget-subtitle {
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 0.1rem;
}

.alarm-active {
    background-color: #b00020;
    border-radius: 0.5rem;
}

.alarm-active-pulse {
    background-color: #b00020;
    border-radius: 0.5rem;
    animation: alarm-widget-red-pulse 1s ease-in-out infinite;
}

.alarm-ended {
    background-color: #F1C40F;
    color: black;
    border-radius: 0.5rem;
    animation: alarm-widget-yellow-pulse 1s ease-in-out infinite;
}

.alarm-create-overlay {
    z-index: 1100;
}

.selected-signals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variable-selection-summary {
    margin-top: 0.5rem;
}

.selected-signal {
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}

/* Larger container when a sensor slider with hysteresis is present */
.selected-signal.sensor .dual-slider {
    height: 9vh;
}

/* Slightly more compact style for LED/Power/Relay entries */
.selected-signal.output {
    gap: 0.25rem;
    padding: 0.5rem 1rem;
}

.selected-signal-name {
    font-size: 0.75rem;
}

.widget-customize-panel select.small-select {
    height: 2.2rem;
}

.selected-signal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.selected-signal-row .remove-alarm.left {
    width: auto;
}

.remove-alarm.left {
    margin-left: 0;
    margin-right: 0.5rem;
}

.clickable-signal {
    cursor: pointer;
}

.priority-service {
    box-shadow: 0 0.35rem 1.3rem rgba(127, 140, 141, 0.55);
}

.priority-information {
    box-shadow: 0 0.35rem 1.3rem rgba(43, 187, 226, 0.55);
}

.priority-warning {
    box-shadow: 0 0.35rem 1.3rem rgba(255, 217, 0, 0.55);
}

.priority-emergency {
    box-shadow: 0 0.35rem 1.3rem rgba(237, 118, 15, 0.55);
}

.priority-critical {
    box-shadow: 0 0.35rem 1.3rem rgba(227, 41, 64, 0.55);
}

@keyframes alarm-widget-red-pulse {
    0%,
    100% {
        background-color: #b00020;
    }

    50% {
        background-color: #ff3b4d;
    }
}

@keyframes alarm-widget-yellow-pulse {
    0%,
    100% {
        background-color: #f1c40f;
    }

    50% {
        background-color: #ffe680;
    }
}





/* === MEDIA === */

/* Mobile  */

@media (max-width: 699px) {

    .selected-signal-name {
        font-size: 0.85rem;
    }

    .alarm-widget-name {
        font-size: 0.95rem;
    }

    .alarm-widget-subtitle {
        font-size: 0.85rem;
    }

    .selected-signal.output {
        padding: 0.25rem 0.5rem;
    }
}

/* WVGA / WVGA-Narrow (720x480, 800x480) */

@media (min-width: 700px) and (max-width: 880px) {
}

/* WSVGA / XGA (1024x600, 1024x768) */

@media (min-width: 881px) and (max-width: 1150px) {
    .selected-signal.output {
        padding: 1rem 2rem;
    }

    .selected-signal-name {
        font-size: 0.85rem;
    }

    .alarm-widget-name {
        font-size: 0.95rem;
    }

    .alarm-widget-subtitle {
        font-size: 0.85rem;
    }
}

/* WXGA / HD720 / SXGA (1280x720/800/1024) */

@media (min-width: 1151px) and (max-width: 1600px) {
    .selected-signal.output {
        padding: 1rem 2rem;
    }

    .selected-signal-name {
        font-size: 0.85rem;
    }

    .alarm-widget-name {
        font-size: 0.95rem;
    }

    .alarm-widget-subtitle {
        font-size: 0.85rem;
    }
}

/* HD / WUXGA (1920x1080, 1920x1200) */

@media (min-width: 1601px) and (max-width: 2879px) {
    /* standard styles */
}

/* 4K (3840x2160) */

@media (min-width: 2880px) {

    .selected-signal.output {
        padding: 1rem 2rem;
    }

    .selected-signal-name {
        font-size: 1.75rem;
    }

    .alarm-widget-name {
        font-size: 2rem;
    }

    .alarm-widget-subtitle {
        font-size: 1.75rem;
    }
}

/* Low height */

@media (min-width: 1000px) and (max-height: 650px) {
    .alarm-content {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .alarm-widget-name {
        width: auto;
    }

    .alarm-widget-subtitle {
        font-size: 0.95rem;
    }
}

/* Override for 1024x600 */

@media (width: 1024px) and (height: 600px) {
    .alarm-content {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .alarm-widget-name {
        width: auto;
    }

    .alarm-widget-subtitle {
        font-size: 0.95rem;
    }
}