/* Chat Styles */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-message.received {
    margin-right: auto;
}

.chat-message.sent {
    margin-left: auto;
    text-align: right;
}

.message-content {
    padding: 0.8rem;
    border-radius: 15px;
    position: relative;
}

.chat-message.received .message-content {
    background: #e3f2fd;
    border-bottom-right-radius: 5px;
}

.chat-message.sent .message-content {
    background: #e8f5e9;
    border-bottom-left-radius: 5px;
}

.message-sender {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.message-text {
    margin-bottom: 0.3rem;
}

.message-time {
    font-size: 0.7rem;
    color: #888;
}

/* Chatbot Styles */
.bot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.bot-avatar i {
    color: #1976d2;
    font-size: 1.2rem;
}

.bot-message .message-content {
    background: #e3f2fd;
    border-radius: 15px;
    border-top-right-radius: 5px;
    padding: 0.8rem;
    max-width: calc(100% - 50px);
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.user-message .message-content {
    background: #e8f5e9;
    border-radius: 15px;
    border-top-left-radius: 5px;
    padding: 0.8rem;
    max-width: 80%;
}

/* Status Section Styles */
.status-section {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 0 1rem;
}

#currentStatus {
    padding: 0.5rem;
    border-radius: 5px;
    background: white;
    text-align: center;
}

/* Working Hours Notice */
#workingHoursNotice {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chat Input Styles */
.chat-input {
    margin-top: auto;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.chat-input .input-group {
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.chat-input .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
}

.chat-input .btn {
    padding: 0.8rem 1.5rem;
    border: none;
}

/* Animations */
.message-content {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar for Chat */
.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;
}

/* Employee Status Bar */
.employee-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1030;
}

.status-controls {
    display: flex;
    gap: 10px;
}

.status-controls select {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 4px 12px;
    font-size: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-indicator i {
    font-size: 12px;
}

/* Floating Chat */
.floating-chat {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1040;
}

.chat-toggle {
    width: 50px;
    height: 50px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle i {
    color: white;
    font-size: 24px;
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 300px;
    display: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.chat-panel.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.chat-messages {
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 85%;
}

.user-message {
    margin-left: auto;
}

.bot-message {
    margin-right: auto;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.user-message .message-content {
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
}

.chat-input {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 10px;
}

.chat-input .input-group {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 5px;
}

.chat-input input {
    border: none;
    background: transparent;
    padding: 8px 15px;
}

.chat-input input:focus {
    box-shadow: none;
}

.chat-input button {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.success {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.warning {
    background: #fff3cd;
    color: #664d03;
}

.status-badge.danger {
    background: #f8d7da;
    color: #842029;
}

.status-badge.info {
    background: #cff4fc;
    color: #055160;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message {
    animation: fadeIn 0.3s ease forwards;
}
