/* Captaru Chat Agent Styles - Forzar visibilidad completa */
* .captaru-chat-inline,
* .captaru-chat-inline *,
.captaru-chat-inline,
.captaru-chat-inline * {
    box-sizing: border-box !important;
}

.captaru-chat-inline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    width: 100% !important;
    height: 600px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: visible !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    position: relative !important;
}

.captaru-chat-fixed-bottom-right,
.captaru-chat-fixed-bottom-left {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.captaru-chat-fixed-bottom-left {
    right: auto;
    left: 20px;
}

.captaru-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captaru-chat-toggle:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.captaru-chat-toggle .chat-icon-close {
    display: none;
}

.captaru-chat-toggle.active .chat-icon-open {
    display: none;
}

.captaru-chat-toggle.active .chat-icon-close {
    display: block;
}

.captaru-chat-container {
    width: 350px;
    height: 500px;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    display: none;
    flex-direction: column !important;
    overflow: visible !important;
    margin-bottom: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.captaru-chat-container.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.captaru-chat-inline .captaru-chat-container {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex !important;
    overflow: visible !important;
}

/* Header */
.captaru-chat-header {
    background: #1a1a1a;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-icon {
    width: 36px;
    height: 36px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.agent-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.agent-info p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.85rem;
}

.user-status:hover {
    background: rgba(255,255,255,0.2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}

.status-indicator.offline {
    background: #999;
}

.btn-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-minimize:hover {
    opacity: 1;
}

/* Welcome Screen */
.captaru-welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.welcome-content {
    text-align: center;
    width: 100%;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.welcome-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.welcome-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.command-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.command-card:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.command-card.executing {
    background: #e8f4f8 !important;
    border-color: #007bff !important;
    transform: scale(0.98) !important;
}

.command-card.executing .icon {
    animation: pulse 0.3s ease;
}

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

.command-card .icon {
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.command-card h4 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
}

.command-card p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Chat Messages */
.captaru-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: none;
}

.captaru-chat-messages.active {
    display: block;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.message.user .message-avatar {
    background: #007bff;
}

.message-content {
    max-width: 75%;
}

.message-bubble {
    background: #f1f3f5;
    padding: 0.7rem;
    border-radius: 16px;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-bubble {
    background: #007bff;
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    padding: 0 0.5rem;
}

/* Subvención Cards */
.subvencion-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    max-width: 100%;
    font-size: 0.85rem;
}

.subvencion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.subvencion-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.subvencion-org {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

.subvencion-estado {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.estado-abierta {
    background: #d4edda;
    color: #155724;
}

.estado-proximamente {
    background: #fff3cd;
    color: #856404;
}

.estado-cerrada {
    background: #f8d7da;
    color: #721c24;
}

.subvencion-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #666;
}

.subvencion-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-favorite {
    background: white;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.btn-favorite:hover {
    background: #fff8e1;
}

.btn-favorite.active {
    background: #f39c12;
    color: white;
}

/* Input Area */
.captaru-chat-input-area {
    padding: 1rem !important;
    background: #ffffff !important;
    border-top: 2px solid #e0e0e0 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.input-wrapper {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.command-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    display: none;
    max-height: 120px;
    overflow-y: auto;
}

.command-suggestion {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.command-suggestion:hover {
    background: #f8f9fa;
}

.command-name {
    font-weight: 600;
    color: #007bff;
}

.command-desc {
    color: #666;
    font-size: 0.75rem;
}

.input-container {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}

.chat-input {
    flex: 1 !important;
    padding: 0.6rem 0.75rem !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 0.9rem !important;
    transition: border-color 0.3s !important;
    background: white !important;
    color: #333 !important;
    min-height: 40px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    width: auto !important;
    max-width: none !important;
    font-family: inherit !important;
}

.chat-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1) !important;
}

.chat-input::placeholder {
    color: #6c757d !important;
    font-style: italic !important;
}

.btn-send {
    width: 40px;
    height: 40px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    font-size: 16px;
    font-weight: bold;
}

.btn-send:hover {
    background: #0056b3;
}

.btn-send:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* Estados activos y hover para mejor UX */
.command-card:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

.btn-send:active {
    transform: scale(0.95) !important;
}

/* Return to Menu Button */
.btn-return-menu {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-return-menu:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-return-menu:active {
    transform: translateY(0);
}

/* Inline Details Styles */
.grant-details-inline {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.details-section {
    margin-bottom: 1rem;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.details-item {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.details-item strong {
    display: inline-block;
    min-width: 120px;
    color: #495057;
}

.interactive-guidance {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.guidance-question {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.guidance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.guidance-option {
    background: white;
    border: 1px solid #2196f3;
    border-radius: 16px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.guidance-option:hover {
    background: #2196f3;
    color: white;
}

.guidance-option.selected {
    background: #1976d2;
    color: white;
}

.btn-continue-guidance {
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-continue-guidance:hover {
    background: #45a049;
}

.btn-full-details {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-full-details:hover {
    background: #138496;
}

.chat-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1) !important;
    background: #f8f9ff !important;
}

/* Login Modal */
.captaru-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.captaru-login-modal.active {
    display: flex;
}

.login-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 0.7rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus {
    border-color: #007bff;
}

.btn-login {
    padding: 0.7rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #0056b3;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Loading States */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Dark Theme */
.captaru-theme-dark {
    background: #1a1a1a;
    color: white;
}

.captaru-theme-dark .captaru-chat-container {
    background: #1a1a1a;
    border: 1px solid #333;
}

.captaru-theme-dark .message-bubble {
    background: #2d2d2d;
    color: white;
}

.captaru-theme-dark .subvencion-card {
    background: #2d2d2d;
    border-color: #404040;
}

.captaru-theme-dark .chat-input {
    background: #2d2d2d;
    border-color: #404040;
    color: white;
}

.captaru-theme-dark .command-card {
    background: #2d2d2d;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .captaru-chat-fixed-bottom-right,
    .captaru-chat-fixed-bottom-left {
        right: 10px;
        bottom: 10px;
    }
    
    .captaru-chat-fixed-bottom-left {
        left: 10px;
        right: auto;
    }
    
    .captaru-chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        max-width: none;
    }
    
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .subvencion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .subvencion-actions {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
.captaru-chat-messages::-webkit-scrollbar,
.command-suggestions::-webkit-scrollbar {
    width: 4px;
}

.captaru-chat-messages::-webkit-scrollbar-track,
.command-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.captaru-chat-messages::-webkit-scrollbar-thumb,
.command-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.captaru-chat-messages::-webkit-scrollbar-thumb:hover,
.command-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Quick Actions Styles */
.quick-actions {
    margin: 1rem 0 !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
}

.quick-actions h4 {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

.quick-actions-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0.75rem 0 !important;
}

.btn-quick-action {
    padding: 0.75rem 1.25rem !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    min-height: 44px !important;
}

.btn-quick-action.btn-primary {
    background: #007bff !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2) !important;
}

.btn-quick-action.btn-primary:hover {
    background: #0056b3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
}

.btn-quick-action.btn-secondary {
    background: #6c757d !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2) !important;
}

.btn-quick-action.btn-secondary:hover {
    background: #545b62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

.btn-quick-action:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive design for quick actions */
@media (max-width: 600px) {
    .quick-actions-buttons {
        flex-direction: column !important;
    }
    
    .btn-quick-action {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Continue Guidance Button */
.btn-continue-guidance {
    margin-top: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2) !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.btn-continue-guidance:hover {
    background: #218838 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

.btn-continue-guidance:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Guidance "Any" Option Styling */
.guidance-option-any {
    background: #e9ecef !important;
    border: 2px dashed #6c757d !important;
    color: #6c757d !important;
    font-style: italic !important;
}

.guidance-option-any:hover {
    background: #dee2e6 !important;
    border-color: #495057 !important;
    color: #495057 !important;
}

.guidance-option-any.selected {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    font-style: normal !important;
}

/* Search Guide Styles */
.search-guide {
    margin: 1rem 0 !important;
    padding: 1.5rem !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
}

.guide-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 1.5rem !important;
}

.search-examples {
    margin-bottom: 1.5rem !important;
}

.example-group {
    margin-bottom: 1.5rem !important;
}

.example-group strong {
    display: block !important;
    margin-bottom: 0.75rem !important;
    color: #495057 !important;
    font-size: 0.95rem !important;
}

.example-commands {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
}

.search-example {
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    background: #e3f2fd !important;
    border: 2px solid #90caf9 !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    user-select: none !important;
    color: #1565c0 !important;
}

.search-example:hover {
    background: #bbdefb !important;
    border-color: #64b5f6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3) !important;
}

.search-example:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(33, 150, 243, 0.2) !important;
}

.search-tip {
    margin-top: 1.5rem !important;
    padding: 1rem !important;
    background: #fff3e0 !important;
    border: 1px solid #ffcc02 !important;
    border-radius: 8px !important;
    color: #f57c00 !important;
    font-size: 0.9rem !important;
}

.search-tip code {
    background: rgba(245, 124, 0, 0.1) !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 4px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    color: #e65100 !important;
}

/* Responsive design for search guide */
@media (max-width: 600px) {
    .example-commands {
        flex-direction: column !important;
    }
    
    .search-example {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Enhanced message formatting styles */
.message strong {
    font-weight: 600;
    color: inherit;
}

.message .list-item {
    margin: 4px 0;
    padding-left: 8px;
    line-height: 1.4;
}

.message .numbered-item {
    margin: 4px 0;
    padding-left: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.message .info-icon {
    font-size: 16px;
    margin-right: 6px;
    display: inline-block;
}

/* Enhanced link styles */
.message .chat-link {
    color: #3b82f6;
    text-decoration: none;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.message .chat-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
}

.message .chat-link.own-site {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
}

.message .chat-link.own-site:hover {
    background: rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.4);
}

.message .chat-link.external {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.message .chat-link.external:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

.message .link-icon {
    font-size: 14px;
    opacity: 0.8;
}

.message .external-icon {
    font-size: 12px;
    opacity: 0.7;
    font-weight: bold;
}