.chat-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.chat-welcome-content {
    max-width: 400px;
}

.chat-welcome h2 {
    margin-bottom: 1rem;
    color: #333;
}

.chat-header {
    background: #0d6efd;
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.chat-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.cliente {
    margin-left: auto;
}

.message.atendente {
    margin-right: auto;
}

.message-sender {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.message-content {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.message.cliente .message-content {
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 0.2rem;
}

.message.atendente .message-content {
    background: #e9ecef;
    border-bottom-left-radius: 0.2rem;
}

.message.sistema .message-content {
    background: #ffc107;
    text-align: center;
    max-width: 60%;
    margin: 1rem auto;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

.chat-form .input-group {
    background: white;
}

.chat-form input {
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.chat-form button {
    padding: 0.5rem 1rem;
}

.chat-button-form {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.chat-button {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-button:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.chat-button i {
    font-size: 20px;
}

.chat-button-minimized {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: none;
}

.messages-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: #dc3545;
    color: white;
    border: 2px solid white;
}

/* Scrollbar Styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}
