/* Robot Assistant Styles */
.robot-assistant-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 110px;
    z-index: 9999;
    pointer-events: none;
    /* Let clicks pass through if needed, or set to auto if interactive */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: robot-sway 3s ease-in-out infinite;
}

@keyframes robot-sway {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) translateY(-3px) rotate(1deg);
    }

    75% {
        transform: translateX(-50%) translateY(-1px) rotate(-1deg);
    }
}

/* Robot Body Parts */
.robot-head {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border: 2px solid #34495e;
    border-radius: 12px 12px 4px 4px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 220, 150, 0.1);
}

.robot-eye {
    position: absolute;
    top: 15px;
    width: 8px;
    height: 8px;
    background: #00dc96;
    border-radius: 50%;
    box-shadow: 0 0 8px #00dc96;
}

.robot-eye.left {
    left: 15px;
}

.robot-eye.right {
    right: 15px;
}

.robot-body {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border: 3px solid #34495e;
    border-radius: 15px 15px 10px 10px;
    margin-top: -5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Screen on Belly */
.robot-screen {
    width: 90px;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 220, 150, 0.4);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 220, 150, 0.3);
}

/* Candlestick Clock Layout */
.candlestick-clock {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 2px;
}

.clock-digit-grid {
    display: grid;
    grid-template-columns: repeat(3, 3px);
    grid-template-rows: repeat(5, 6px);
    gap: 1.5px;
}

.clock-separator {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.sep-dot {
    width: 3px;
    height: 3px;
    background: #00dc96;
    border-radius: 50%;
    box-shadow: 0 0 4px #00dc96;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Individual Candlestick */
.candle {
    width: 3px;
    height: 6px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.candle-body {
    width: 100%;
    height: 4px;
    border-radius: 1px;
}

.candle.up .candle-body {
    background: #00dc96;
    /* Green */
}

.candle.down .candle-body {
    background: #ff4d4d;
    /* Red */
}

.candle-wick {
    position: absolute;
    width: 1px;
    height: 100%;
    z-index: -1;
}

.candle.up .candle-wick {
    background: #00dc96;
}

.candle.down .candle-wick {
    background: #ff4d4d;
}

/* Animations for new seconds */
.digit-changed {
    animation: pulse-update 0.3s ease-out;
}

@keyframes pulse-update {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}