/* site.css - ColletiHistorialVirtual Unified Styles */

/* --- Global Loading Overlay --- */
#global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 249, 246, 0.75);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

#global-loading-overlay.show {
    display: flex !important;
}

.loading-spinner-container {
    text-align: center;
}

.loading-text {
    margin-top: 15px;
    font-weight: 600;
    color: #4a3728;
}

/* --- Notification System (Toasts) --- */
.toast-container {
    z-index: 1000000 !important;
}

.toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-xs {
    padding: 1px 5px;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 3px;
}

/* --- Shared Utility Styles --- */
.text-border {
    display: flex;
    align-items: center;
    text-align: center;
}

.text-border::before,
.text-border::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.text-border::before {
    margin-right: .5em;
}

.text-border::after {
    margin-left: .5em;
}

/* Fix for disabled inputs in some browsers */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 1;
    cursor: not-allowed;
}

/* Custom spacing and typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.card {
    border-radius: 0.75rem;
}

/* --- Markdown Global Rules --- */
.markdown-content { line-height: 1.6; }
.markdown-content p { margin-bottom: 0.75rem; }
.markdown-content p:last-child { margin-bottom: 0; }
.markdown-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.markdown-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.markdown-content li { margin-bottom: 0.25rem; }
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4, .markdown-content h5, .markdown-content h6 { margin-top: 1rem; margin-bottom: 0.5rem; font-weight: 600; color: #333; }
.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.25rem; }
.markdown-content h3 { font-size: 1.1rem; }
.markdown-content strong { font-weight: 600; }
.markdown-content em { font-style: italic; }
.markdown-content blockquote { border-left: 4px solid #e5e7eb; padding-left: 1rem; margin-left: 0; color: #6b7280; }
