:root {
    --blue-primary: #2563eb;
    --blue-deep:    #1e40af;
    --blue-soft:    #64748b;
    --white:        #ffffff;
    --off-white:    #f8faff;
}

body {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    padding-top: 80px !important;
    margin: 0;
    overflow: hidden !important;
}

.nav-links {
    display: flex !important;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563eb;
}

.chat-scene {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 85vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
    pointer-events: auto;
}

.chat-window {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease forwards;
}

.ai-message {
    align-self: flex-start;
    background: var(--off-white);
    color: var(--blue-deep);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.user-message {
    align-self: flex-end;
    background: var(--blue-primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.input-area {
    padding: 20px;
    background: var(--off-white);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(37, 99, 235, 0.05);
}

#user-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid transparent;
    outline: none;
    font-family: 'Varela Round', sans-serif;
}

#send-btn {
    background: var(--blue-primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ai-message pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.ai-message code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

.ai-message h1, .ai-message h2, .ai-message h3 {
    margin-top: 10px;
    color: #2563eb;
}

.ai-message ul, .ai-message ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.ai-message pre {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
}
