/* _content/RealEstateWebApp/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-04n9cns54d] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-04n9cns54d] {
    flex: 1;
}

.sidebar[b-04n9cns54d] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-04n9cns54d] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-04n9cns54d]  a, .top-row[b-04n9cns54d]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-04n9cns54d]  a:hover, .top-row[b-04n9cns54d]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-04n9cns54d]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-04n9cns54d] {
        justify-content: space-between;
    }

    .top-row[b-04n9cns54d]  a, .top-row[b-04n9cns54d]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-04n9cns54d] {
        flex-direction: row;
    }

    .sidebar[b-04n9cns54d] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-04n9cns54d] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-04n9cns54d]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-04n9cns54d], article[b-04n9cns54d] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-04n9cns54d] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-04n9cns54d] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/RealEstateWebApp/Components/Shared/ChatWidget.razor.rz.scp.css */
/* Chat Widget Container */
.chat-widget[b-lzo0n6ds64] {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Floating Toggle Button */
.chat-toggle-btn[b-lzo0n6ds64] {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.chat-toggle-btn:hover[b-lzo0n6ds64] {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.chat-widget.open .chat-toggle-btn[b-lzo0n6ds64] {
    background: #64748b;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.unread-badge[b-lzo0n6ds64] {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-b-lzo0n6ds64 2s infinite;
}

@keyframes pulse-b-lzo0n6ds64 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat Panel */
.chat-panel[b-lzo0n6ds64] {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp-b-lzo0n6ds64 0.3s ease;
}

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

/* Chat Header */
.chat-header[b-lzo0n6ds64] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info[b-lzo0n6ds64] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar[b-lzo0n6ds64] {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info h4[b-lzo0n6ds64] {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status-indicator[b-lzo0n6ds64] {
    font-size: 12px;
    opacity: 0.9;
}

.chat-minimize-btn[b-lzo0n6ds64] {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.chat-minimize-btn:hover[b-lzo0n6ds64] {
    background: rgba(255, 255, 255, 0.3);
}

/* Start Conversation Form */
.chat-start-form[b-lzo0n6ds64] {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.chat-start-form h4[b-lzo0n6ds64] {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 18px;
}

.chat-start-form p[b-lzo0n6ds64] {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.form-group[b-lzo0n6ds64] {
    margin-bottom: 16px;
}

.form-group label[b-lzo0n6ds64] {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.form-group input[b-lzo0n6ds64] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus[b-lzo0n6ds64] {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-start-chat[b-lzo0n6ds64] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-start-chat:hover:not(:disabled)[b-lzo0n6ds64] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-start-chat:disabled[b-lzo0n6ds64] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages Container */
.chat-messages[b-lzo0n6ds64] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    min-height: 250px;
}

/* Message Bubbles */
.chat-message[b-lzo0n6ds64] {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.chat-message.user[b-lzo0n6ds64] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.ai[b-lzo0n6ds64] {
    align-self: flex-start;
}

.chat-message.system[b-lzo0n6ds64] {
    align-self: center;
    max-width: 90%;
}

.message-avatar[b-lzo0n6ds64] {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
}

.chat-message.ai .message-avatar[b-lzo0n6ds64] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.message-content[b-lzo0n6ds64] {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 16px;
}

.chat-message.user .message-content[b-lzo0n6ds64] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.chat-message.ai .message-content[b-lzo0n6ds64] {
    border-radius: 16px 16px 16px 4px;
}

.chat-message.system .message-content[b-lzo0n6ds64] {
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    text-align: center;
    border-radius: 8px;
}

.message-content p[b-lzo0n6ds64] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-time[b-lzo0n6ds64] {
    font-size: 11px;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

.chat-message.user .message-time[b-lzo0n6ds64] {
    text-align: right;
}

/* Typing Indicator */
.typing-indicator[b-lzo0n6ds64] {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span[b-lzo0n6ds64] {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing-b-lzo0n6ds64 1.4s infinite;
}

.typing-indicator span:nth-child(2)[b-lzo0n6ds64] {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3)[b-lzo0n6ds64] {
    animation-delay: 0.4s;
}

@keyframes typing-b-lzo0n6ds64 {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Property Card in Chat */
.property-card-mini[b-lzo0n6ds64] {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.property-card-mini img[b-lzo0n6ds64] {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.property-card-mini .property-info[b-lzo0n6ds64] {
    padding: 10px;
}

.property-card-mini .property-info strong[b-lzo0n6ds64] {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

.property-card-mini .property-info span[b-lzo0n6ds64] {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* Quick Actions */
.quick-actions[b-lzo0n6ds64] {
    padding: 8px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.quick-action-btn[b-lzo0n6ds64] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover[b-lzo0n6ds64] {
    background: #e2e8f0;
    color: #1e293b;
}

/* Message Input */
.chat-input[b-lzo0n6ds64] {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input[b-lzo0n6ds64] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.chat-input input:focus[b-lzo0n6ds64] {
    outline: none;
    border-color: #2563eb;
}

.btn-send[b-lzo0n6ds64] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.btn-send:hover:not(:disabled)[b-lzo0n6ds64] {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-send:disabled[b-lzo0n6ds64] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget[b-lzo0n6ds64] {
        bottom: 10px;
        right: 10px;
    }

    .chat-panel[b-lzo0n6ds64] {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
        right: 0;
        bottom: 70px;
    }

    .chat-toggle-btn[b-lzo0n6ds64] {
        width: 50px;
        height: 50px;
    }
}
