.part-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
}

.part-entry:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

.part-entry.active-selection {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.part-meta {
    display: flex;
    flex-direction: column;
}

.part-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.part-status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.part-entry.active-selection .part-status {
    color: var(--secondary);
}

.inspection-hub {
    margin-top: 16px;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: 0.2s;
    color: var(--secondary);
}

.part-entry:hover .toggle-icon {
    opacity: 1;
}

.eye-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

@keyframes pulse-fade {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.loading-indicator {
    animation: pulse-fade 1.5s infinite;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.step-item.active {
    background: rgba(0, 209, 255, 0.1);
    border-color: rgba(0, 209, 255, 0.3);
    color: #fff;
}

.step-item.complete {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.step-item.active .step-dot {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse-fade 1s infinite;
}

.step-item.complete .step-dot {
    background: #22c55e;
}

/* Advanced Neural Scanner Animation */
.neural-scanner {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    animation: rotate-ring 4s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.ring-2 {
    width: 80%;
    height: 80%;
    border-left: 2px solid var(--secondary);
    border-right: 2px solid rgba(0, 209, 255, 0.3);
    animation: rotate-ring-rev 3s linear infinite;
}

.ring-3 {
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: pulse-ring 2s ease-in-out infinite;
}

.core-structure {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: core-breathe 1.5s ease-in-out infinite;
}

.core-pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary);
}

.scanner-laser {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    top: 50%;
    animation: scan-vertical 2s ease-in-out infinite;
    opacity: 0.5;
    box-shadow: 0 0 10px var(--secondary);
}

.particle-field {
    position: absolute;
    width: 150%;
    height: 150%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: rotate-particles 20s linear infinite;
    pointer-events: none;
    mask-image: radial-gradient(circle, black 40%, transparent 70%);
}

@keyframes rotate-ring {
    0% {
        transform: rotate(0deg) rotateX(0deg);
    }

    100% {
        transform: rotate(360deg) rotateX(10deg);
    }
}

@keyframes rotate-ring-rev {
    0% {
        transform: rotate(360deg) rotateY(0deg);
    }

    100% {
        transform: rotate(0deg) rotateY(10deg);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

@keyframes core-breathe {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

@keyframes scan-vertical {
    0% {
        top: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes rotate-particles {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wait-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Anatomical Explorer Right Panel */
.right-panel {
    position: absolute;
    right: 20px;
    top: 100px;
    width: 300px;
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 140px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.parts-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.parts-list::-webkit-scrollbar {
    width: 4px;
}

.parts-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.explorer-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.explorer-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(-4px);
}

.explorer-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.details-box {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#selected-part-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#close-details-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mode-btn {
    padding: 8px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#mode-separate.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--glow);
}

#mode-working.active {
    background: rgba(0, 209, 255, 0.2);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.part-notes {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.part-notes label {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
}

.part-notes p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #cbd5e1;
}