/*
 * Shared styling for the "Insert Math" modal (native <dialog>).
 * RichEditor/KaTeX content styling already lives in admin-panel.css — this file only
 * covers the modal dialog itself.
 * Registered as a Filament asset — see App\Providers\AppServiceProvider::boot().
 */

/* Fisat Math Modal — native <dialog> */
dialog#fisat-math-modal {
    border: none;
    background: transparent;
    padding: 0;
    max-width: none;
    max-height: none;
    outline: none;
    margin: auto;
}
dialog#fisat-math-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
#fisat-math-dialog-inner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    width: min(580px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: #111827;
    font-family: inherit;
}
#fisat-math-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
    font-size: 1.125rem;
    color: #111827;
}
#fisat-math-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#fisat-math-label, #fisat-math-preview-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}
#fisat-math-input {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #111827;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    line-height: 1.6;
}
#fisat-math-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}
#fisat-math-preview {
    min-height: 3.5rem;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: #374151;
    overflow-x: auto;
}
#fisat-math-examples {
    font-size: 0.8rem;
    color: #6b7280;
}
#fisat-math-examples strong {
    font-weight: 500;
    color: #374151;
}
.fisat-eg-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}
.fisat-eg-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-family: inherit;
}
.fisat-eg-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}
#fisat-math-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #f9fafb;
    border-radius: 0 0 0.75rem 0.75rem;
}
#fisat-math-cancel {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.12s, border-color 0.12s;
}
#fisat-math-cancel:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }
#fisat-math-insert {
    background: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.12s;
}
#fisat-math-insert:hover { background: #4338ca; border-color: #4338ca; }
