body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.chat-container {
    width: 100%;
    max-width: 900px; /* Ndryshuar per te qene me i ngushte */
    height: 90vh;
	border: solid #0d47a1 2px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: #0d47a1;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.input-container {
    display: flex;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

#chatInput {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#chatInput:focus {
    border-color: #0d47a1;
}

#sendBtn {
    background-color: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

#sendBtn:hover {
    background-color: #1565c0;
}

#sendBtn svg {
    width: 20px;
    height: 20px;
}

.user-message, .ai-message, .error-message, .typing-animation {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 75%;
    word-wrap: break-word;
}

.user-message {
    background-color: #e2f0ff;
    align-self: flex-end;
    color: #333;
}

.ai-message {
    background-color: #f1f1f1;
    align-self: flex-start;
    color: #555;
}

.typing-animation {
    background-color: #f1f1f1;
    align-self: flex-start;
    color: #555;
    animation: pulse 1s infinite;
}

.error-message {
    background-color: #ffcccc;
    color: #d8000c;
    align-self: center;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}