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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f0f;
    min-height: 100vh;
    color: #fff;
}

.screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.setup-container {
    background: #1a1a1a;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid #333;
    text-align: center;
    max-width: 450px;
    width: 90%;
}

h1 {
    font-size: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
}

h2 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    color: #999;
    margin-bottom: 30px;
    font-size: 15px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-small {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-small:hover {
    background: #333;
    border-color: #667eea;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 20px;
    color: #fff;
    transition: 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#chatScreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
}

.chat-header {
    background: #1a1a1a;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s;
}

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

.message.user {
    align-items: flex-end;
}

.message.ai {
    align-items: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 14px 20px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 15px;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai .message-bubble {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #333;
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    background: #1a1a1a;
    padding: 20px 30px;
    display: flex;
    gap: 12px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-top: 1px solid #333;
}

.chat-input-container input {
    flex: 1;
    margin-bottom: 0;
}
