/* TruPeople Shifts & Attendance — page-specific styles */

.tp-shift-overview-visual-frame {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tp-shift-overview-clock-ring {
    position: absolute;
    width: min(92%, 415px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(168, 240, 223, 0.35);
    pointer-events: none;
}

.tp-shift-overview-clock-ring::before {
    content: '';
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-shift-overview-clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 38%;
    margin-left: -1px;
    transform-origin: bottom center;
    background: linear-gradient(180deg, #a8f0df 0%, rgba(168, 240, 223, 0.2) 100%);
    border-radius: 2px;
}

.tp-shift-overview-clock-hand--minute {
    height: 44%;
    transform: rotate(58deg);
    opacity: 0.75;
}

.tp-shift-overview-clock-hand--hour {
    transform: rotate(210deg);
}

.tp-shift-overview-device {
    position: relative;
    z-index: 1;
    width: 58%;
    max-width: 165px;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(4, 30, 34, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.14);
}

.tp-shift-overview-float-card--time strong {
    font-size: 0.95rem;
}

.tp-shift-workflow-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.tp-shift-workflow-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.tp-shift-workflow-node {
    transform-origin: center;
}

.tp-shift-workflow-art.is-visible .tp-shift-workflow-node--center {
    animation: tp-shift-node-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tp-shift-workflow-art.is-visible .tp-shift-workflow-node--spoke {
    animation: tp-shift-node-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.15s;
}

.tp-shift-workflow-art.is-visible .tp-shift-workflow-line {
    animation: tp-shift-line-grow 0.45s ease both;
    animation-delay: 0.08s;
}

@keyframes tp-shift-node-pop {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes tp-shift-line-grow {
    0% {
        opacity: 0;
        stroke-dashoffset: 30;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

@media (max-width: 991px) {
    .tp-shift-overview-visual-frame {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-shift-workflow-art.is-visible .tp-shift-workflow-node,
    .tp-shift-workflow-art.is-visible .tp-shift-workflow-line {
        animation: none;
    }
}
