﻿.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

    .dot.in {
        background-color: #198754;
    }

    .dot.out {
        background-color: #dc3545;
    }

        .dot.in::after,
        .dot.out::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            z-index: -1;
            animation: pulse 1.5s ease-out infinite;
        }

    .dot.in::after {
        background-color: #198754;
    }

    .dot.out::after {
        background-color: #dc3545;
    }

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.toggle-slider {
    position: relative;
    width: 260px;
    margin: 0 auto;
    height: 56px;
    user-select: none;
    touch-action: pan-x;
}

/* Toggle Track Shadow */
.toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #198754; /* Green when checked in */
    border-radius: 28px;
    transition: background 0.3s;
    z-index: 1;
    /* Soft layered shadow for the track */
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10), 0 6px 24px 0 rgba(0,0,0,0.08);
}

.toggle-slider.checked .toggle-track {
    background: #e0e0e0; /* Grey when checked out */
}

/* Toggle Handle Shadow */
.toggle-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s, background 0.2s, box-shadow 0.2s;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Multi-layered shadow for floating effect */
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.12), 0 8px 16px 0 rgba(0,0,0,0.10), 0 1.5px 3px 0 rgba(0,0,0,0.08);
}

.toggle-slider.checked .toggle-handle {
    left: 208px;
    background: #fff;
    /* Slightly stronger shadow when active */
    box-shadow: 0 4px 12px 0 rgba(25,135,84,0.18), 0 8px 24px 0 rgba(25,135,84,0.10), 0 1.5px 3px 0 rgba(25,135,84,0.08);
}

.toggle-label {
    position: absolute;
    top: 0;
    width: 50%;
    height: 56px;
    line-height: 56px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    z-index: 3;
    color: #6c757d;
    pointer-events: none;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.toggle-label-left {
    left: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.toggle-label-right {
    right: 0;
    color: #adb5bd; /* Grey text for Check Out */
}

.toggle-slider.checked .toggle-label-left {
    color: #adb5bd; /* Grey text for Check In when checked out */
}

.toggle-slider.checked .toggle-label-right {
    color: #fff; /* White text for Check Out when checked out (grey background) */
}

.toggle-slider.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.device-card.selected {
    border-color: #198754;
    background: #e9fbe9;
}