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

body {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.background-blur {
    position: absolute;
    width: 200vw;
    height: 200vh;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(199, 242, 132, 0.15) 0%, rgba(15, 23, 42, 1) 50%);
    z-index: -1;
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    display: flex;
    gap: 24px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glassmorphism {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.guide-panel {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-panel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #c7f284;
    margin-bottom: 8px;
}

.guide-panel>p {
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.5;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.step:hover {
    transform: translateX(5px);
    border-color: rgba(199, 242, 132, 0.5);
}

.step-num {
    background: #c7f284;
    color: #0f172a;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

.step strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.95rem;
    color: #94a3b8;
}

.code-block {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    user-select: all;
    cursor: pointer;
}

.step p code {
    background: rgba(199, 242, 132, 0.1);
    color: #c7f284;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    border: 1px solid rgba(199, 242, 132, 0.2);
}

.dev-credit {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.dev-credit p {
    font-size: 0.9rem;
    color: #64748b;
}

.dev-credit a {
    color: #c7f284;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(199, 242, 132, 0.4);
}

.dev-credit a:hover {
    color: #fff;
    text-shadow: 0 0 16px rgba(199, 242, 132, 0.8);
}

.chat-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chat-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #c7f284;
    border-radius: 50%;
    box-shadow: 0 0 12px #c7f284;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 242, 132, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(199, 242, 132, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(199, 242, 132, 0);
    }
}

.chat-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    padding: 14px 20px;
    border-radius: 16px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, #c7f284, #8bca3d);
    color: #0f172a;
    font-weight: 600;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(199, 242, 132, 0.2);
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-bottom-left-radius: 4px;
}

.bot-msg pre,
.user-msg pre {
    white-space: pre-wrap;
    font-family: inherit;
}

.typing {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    width: fit-content;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
}

.typing span {
    width: 8px;
    height: 8px;
    background: #c7f284;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
        box-shadow: 0 0 10px #c7f284;
    }
}

.input-area {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.input-area input:focus {
    outline: none;
    border-color: #c7f284;
    box-shadow: 0 0 0 3px rgba(199, 242, 132, 0.1);
}

.input-area button {
    background: linear-gradient(135deg, #c7f284, #8bca3d);
    border: none;
    color: #0f172a;
    width: 54px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(199, 242, 132, 0.3);
}

.input-area button:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        border-radius: 0;
    }

    .guide-panel {
        display: none;
    }

    .chat-panel {
        flex: 1;
        border-radius: 0;
        border: none;
    }
}