body {
    font-family: sans-serif;
}

#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    z-index: 999;
}

#chat-button:hover {
    background-color: var(--primary-dark);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-name: slideIn;
    animation-duration: 0.4s;
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 500px;
}

@keyframes fadeIn {
  from {background-color: rgba(0,0,0,0);}
  to {background-color: rgba(0,0,0,0.4);}
}

@keyframes slideIn {
  from {bottom: -100px; opacity: 0}
  to {bottom: 20px; opacity: 1}
}

.modal-header {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-button {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#chat-window {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 10px;
    box-sizing: border-box;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.chat-input {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
}

#user-input:focus {
    border-color: var(--primary);
}

#send-button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
}

#send-button:hover {
    background-color: var(--primary-dark);
}

#stop-button {
    padding: 10px 20px;
    border: none;
    background-color: #dc3545;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
}

#stop-button:hover {
    background-color: #c82333;
}

.loading-message {
    align-self: flex-start;
    color: #6c757d;
    font-style: italic;
}

.message {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.bot-message {
    background-color: #e9e9eb;
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.suggestions {
    align-self: flex-start;
    margin-top: 10px;
    width: 100%;
}

.suggestions-title {
    font-size: 14px;
    color: var(--text-light, #6c757d);
    margin-bottom: 8px;
    padding-left: 5px;
}

.suggestion-button {
    background-color: #fff;
    border: 1px solid var(--primary-light, #818CF8);
    color: var(--primary, #6366F1);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.suggestion-button:hover {
    background-color: var(--primary-light, #818CF8);
    color: white;
}

