body {
    font-family: Arial, sans-serif;
    width: 300px;
    padding: 10px;
    background-color: #f4f4f4;
}

.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#chat-box {
    width: 100%;
    height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.user-message {
    text-align: right;
    background: #007bff;
    color: white;
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
}

.bot-message {
    text-align: left;
    background: #e0e0e0;
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
    font-weight: 500;
}

.error {
    color: red;
    font-weight: bold;
}

#user-input {
    width: 80%;
    padding: 5px;
    border-radius: 5px;
}

#send-btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #007bff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    display: block;
}

.copy-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: grey; /* Greyed out */
    cursor: not-allowed;
    margin-left: 8px;
    opacity: 0.5; /* Show as disabled */
}

.copy-btn:hover {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}