/* Nikkey Assistant Styling */
.nikkey-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Floating Bubble */
.nikkey-bubble {
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(100px);
    opacity: 0;
}

.nikkey-bubble.show {
    transform: translateY(0);
    opacity: 1;
}

.nikkey-bubble:hover {
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
}

.nikkey-bubble-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #D4AF37;
}

.nikkey-bubble-text {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Chat Window */
.nikkey-chat-window {
    width: 380px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.nikkey-chat-window.open {
    display: flex;
    transform: translateY(0);
}

/* Header */
.nikkey-chat-header {
    background: #000;
    padding: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nikkey-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nikkey-chat-header-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #D4AF37;
}

.nikkey-chat-header-title {
    font-family: 'Montserrat', sans-serif;
}

.nikkey-chat-header-name {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nikkey-chat-header-status {
    display: block;
    color: #D4AF37;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nikkey-chat-close {
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
}

.nikkey-chat-close:hover {
    color: #fff;
}

/* Body */
.nikkey-chat-body {
    padding: 25px;
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages */
.nikkey-msg {
    max-width: 85%;
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 2px;
}

.nikkey-msg-bot {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    align-self: flex-start;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: 300;
}

.nikkey-msg-user {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    align-self: flex-end;
    border-right: 1px solid #D4AF37;
}

/* Buttons */
.nikkey-chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.nikkey-option-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
}

.nikkey-option-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    padding-left: 18px;
}

/* Pulse Animation for engagement */
@keyframes nikkey-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.nikkey-bubble.pulse {
    animation: nikkey-pulse 2s infinite;
}

/* Footer / Input Area */
.nikkey-chat-footer {
    padding: 15px 25px;
    background: #000;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nikkey-input-wrap {
    flex: 1;
    position: relative;
}

.nikkey-chat-footer input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    padding: 12px 15px;
    color: #fff;
    font-size: 11px;
    outline: none;
    transition: all 0.3s;
}

.nikkey-char-counter {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #888;
    letter-spacing: 0.5px;
    pointer-events: none;
    font-family: 'Lato', sans-serif;
}

.nikkey-chat-footer input:focus {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.nikkey-chat-footer button {
    background: transparent;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, color 0.3s;
}

.nikkey-chat-footer button:hover {
    color: #fff;
    transform: scale(1.1);
}

.nikkey-chat-footer button .material-symbols-outlined {
    font-size: 20px;
}

/* Typing Indicator */
.nikkey-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    align-self: flex-start;
    border-radius: 2px;
}

.nikkey-typing span {
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
    display: inline-block;
    animation: nikkey-dot 1.2s infinite;
    opacity: 0.4;
}

.nikkey-typing span:nth-child(2) { animation-delay: 0.2s; }
.nikkey-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes nikkey-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* WhatsApp button */
.nikkey-whatsapp-btn {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.35) !important;
    color: #25D366 !important;
    text-decoration: none !important;
    text-align: center !important;
    display: block;
}

.nikkey-whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.18) !important;
    border-color: #25D366 !important;
    padding-left: 12px !important;
}

/* Input disabled */
.nikkey-chat-footer input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .nikkey-chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 80px;
    }
    .nikkey-bubble {
        bottom: 20px;
        right: 20px;
    }
}
