* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --qg-white: #e3f2fd;
    --qg-black: #1a162a;
    --qg-light: #667eea;
    --qg-dark: #764ba2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--qg-black);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.small-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 32px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header.logo,
footer {
    text-align: center;
    color: var(--qg-white);
}

header.logo {
    margin-top: 20px;
    margin-bottom: 40px;
}

footer {
    margin-top: 40px;
    margin-bottom: 20px;
}

footer p {
    font-size: .9rem;
}

.logo h1 {
    font-size: 2.5rem;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    /* -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent;
    background-clip: text; */
    font-weight: 700;
}

.logo p {
    /* color: #666; */
    margin-top: 10px;
    font-size: 1.1rem;
}

#site-links {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#site-links a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--qg-black);
}

.active-link {
    border-bottom: 2px solid var(--qg-dark);
}

.header-btn {
    /* border: 2px solid linear-gradient(135deg, #667eea, #764ba2); */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    color: var(--qg-dark);
    background-color: #e3f2fd;
    margin: 16px;
    padding: 12px 24px;
    text-decoration: none;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.step.active {
    display: block;
}

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

.chat-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-message.ai {
    flex-direction: row;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.ai .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user .message-avatar {
    background: #28a745;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 70%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user .message-content {
    background: #e3f2fd;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:hover,
.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    overflow-x: auto;
    margin: 20px 0;
}

.confidence-slider {
    margin: 20px 0;
}

.slider-container {
    position: relative;
    margin: 10px 0;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    /* -webkit-appearance: none; */
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.form-preview {
    border: 2px dashed #667eea;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9ff;
    margin: 20px 0;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: white;
    border-radius: 15px;
    max-width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 2px 6px;
    border-radius: 4px;
}