body.ai-modal-open {
    pointer-events: none;
    overflow: hidden;
}
.ai-modal-overlay, 
.ai-modal-overlay * {
    pointer-events: auto;
}
.ai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
}
.ai-modal {
    background: white;
    border-radius: 8px;
    width: 85%;
    max-width: 1200px;
    height: 90%;
    overflow-y: hidden;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 20px;
    transition: opacity 0.3s ease;
    opacity: 0;
    box-sizing: border-box;
}
.ai-modal-body {
    height: 100%;
}
.ai-modal-overlay.show {
    display: flex !important;
}
.ai-modal-overlay.show .ai-modal {
    opacity: 1;
}
.ai-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: #333;
}
#markmap {
    width: 100%;
    height: 100%;
}
#markmap svg {
    width: 100%;
    height: 100%;
}
.markmap {
    height: 100%;
}
.markmap-container {
    height: 100%;
}
.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.ai-modal-title {
    font-size: 18px;
    margin: 0;
}
#AiMindMapBt, #AiSummaryBt {
    display: none;
    color: #fff !important;
    cursor: pointer;
}
.circle-border {
    background-color: #CCCCCC;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 3px 8px;
}
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}
@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}