.device-select-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.device-select-wrapper .form-select {
    flex: 1;
}

.refresh-devices-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.monitor-slider {
    --monitor-value: 0%;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease;
}

.monitor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.monitor-slider::-webkit-slider-thumb:hover {
    background: #041f4a;
    transform: scale(1.08);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.monitor-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(
        to right,
        #052c65 0%,
        #052c65 var(--monitor-value, 0%),
        transparent var(--monitor-value, 0%)
    ),
    repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
}

.monitor-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.monitor-slider::-moz-range-thumb:hover {
    background: #041f4a;
    transform: scale(1.08);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.monitor-slider::-moz-range-track {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
}

.monitor-slider::-moz-range-progress {
    height: 8px;
    background: #052c65;
    border-radius: 4px;
}

[data-bs-theme="dark"] .monitor-slider {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .monitor-slider::-webkit-slider-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .monitor-slider::-webkit-slider-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .monitor-slider::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        #6ea8fe 0%,
        #6ea8fe var(--monitor-value, 0%),
        transparent var(--monitor-value, 0%)
    ),
    repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .monitor-slider::-moz-range-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .monitor-slider::-moz-range-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .monitor-slider::-moz-range-track {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .monitor-slider::-moz-range-progress {
    background: #6ea8fe;
}

.meter-wrapper {
    width: 100%;
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 60%);
    border-radius: 12px;
    padding: 16px 12px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    backdrop-filter: blur(3px);
}

[data-bs-theme="dark"] .meter-wrapper {
    background: radial-gradient(circle at top left, rgba(110, 168, 254, 0.12), transparent 60%);
    border-color: rgba(110, 168, 254, 0.3);
}

.activity-log {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-log-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background: rgba(13, 110, 253, 0.05);
}

.activity-log-entry .activity-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.activity-log-entry .activity-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

[data-bs-theme="dark"] .activity-log-entry {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .activity-log-entry .activity-meta {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .device-select-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .refresh-devices-btn {
        width: 100%;
        justify-content: center;
    }
}
