@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

body {
    background: #1A1418;
    font-family: 'Nunito', sans-serif;
    color: #F6EEF0;
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    opacity: 0.75;
    margin-bottom: 25px;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.mode {
    background: #3A2F36;
    border: 2px solid #6C5A63;
    padding: 12px 26px;
    font-size: 1.2rem;
    border-radius: 22px;
    cursor: pointer;
    transition: 0.25s;
    color: #F6EEF0;
}

.mode.active {
    background: #78DFA5;
    border-color: #78DFA5;
    color: #1A1418;
    font-weight: bold;
}

.chat-window {
    height: 400px;
    background: #2A2127;
    border-radius: 25px;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    text-align: left;
}

.msg {
    padding: 12px 18px;
    margin: 12px 0;
    display: block;
    max-width: 80%;
    line-height: 1.5;
    border-radius: 20px;
    word-wrap: break-word;
}

.msg.user {
    background: #E7C8C3;
    color: #2A2428;
    border-radius: 20px 20px 4px 20px;
    margin-left: auto;
}

.msg.bot {
    background: #4A4046;
    color: #F7F2F0;
    border-radius: 20px 20px 20px 4px;
    margin-right: auto;
}

.input-area {
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 14px;
    border-radius: 22px;
    border: 2px solid #6C5A63;
    background: #2A2127;
    color: #F7EDEE;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
}

#userInput:focus {
    outline: none;
    border-color: #78DFA5;
}

.send-btn {
    background: #78DFA5;
    color: #1A1418;
    padding: 12px 28px;
    border-radius: 22px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hint {
    margin-top: 12px;
    opacity: 0.6;
    font-size: 0.85rem;
}

.listening {
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
/* --- MOBILVENLIGT LAYOUT FOR KARENBOT --- */

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

.message {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
}

/* Mobiltilpasning */
@media (max-width: 600px) {
    .chat-container {
        padding: 10px;
        max-width: 100%;
    }

    .message {
        font-size: 18px;
        padding: 16px;
        border-radius: 16px;
    }

    input, button {
        font-size: 18px;
    }
}
