body.chat-open {
    padding-right: 450px;
}

body.chat-open .navbar {
    width: calc(100% - 450px);
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: var(--transition-base);
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-light);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.chat-window.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.chat-header {
    padding: 20px;
    background: var(--dark-surface);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header img {
    width: 32px;
    height: 32px;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

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

.message {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-ai {
    background: var(--dark-surface);
    color: var(--light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-user {
    background: var(--primary);
    color: var(--dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-input {
    padding: 16px;
    background: var(--dark-surface);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--dark);
    cursor: pointer;
}

.lawyer-card.suggested {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6) !important;
    transform: scale(1.05) !important;
    z-index: 10;
    display: flex !important; /* Ensure suggested are visible */
}

.lawyer-card.hidden {
    display: none !important;
}

#lawyer-bento {
    min-height: 400px;
}

.lawyer-card.suggested::before {
    transform: scaleX(1) !important;
}
