/* TheoremReach Modal Styles - Standardized */
/* Uses design tokens from style.css */

.theoremreach-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.2s ease;
}

.theoremreach-modal-content {
    background: var(--bg-secondary, #1C1917);
    width: 95%;
    height: 95%;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.4));
    border: 1px solid var(--border, #292524);
    display: flex;
    flex-direction: column;
}

.theoremreach-modal-header {
    padding: 14px 16px;
    background: #A855F7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.theoremreach-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: var(--font-md, 16px);
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.theoremreach-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.theoremreach-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.theoremreach-modal-body {
    flex: 1;
    overflow: hidden;
    background: var(--bg-secondary, #1C1917);
}

.theoremreach-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}