/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-t4ixol2i8i] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-t4ixol2i8i] {
    flex: 1;
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar[b-t4ixol2i8i] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

/* Sidebar collapsed on mobile */
.sidebar.collapsed[b-t4ixol2i8i] {
    transform: translateX(-100%);
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay[b-t4ixol2i8i] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none; /* Oculto por defecto, JavaScript lo maneja */
    cursor: pointer;
}

/* Hamburger Button */
.hamburger-button[b-t4ixol2i8i] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: -1;
    transition: all 0.3s ease;
    color: #333;
    font-size: 1.5rem;
}

.hamburger-button:hover[b-t4ixol2i8i] {
    color: #5a67d8;
    transform: scale(1.1);
}

.hamburger-button:active[b-t4ixol2i8i] {
    transform: scale(0.95);
}

.hamburger-button i[b-t4ixol2i8i] {
    pointer-events: none;
}

.top-row[b-t4ixol2i8i] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-left: 1rem;
    padding-right: 1rem;
}

    .top-row[b-t4ixol2i8i]  a, .top-row[b-t4ixol2i8i]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
    }

    .top-row[b-t4ixol2i8i]  a:hover, .top-row[b-t4ixol2i8i]  .btn-link:hover {
        text-decoration: underline;
    }

/* Logout Button Styles */
.logout-button[b-t4ixol2i8i] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-button:hover[b-t4ixol2i8i] {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.logout-button:active[b-t4ixol2i8i] {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-button i[b-t4ixol2i8i] {
    font-size: 1rem;
}

.logout-text[b-t4ixol2i8i] {
    display: inline;
}

/* Mobile First - Sidebar hidden by default */
@media (max-width: 640.98px) {
    main[b-t4ixol2i8i] {
        margin-left: 0 !important;
    }

    .top-row[b-t4ixol2i8i] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* En mobile, el sidebar inicia cerrado (collapsed) */
    .sidebar[b-t4ixol2i8i] {
        transform: translateX(0);
    }

    /* Cuando tiene clase collapsed, se oculta */
    .sidebar.collapsed[b-t4ixol2i8i] {
        transform: translateX(-100%);
    }

    /* En mobile, el overlay es manejado por JavaScript */
    
    /* Logout button responsive - ocultar texto en móvil */
    .logout-text[b-t4ixol2i8i] {
        display: none;
    }
    
    .logout-button[b-t4ixol2i8i] {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        justify-content: center;
    }
}

/* Desktop - Sidebar always visible */
@media (min-width: 641px) {
    .page[b-t4ixol2i8i] {
        flex-direction: row;
    }

    .sidebar[b-t4ixol2i8i] {
        position: fixed;
        transform: translateX(0); /* Por defecto visible en desktop */
    }

    .sidebar.collapsed[b-t4ixol2i8i] {
        transform: translateX(-100%);
    }

    main[b-t4ixol2i8i] {
        margin-left: 250px; /* Por defecto con margen */
        transition: margin-left 0.3s ease-in-out;
    }

    .sidebar.collapsed ~ main[b-t4ixol2i8i] {
        margin-left: 0;
    }

    .sidebar-overlay[b-t4ixol2i8i] {
        display: none !important;
    }

    .hamburger-button[b-t4ixol2i8i] {
        margin-right: 1rem;
    }

    .top-row[b-t4ixol2i8i], article[b-t4ixol2i8i] {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Large screens - More space */
@media (min-width: 1200px) {
    .top-row[b-t4ixol2i8i], article[b-t4ixol2i8i] {
        padding-left: 2rem !important;
        padding-right: 2.5rem !important;
    }
}

#blazor-error-ui[b-t4ixol2i8i] {
    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-t4ixol2i8i] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-itbirtc2n1] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-itbirtc2n1] {
    font-size: 1.1rem;
    color: white !important;
    font-weight: 600;
}

.bi[b-itbirtc2n1] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.nav-item[b-itbirtc2n1] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-itbirtc2n1] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-itbirtc2n1] {
        padding-bottom: 1rem;
    }

    .nav-item[b-itbirtc2n1]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        transition: all 0.2s ease;
    }

.nav-item[b-itbirtc2n1]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-itbirtc2n1]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-itbirtc2n1] {
    display: block;
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
}

/* Scrollbar styling for better look */
.nav-scrollable[b-itbirtc2n1]::-webkit-scrollbar {
    width: 6px;
}

.nav-scrollable[b-itbirtc2n1]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-scrollable[b-itbirtc2n1]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-scrollable[b-itbirtc2n1]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* FontAwesome icon spacing */
.nav-item[b-itbirtc2n1]  .nav-link span {
    margin-right: 0.75rem;
}

/* /Components/Pages/Chat.razor.rz.scp.css */
.chat-container[b-b4q9rt1for] {
    display: flex;
    height: calc(100vh - 60px);
    background: #f5f5f5;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar[b-b4q9rt1for] {
    width: 280px;
    min-width: 220px;
    max-width: 280px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header[b-b4q9rt1for] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3[b-b4q9rt1for] {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.conversation-list[b-b4q9rt1for] {
    overflow-y: auto;
    flex: 1;
}

.conversation-item[b-b4q9rt1for] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover[b-b4q9rt1for] {
    background: #f8f9fa;
}

.conversation-item.active[b-b4q9rt1for] {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.conversation-title[b-b4q9rt1for] {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.conversation-meta[b-b4q9rt1for] {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

.chat-main[b-b4q9rt1for] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 0;
    overflow-x: hidden;
}

.chat-header[b-b4q9rt1for] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.prompt-selector[b-b4q9rt1for] {
    max-width: 100%;
}

.prompt-selector label[b-b4q9rt1for] {
    font-weight: 500;
    margin-right: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.prompt-selector select[b-b4q9rt1for] {
    max-width: 100%;
    font-size: 0.9rem;
}

.messages-container[b-b4q9rt1for] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.empty-state[b-b4q9rt1for] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.empty-state i[b-b4q9rt1for] {
    margin-bottom: 1rem;
    color: #ccc;
}

.message[b-b4q9rt1for] {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn-b-b4q9rt1for 0.3s;
    width: 100%;
    max-width: none;
}

@keyframes fadeIn-b-b4q9rt1for {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar[b-b4q9rt1for] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.user-message .message-avatar[b-b4q9rt1for] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.assistant-message .message-avatar[b-b4q9rt1for] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.message-content[b-b4q9rt1for] {
    max-width: 100%;
    min-width: 260px;
    width: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-message[b-b4q9rt1for] {
    flex-direction: row-reverse;
}

.user-message .message-avatar[b-b4q9rt1for] {
    margin-right: 0;
    margin-left: 0.65rem;
}

.user-message .message-content[b-b4q9rt1for] {
    align-items: flex-end;
}

/* Estilos para el contenido de los mensajes */
.user-message .message-content :deep(.message-text)[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content)[b-b4q9rt1for] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.user-message .message-content :deep(.markdown-content)[b-b4q9rt1for] {
    color: white;
}

.user-message .message-content :deep(.markdown-content) h1[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) h2[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) h3[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) h4[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) h5[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) h6[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) p[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) li[b-b4q9rt1for],
.user-message .message-content :deep(.markdown-content) span[b-b4q9rt1for] {
    color: white !important;
}

.user-message .message-content :deep(.markdown-content) code[b-b4q9rt1for] {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.user-message .message-content :deep(.markdown-content) a[b-b4q9rt1for] {
    color: #a8daff;
    border-bottom-color: #a8daff;
}

.user-message .message-content :deep(.markdown-content) strong[b-b4q9rt1for] {
    color: white;
}

.assistant-message .message-content :deep(.message-text)[b-b4q9rt1for],
.assistant-message .message-content :deep(.markdown-content)[b-b4q9rt1for] {
    background: white;
    color: #333;
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 0.25rem;
    line-height: 1.3;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.message-time[b-b4q9rt1for] {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.2rem;
    padding: 0 0.5rem;
}

/* Ajustar espaciado vertical del contenido en burbujas */
.message-content :deep(.markdown-content) p[b-b4q9rt1for],
.message-content :deep(.markdown-content) li[b-b4q9rt1for],
.message-content :deep(.markdown-content) span[b-b4q9rt1for] {
    line-height: 1.3;
}

.message-content :deep(.markdown-content) p[b-b4q9rt1for] {
    margin-bottom: 0.35em;
}

.message-content :deep(.markdown-content) ul[b-b4q9rt1for],
.message-content :deep(.markdown-content) ol[b-b4q9rt1for] {
    margin: 0.4em 0;
    padding-left: 1.4em;
}

.message-content :deep(.markdown-content) li[b-b4q9rt1for] {
    margin: 0.15em 0;
}

.typing-indicator[b-b4q9rt1for] {
    display: flex;
    gap: 0.25rem;
    padding: 0.65rem 0.9rem;
}

.typing-indicator span[b-b4q9rt1for] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing-b-b4q9rt1for 1.4s infinite;
}

.typing-indicator span:nth-child(2)[b-b4q9rt1for] {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3)[b-b4q9rt1for] {
    animation-delay: 0.4s;
}

@keyframes typing-b-b4q9rt1for {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.chat-input-container[b-b4q9rt1for] {
    padding: 0.75rem 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
    max-width: 100%;
}

.input-group[b-b4q9rt1for] {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.input-group textarea[b-b4q9rt1for] {
    flex: 1;
    resize: none;
    border-radius: 0.5rem;
    width: 100%;
    font-size: 0.95rem;
    min-height: 42px;
    max-height: 200px;
}

.input-group button[b-b4q9rt1for] {
    flex-shrink: 0;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    height: 42px;
    min-width: 100px;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .message[b-b4q9rt1for] {
        max-width: 95%;
    }
    
    .input-group[b-b4q9rt1for] {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .sidebar[b-b4q9rt1for] {
        width: 220px;
        min-width: 180px;
    }
    
    .message-content[b-b4q9rt1for] {
        max-width: 85%;
    }
    
    .messages-container[b-b4q9rt1for] {
        padding: 0.75rem;
    }
    
    .message[b-b4q9rt1for] {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .chat-container[b-b4q9rt1for] {
        flex-direction: column;
    }
    
    .sidebar[b-b4q9rt1for] {
        width: 100%;
        max-width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .message-content[b-b4q9rt1for] {
        max-width: 90%;
    }
    
    .messages-container[b-b4q9rt1for] {
        padding: 0.5rem;
    }
    
    .message[b-b4q9rt1for] {
        margin-bottom: 0.65rem;
    }
    
    .input-group[b-b4q9rt1for] {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-group button[b-b4q9rt1for] {
        width: 100%;
    }
}

/* Attachments panel */
.attachment-toggle-bar[b-b4q9rt1for] {
    max-width: 1100px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.attachment-toggle[b-b4q9rt1for] {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.attachment-toggle:hover[b-b4q9rt1for] {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.attachment-toggle:active[b-b4q9rt1for] {
    transform: translateY(0);
}

.attachment-badge[b-b4q9rt1for] {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}

.attachment-close[b-b4q9rt1for] {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.attachment-close:hover[b-b4q9rt1for] {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.attachment-panel[b-b4q9rt1for] {
    margin-bottom: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.attachment-panel[b-b4q9rt1for]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 55%);
    pointer-events: none;
}

.attachment-header[b-b4q9rt1for],
.attachment-section[b-b4q9rt1for],
.attachment-hint[b-b4q9rt1for],
.attachment-error[b-b4q9rt1for],
.attachment-empty[b-b4q9rt1for] {
    position: relative;
    z-index: 1;
}

.attachment-header[b-b4q9rt1for] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.attachment-title[b-b4q9rt1for] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.attachment-count[b-b4q9rt1for] {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.attachment-actions[b-b4q9rt1for] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-attach[b-b4q9rt1for] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-attach:hover[b-b4q9rt1for] {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.attachment-input[b-b4q9rt1for] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.attachment-hint[b-b4q9rt1for] {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.attachment-error[b-b4q9rt1for] {
    margin-top: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attachment-section[b-b4q9rt1for] {
    margin-top: 0.85rem;
}

.attachment-section-title[b-b4q9rt1for] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

.attachment-grid[b-b4q9rt1for] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.attachment-card[b-b4q9rt1for] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.attachment-card.context[b-b4q9rt1for] {
    cursor: pointer;
}

.attachment-card.pending[b-b4q9rt1for] {
    border-style: dashed;
}

.attachment-card.context:hover[b-b4q9rt1for] {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.attachment-icon[b-b4q9rt1for] {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.attachment-type-pdf .attachment-icon[b-b4q9rt1for] {
    background: #ef4444;
}

.attachment-type-docx .attachment-icon[b-b4q9rt1for] {
    background: #2563eb;
}

.attachment-type-xlsx .attachment-icon[b-b4q9rt1for] {
    background: #16a34a;
}

.attachment-type-generic .attachment-icon[b-b4q9rt1for] {
    background: #64748b;
}

.attachment-details[b-b4q9rt1for] {
    flex: 1;
    min-width: 0;
}

.attachment-name[b-b4q9rt1for] {
    font-weight: 600;
    font-size: 0.86rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-meta[b-b4q9rt1for] {
    font-size: 0.75rem;
    color: #6b7280;
}


.attachment-upload[b-b4q9rt1for] {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #0ea5e9;
}

.attachment-upload.error[b-b4q9rt1for] {
    color: #dc2626;
}

.attachment-spinner[b-b4q9rt1for] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.25);
    border-top-color: #0ea5e9;
    animation: attachment-spin-b-b4q9rt1for 0.8s linear infinite;
}

.attachment-remove:disabled[b-b4q9rt1for] {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes attachment-spin-b-b4q9rt1for {
    to { transform: rotate(360deg); }
}

.attachment-remove[b-b4q9rt1for] {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.attachment-remove:hover[b-b4q9rt1for] {
    background: #fee2e2;
    color: #dc2626;
}

.attachment-action[b-b4q9rt1for] {
    color: #0ea5e9;
    font-size: 0.9rem;
}

.attachment-empty[b-b4q9rt1for] {
    margin-top: 0.85rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    background: rgba(248, 250, 252, 0.8);
    text-align: center;
    color: #6b7280;
}

.attachment-empty-icon[b-b4q9rt1for] {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #94a3b8;
}

/* Message attachments */
.message-attachments[b-b4q9rt1for] {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-attachment-card[b-b4q9rt1for] {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.4rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    max-width: 100%;
}

.message-attachment-card:hover[b-b4q9rt1for] {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.message-attachment-icon[b-b4q9rt1for] {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #1f2937;
    flex-shrink: 0;
}

.message-attachment-meta[b-b4q9rt1for] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.message-attachment-name[b-b4q9rt1for] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-attachment-size[b-b4q9rt1for] {
    font-size: 0.7rem;
    color: #6b7280;
}

.message-attachment-download[b-b4q9rt1for] {
    color: #0ea5e9;
    font-size: 0.85rem;
}

.user-message .message-attachment-card[b-b4q9rt1for] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.user-message .message-attachment-icon[b-b4q9rt1for] {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.user-message .message-attachment-name[b-b4q9rt1for],
.user-message .message-attachment-card[b-b4q9rt1for] {
    color: #ffffff;
}

.user-message .message-attachment-size[b-b4q9rt1for] {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 576px) {
    .attachment-header[b-b4q9rt1for] {
        flex-direction: column;
        align-items: flex-start;
    }

    .attachment-actions[b-b4q9rt1for] {
        width: 100%;
        justify-content: flex-start;
    }

    .attachment-grid[b-b4q9rt1for] {
        grid-template-columns: 1fr;
    }

    .message-attachment-card[b-b4q9rt1for] {
        width: 100%;
        justify-content: space-between;
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Reset b�sico */
*[b-5y4qaueeq7] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contenedor principal del login */
.login-container[b-5y4qaueeq7] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decoraci�n de fondo */
.background-decoration[b-5y4qaueeq7] {
 position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle[b-5y4qaueeq7] {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-b-5y4qaueeq7 20s infinite ease-in-out;
}

.circle-1[b-5y4qaueeq7] {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2[b-5y4qaueeq7] {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.circle-3[b-5y4qaueeq7] {
width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float-b-5y4qaueeq7 {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
 transform: translate(30px, -30px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Tarjeta de login */
.login-card[b-5y4qaueeq7] {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
    animation: slideUp-b-5y4qaueeq7 0.5s ease-out;
}

@keyframes slideUp-b-5y4qaueeq7 {
    from {
        opacity: 0;
     transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del login */
.login-header[b-5y4qaueeq7] {
    text-align: center;
  margin-bottom: 40px;
}

.logo-container[b-5y4qaueeq7] {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.logo-icon[b-5y4qaueeq7] {
    font-size: 40px;
    color: white;
}

.login-title[b-5y4qaueeq7] {
  font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-subtitle[b-5y4qaueeq7] {
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
}

/* Alertas */
.alert[b-5y4qaueeq7] {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake-b-5y4qaueeq7 0.5s;
}

.alert-error[b-5y4qaueeq7] {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@keyframes shake-b-5y4qaueeq7 {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Formulario */
.login-form[b-5y4qaueeq7] {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group[b-5y4qaueeq7] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label[b-5y4qaueeq7] {
  font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i[b-5y4qaueeq7] {
    color: #667eea;
    font-size: 16px;
}

.form-input[b-5y4qaueeq7] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    color: #1e293b;
}

.form-input:focus[b-5y4qaueeq7] {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input:disabled[b-5y4qaueeq7] {
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Wrapper del password con toggle */
.password-input-wrapper[b-5y4qaueeq7] {
 position: relative;
display: flex;
    align-items: center;
}

.password-toggle[b-5y4qaueeq7] {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.password-toggle:hover[b-5y4qaueeq7] {
    color: #667eea;
}

.password-toggle:disabled[b-5y4qaueeq7] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mensajes de validaci�n */
.validation-error[b-5y4qaueeq7] {
    color: #dc2626;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.validation-error[b-5y4qaueeq7]::before {
    content: "?";
  font-size: 14px;
}

/* Acciones del formulario */
.form-actions[b-5y4qaueeq7] {
    margin-top: 8px;
}

.btn-login[b-5y4qaueeq7] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-login:hover:not(:disabled)[b-5y4qaueeq7] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-login:active:not(:disabled)[b-5y4qaueeq7] {
    transform: translateY(0);
}

.btn-login:disabled[b-5y4qaueeq7] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Spinner de carga */
.spinner[b-5y4qaueeq7] {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
    border-radius: 50%;
    animation: spin-b-5y4qaueeq7 0.8s linear infinite;
}

@keyframes spin-b-5y4qaueeq7 {
    to { transform: rotate(360deg); }
}

/* Footer del login */
.login-footer[b-5y4qaueeq7] {
    margin-top: 32px;
 text-align: center;
}

.footer-text[b-5y4qaueeq7] {
    color: #64748b;
  font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  gap: 8px;
}

.footer-text i[b-5y4qaueeq7] {
    color: #10b981;
}

.footer-links[b-5y4qaueeq7] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-link[b-5y4qaueeq7] {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover[b-5y4qaueeq7] {
    color: #764ba2;
    text-decoration: underline;
}

.separator[b-5y4qaueeq7] {
    color: #cbd5e1;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets */
@media (max-width: 768px) {
    .login-card[b-5y4qaueeq7] {
     padding: 36px 28px;
        border-radius: 20px;
  }

    .login-title[b-5y4qaueeq7] {
      font-size: 28px;
    }

    .logo-container[b-5y4qaueeq7] {
        width: 70px;
        height: 70px;
    }

    .logo-icon[b-5y4qaueeq7] {
        font-size: 36px;
    }

    .circle-1[b-5y4qaueeq7] {
        width: 200px;
   height: 200px;
    }

    .circle-2[b-5y4qaueeq7] {
        width: 150px;
        height: 150px;
    }
}

/* M�viles */
@media (max-width: 480px) {
    .login-container[b-5y4qaueeq7] {
        padding: 16px;
    }

    .login-card[b-5y4qaueeq7] {
        padding: 32px 24px;
    }

    .login-title[b-5y4qaueeq7] {
 font-size: 24px;
    }

    .login-subtitle[b-5y4qaueeq7] {
        font-size: 14px;
    }

    .form-input[b-5y4qaueeq7] {
    padding: 12px 14px;
        font-size: 14px;
 }

    .btn-login[b-5y4qaueeq7] {
  padding: 14px;
        font-size: 15px;
    }
}

/* ==================== DARK MODE (OPCIONAL) ==================== */

@media (prefers-color-scheme: dark) {
    .login-card[b-5y4qaueeq7] {
        background: #1e293b;
        color: #e2e8f0;
    }

    .login-subtitle[b-5y4qaueeq7] {
        color: #94a3b8;
    }

    .form-label[b-5y4qaueeq7] {
   color: #e2e8f0;
    }

  .form-input[b-5y4qaueeq7] {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    .form-input:focus[b-5y4qaueeq7] {
      border-color: #667eea;
        background: #0f172a;
    }

  .footer-text[b-5y4qaueeq7] {
   color: #94a3b8;
    }
}
