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

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    background: #007bff;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.reset-btn {
    position: absolute;
    top: 22px;
    right: 15px;
    background: #a7b6bc;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.reset-btn:hover {
    background: #8a9ba3;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(167, 182, 188, 0.4);
}

.reset-btn:active {
    transform: scale(1.05);
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    max-width: 100%;
}

.user {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.bot {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: pre-line;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

.input-area {
    display: flex;
    padding: 20px;
    border-top: 1px solid #ddd;
}

#userInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#sendBtn {
    padding: 10px 20px;
    margin-left: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#sendBtn:hover {
    background: #0056b3;
}

