/* Navy.lk Virtual Assistant - Modern Styles (Fixed & Cleaned) */
#navy-chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: linear-gradient(145deg, #001a33 0%, #000c24 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.5),
                0 10px 10px -5px rgb(0 0 0 / 0.3);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}

#navy-chat-window .chat-header {
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#navy-chat-window .chat-header button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

#navy-chat-window .chat-header button:hover {
    color: white;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 12px;
    scroll-behavior: smooth;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.015) 0%, transparent 50%);
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
}

#chat-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    color: white;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#chat-input::placeholder {
    color: rgba(255,255,255,0.45);
}

#chat-send-btn {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

#chat-send-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.chat-status {
    color: #94a3b8;
    font-size: 11px;
}

.quick-action-btn {
    font-size: 12.5px;
    padding: 7px 15px;
    white-space: nowrap;
}

.suggestion-chip {
    font-size: 12px;
    padding: 6px 14px;
    transition: all 0.15s ease;
}

.suggestion-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.2);
}

/* Floating Chat Button */
#navy-chat-button {
    position: fixed;
    bottom: 90px !important;
    right: 20px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 30px -10px rgb(30 64 175 / 0.5),
                0 4px 6px -1px rgb(0 0 0 / 0.2);
    cursor: pointer;
    z-index: 99998;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    border: 1px solid rgba(255,255,255,0.15);
}

#navy-chat-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 20px 40px -10px rgb(30 64 175 / 0.6);
}

#topBtn {
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.quick-btn {
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Welcome Card */
.welcome-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
}

.welcome-card h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-card p {
    color: #d6dbe5;
    line-height: 1.8;
    font-size: 14px;
}

/* Scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 5px;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* Mobile */
@media (max-width: 768px) {
    #navy-chat-button {
        bottom: 95px !important;
        right: 15px;
    }
    #topBtn {
        bottom: 20px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    #navy-chat-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        height: 70vh;
        max-height: none;
        border-radius: 20px;
    }
}