/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Noto Sans SC', sans-serif;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #00f5ff), var(--secondary, #ff00ff));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
}

.chat-button i {
    font-size: 24px;
    color: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    transform: scale(1);
}

.chat-header {
    padding: 20px;
    background: rgba(0, 245, 255, 0.1);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: var(--primary, #00f5ff);
    margin: 0;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.message.user {
    align-self: flex-end;
    background: rgba(0, 245, 255, 0.2);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: white;
    border-bottom-right-radius: 2px;
}

.message.admin {
    align-self: flex-start;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.2);
    color: white;
    border-bottom-left-radius: 2px;
}

.message-time {
    font-size: 10px;
    opacity: 0.4;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    color: white;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary, #00f5ff);
}

.send-btn {
    background: var(--primary, #00f5ff);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    color: var(--dark, #0a0e27);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-btn:hover {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    transform: scale(1.05);
}
