﻿/* Style Markdown tables */
#response table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-radius: 0;
}

    #response table th {
        padding: 8px;
        text-align: left;
        color: white;
        background-color: var(--green);
        font-weight: bold;
        border: 1px solid var(--green);
    }

    #response table td {
        padding: 8px;
        text-align: left;
        background-color: white;
        border: 1px solid var(--green);
    }

/* Style bullet lists */
#response ul {
    padding-left: 1.5rem;
}

#response ul li {
    padding-left: 1.5rem;
}

#response ol {
    padding-left: 1.5rem;
    list-style-type: decimal;
}
.image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* give extra space for spinner */
    width: 60px; /* image (40px) + ring space */
    height: 60px;
    margin-left: 6px; /* pushes it slightly away from left edge */
}

.robot-img {
    position: relative;
    border-radius: 50%;
}

/* Ring animation */
.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px; /* just bigger than img */
    height: 52px;
    border: 2px solid transparent;
    border-top: 2px solid var(--orange-200);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
    z-index: 8; /* behind the image */
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#pageTransition {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

    #pageTransition.active {
        opacity: 1;
        pointer-events: auto;
    }

.shiny-btn {
    position: relative;
    overflow: hidden;
}

/* Shiny overlay */
.shiny-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient( 120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100% );
    transform: skewX(-20deg);
    animation: shine 4s infinite; /* 👈 continuous loop */
}

/* Animation for left → right shine */
@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}


.copilot-link span {
    display: block;
    width: 2px;
    height: 10px;
    background: #000;
    border-radius: 2px;
    animation: wave 1s infinite ease-in-out;
    animation-play-state: paused; /* default OFF */
    max-height: 24px;
}

@keyframes wave {
    0%, 100% {
        height: 8px;
    }

    50% {
        height: 40px;
    }
}