:root {
    --bg-black: #000000;
    --deep-teal: #008080;
    --electric-orange: #FF5733;
    --ai-yellow: #FFB300;
    --text-white: #ffffff;
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    background: url('../common_assets/background-blur.png') no-repeat center center;
    background-size: cover;
    font-family: var(--font-inter);
    color: var(--text-white);
    overflow: hidden;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
}

/* Left Anatomy Container */
.anatomy-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wireframe {
    position: relative;
    width: 200px;
    height: 500px;
}

.sil-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 128, 128, 0.4));
}

/* AI Orb - Yellow Diagnostic */
.orb-container {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ai-yellow);
    filter: blur(25px);
    opacity: 0.6;
    z-index: 1;
    animation: diagnostic-pulse 1s ease-in-out infinite alternate;
}

.orb-outer-glass {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.orb-core {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, var(--ai-yellow) 100%);
    box-shadow: 0 0 15px var(--ai-yellow);
    z-index: 2;
    animation: diagnostic-pulse 1s ease-in-out infinite alternate;
}

@keyframes diagnostic-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--ai-yellow);
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 25px var(--electric-orange);
    }
}

/* Anatomical Nodes */
.node {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 128, 128, 0.4);
    border: 2px solid rgba(0, 128, 128, 0.8);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.5);
}

.node:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.node.active {
    background: var(--electric-orange);
    border-color: #fff;
    box-shadow: 0 0 20px var(--electric-orange), inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: node-ping 1.5s infinite;
}

@keyframes node-ping {
    0% {
        box-shadow: 0 0 10px var(--electric-orange);
    }

    50% {
        box-shadow: 0 0 25px var(--electric-orange);
    }

    100% {
        box-shadow: 0 0 10px var(--electric-orange);
    }
}

/* Node Positions relative to 200x500 svg */
.n-shoulder-l {
    top: 125px;
    left: 55px;
}

.n-shoulder-r {
    top: 125px;
    left: 145px;
}

.n-elbow-l {
    top: 200px;
    left: 30px;
}

.n-elbow-r {
    top: 200px;
    left: 170px;
}

.n-back {
    top: 250px;
    left: 100px;
}

.n-knee-l {
    top: 350px;
    left: 60px;
}

.n-knee-r {
    top: 350px;
    left: 140px;
}

/* Dialogue */
.message-wrapper {
    position: absolute;
    top: 12%;
    width: 100%;
    padding: 0 24px;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.ai-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-white);
    text-shadow: 0 2px 10px black;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--ai-yellow);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Right Restriction Panel */
.panel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    z-index: 10;
    padding-top: 100px;
}

.restriction-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    flex-grow: 0;
    min-height: 250px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.tags-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 20px;
}

.empty-state.hidden {
    display: none;
}

.tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-white);
    animation: slideIn 0.3s ease-out;
}

.tag-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--electric-orange);
    box-shadow: 0 0 8px var(--electric-orange);
}

.tag-actions {
    font-size: 0.7rem;
    color: var(--electric-orange);
    cursor: pointer;
    text-decoration: underline;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons & Badges */
.btn-clear,
.btn-skip {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-inter);
}

.btn-clear {
    background: var(--electric-orange);
    color: white;
    border: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
}

.btn-clear.hidden {
    display: none;
}

.btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
}

.safety-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 128, 128, 0.2);
    border: 1px solid var(--deep-teal);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--deep-teal);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.2);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.safety-badge.hidden {
    display: none;
}

.safety-badge svg {
    color: var(--deep-teal);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Responsive adjustments for prototype */
@media (max-width: 600px) {
    .app-container {
        flex-direction: column;
    }

    .anatomy-container {
        flex: 0.6;
        padding-top: 60px;
    }

    .wireframe {
        transform: scale(0.7);
    }

    .panel-container {
        flex: 0.4;
        padding-top: 0;
    }

    .message-wrapper {
        top: 5%;
    }
}
.cuesz-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    z-index: 100;
}
