.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #333;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #2a2a2a;
}

.chat-button-inner {
    background: transparent;
    border-radius: 50%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: slideUp 0.3s ease;
    border: 1px solid #e5e5e5;
}

.chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a2a;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1a1a;
}

.chat-header-text h3 {
    font-size: 15px;
    margin: 0 0 4px 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chat-header-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.7;
    font-weight: 400;
}

.close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #fafafa;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

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

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

.message {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.message.bot .message-bubble {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: #1a1a1a;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    border: 1px solid #1a1a1a;
}

.chat-input-container {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-input {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fafafa;
    color: #1a1a1a;
}

.chat-input:focus {
    border-color: #1a1a1a;
    background: #ffffff;
}

.chat-input::placeholder {
    color: #999;
}

.send-btn {
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.send-btn:active {
    transform: translateY(0);
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 180px);
        right: 20px;
        bottom: 100px;
    }

    .chat-button {
        right: 20px;
        bottom: 30px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .chat-window {
        height: calc(100vh - 180px);
        right: 30px;
        bottom: 120px;
    }
}