/*CSS for cell : mindMap*/

:root {
    --mm-bg: #f5f6fb;
    --mm-sidebar-bg: rgba(255, 255, 255, 0.96);
    --mm-sidebar-border: #e3e4f0;
    --ms-accent: #7b61ff;         /* Magian purple */
    --mm-accent-soft: rgba(125, 59, 187, 0.08);
    --mm-accent-strong: #feb300;   /* Magian gold */
    --mm-text-main: #111827;
    --mm-text-muted: #6b7280;
    --mm-card-bg: #ffffff;   
    --ms-surface: #fbfbfd;
    --ms-border: rgba(16,24,40,0.12);
    --ms-border2: rgba(16,24,40,0.08);
    --ms-text: #101828;
    --ms-muted: rgba(16,24,40,0.62);
    --ms-shadow: 0 22px 70px rgba(0,0,0,0.22);
        /* subtle purple like the screenshot accents */
    --ms-accent2: rgba(123,97,255,0.18);
    --ms-btnbg: rgba(255,255,255,0.92);
    --ms-btnhover: rgba(16,24,40,0.04);
    --ms-radius: 18px;
    --ms-font: 'Universe', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

/* Use Microsoft look + system UI stack */
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto",
                 "Helvetica Neue", Arial, sans-serif;
}

/* Main cell wrapper */
#mindMapHolderDivID {
    background: radial-gradient(circle at top left,
                #ffffff 0, #f5f6fb 40%, #eef1f9 100%);
}

/* Inner frame: side-by-side layout */
#innerFrameMindMapDivID {
    display: flex;
    flex-direction: row;
}

/* Sidebar (left navigation) */
#leftNavMindMapMenu{
    background: var(--mm-sidebar-bg);
    border-right: 1px solid var(--mm-sidebar-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

/* Main panel */
#midMenuViewMindMapMenu {
    padding: 14px 20px 18px;
}

/* Top bar above the mindmap */
#topPanelMindMap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Container for your mind-map canvas */
#MindMapShowPanel {
    background: var(--mm-card-bg);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    margin-top: 10px;
    padding: 6px;
    position: relative;
    overflow: hidden;
}

/* jsMind canvas itself */
.jsmind-container {
    position: relative;
    border-radius: 16px;
    background: radial-gradient(circle at top,
                 #f7f6ff 0, #fbfbff 40%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
    width: 96%;
}

.layout-mmap 
{
    position: absolute;
}

.mid-map-bog-holder
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.jsmind-nav 
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
}

.jsmind-nav:hover
{
    cursor: pointer;
    transform: scale(1.2);
}
 
.jsmind-nav:hover:after 
{
    content: "View Content";
    display: block;
    position: relative;
    top: 200px;
    right: 15px;
    width: 200px;
    color: #feb300;
}

.jsmind-nav-mm 
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 20px;
}

.jsmind-nav-mm:hover
{
    cursor: pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm:hover:after 
{
    content: "Add Node";
    display: block;
    position: relative;
    top: 65px;
    right: 5px;
    width: 200px;
    color: #feb300;
}

.jsmind-nav-mm-1 
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 20px;
}

.jsmind-nav-mm-1:hover
{
    cursor:pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm-1:hover:after 
{
    content: "Remove Node";
    display: block;
    position: relative;
    top: 65px;
    right: 12px;
    width: 200px;
    color: #feb300;
}

.jsmind-nav-mm-2 
{
    width: 60px;
    height: 60px;
    border-radius: 3px;
    border: thin solid #feb300;
    margin-left: 20px;
}

.jsmind-nav-mm-2:hover
{
    cursor:pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm-2:hover:after 
{
    content: "Generate Doc Backward";
    display: block;
    position: relative;
    top: 65px;
    right: 42px;
    width: 200px;
    color: #feb300;
}

.jsmind-nav-mm-3 
{
    border-radius: 50%;
    margin-left: 20px;
}

.jsmind-nav-mm-3:hover
{
    cursor:pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm-3:hover:after 
{
    content: "Generate Doc forward";
    display: block;
    position: relative;
    top: 65px;
    right: 30px;
    width: 200px;
    color:#feb300;
}

.jsmind-nav-mm-300 
{
    border-radius: 50%;
    margin-left: 20px;
}

.jsmind-nav-mm-300:hover
{
    cursor:pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm-300:hover:after 
{
    content: "Generate Reports";
    display: block;
    position: relative;
    top: 65px;
    right: 20px;
    width: 200px;
    color:#feb300;
}

.jsmind-nav-mm-33 
{

    border-radius: 50%;
    margin-left: 20px;
}

.jsmind-nav-mm-33:hover
{
    cursor:pointer;
    transform: scale(1.2);
}

.jsmind-nav-mm-33:hover:after 
{
    content: "Search for a Word";
    display: block;
    position: relative;
    top: 65px;
    right: 15px;
    width: 200px;
    color:#feb300;
}

.jsmind-nav-mm-4 
{
    margin-left: calc(min(5vw, 15px));
}

.icon-follow-move 
{
    width:  30px;
    height: 30px;
    background: transparent;
    position: absolute;
	overflow: hidden;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5px;
    background-color: transparent;
    z-index: 3000;
    color: black;
    font-size: 16px;
    font-weight: bold;
    
}

.search-result-Big-d
{
    z-index: 3000;
    position: absolute;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

.search-result-d
{
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.pagination-container 
{
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.number 
{
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 1px solid #feb300;
    text-align: center;
    line-height: 25px;
    cursor: pointer;
    color:#feb300;
    border-radius: 5px;
  }
  .number:hover 
  {
    background-color: gray;
    color: ghostwhite;
  }

  .pagination-button
  {
    border-radius:5px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .pagination-span
  {
    font-size: 28px;
    color: #7D3BBB;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    border-radius:5px;
    position: absolute;
    top:2px;
  }

  .pagination-span:hover 
  {
    background-color: #7D3BBB;
    color: ghostwhite;
  }

  .pagination-span-pageN
  {
    font-size: 22px;
    color: #7D3BBB;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    border-radius:5px;
  }

.all-button-ho
{
    position: absolute;
    display: flex;
    justify-content:left;
    align-items: center;
    justify-items: center;
    
    border-radius: 4px;
}

.button-icon-add-node
{
    position:absolute;
    display: flex;
    justify-content:center;
    align-items: center;
    justify-items: center;
    text-align: center;
    font-weight: bold;
}
.menu-holder-node
{
    position: absolute;
    border-radius: 6px;
    border: thin solid #7D3BBB;
    background-color: #7D3BBB;

}

.movableDiv 
{
    border-radius: 50%;
    border: thick solid #7D3BBB;
    position: absolute;
    cursor: pointer;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    text-align: center;
}
.mind-map-menu-button
{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 0;
    border-top: 1.5px solid #feb300;
    border-bottom: 1.5px solid #feb300;
    border-radius: 5px;
    color: #007bff;
   /* font-family: "Univers Condensed", sans-serif;*/
   font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 0 5px #feb300;
}

.mind-map-menu-button:hover
{
    background-color: black;
    border-top: 1.5px solid #7D3BBB;
    border-bottom: 1.5px solid #7D3BBB;
    color:white;
    font-weight: bold;
    box-shadow: 0 0 5px #7D3BBB;
}

.supr-top-holder-left-nav
{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.supr-top-holder-left-nav-in
{
    display: flex;
    align-items: center;
}


.mm-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin: 2px 0;
    border-radius: 8px;
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease,
                color 0.18s ease,
                transform 0.18s ease;
}

.mm-menu-item:hover {
    background: var(--mm-accent-soft);
    color: var(--mm-accent);
    transform: translateX(1px);
}

.mm-menu-icon {
    font-size: 1rem;
    opacity: 0.85;
}

.mm-menu-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-project-category {
    padding: 12px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mm-text-muted);
}

.mm-project-item {
    padding: 6px 12px 6px 20px;
    margin: 2px 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease,
                transform 0.18s ease,
                box-shadow 0.18s ease;
}

.mm-project-item:hover {
    background: rgba(125, 59, 187, 0.04);
    transform: translateY(-1px);
}

.mm-project-item-active {
    background: linear-gradient(135deg,
                rgba(125, 59, 187, 0.12),
                rgba(254, 179, 0, 0.12));
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.mm-project-name {
    font-size: 0.9rem;
    color: var(--mm-text-main);
}

.mm-project-date {
    font-size: 0.7rem;
    color: var(--mm-text-muted);
}

#searchPanelHolder {
    padding: 6px 16px 10px;
}

#searchInput.search-input-fusion {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: border 0.16s ease,
                box-shadow 0.16s ease,
                background 0.16s ease;
}

#searchInput.search-input-fusion:focus {
    outline: none;
    border-color: var(--mm-accent);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(125, 59, 187, 0.25);
}

.mm-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 59, 187, 0.4);
    background: radial-gradient(circle at top left,
                 #f9fafb, transparent);
    color: var(--mm-accent);
    font-size: 12px; /*0.8rem*/
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease,
                transform 0.16s ease,
                box-shadow 0.16s ease;
    text-align: center;
    display: flex;
    justify-content: center;

    height: 30px;
    min-width: 75px;

    
}

.mm-pill-link:hover {
    background: rgba(125, 59, 187, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(125, 59, 187, 0.35);
}

.mm-collapse-button {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease,
                box-shadow 0.16s ease,
                background 0.16s ease;
}

.mm-collapse-button:hover {
    transform: translateX(1px) scale(1.04);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    background: rgba(125, 59, 187, 0.06);
}


.mm-empty-state,
#mm-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--mm-text-muted);
}

.mm-empty-icon {
    font-size: 2.4rem;
}

.mm-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mm-text-main);
}

.mm-empty-subtitle {
    font-size: 0.85rem;
    max-width: 340px;
}

#leftNavMindMapMenuTop a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jsmind-container::-webkit-scrollbar {
    width: 5px;
}


/* =========================
   Answercraft-like Upload Modal
   ========================= */

.mm-up-overlay{
    position:fixed;
    inset:0;
    z-index:999999;

    /* softer overlay + subtle blur like the screenshot */
    background: rgba(17,24,39,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    display:flex;
    align-items:center;
    justify-content:center;

    padding: 24px;
}

.mm-up-modal{
    width: min(980px, 94vw);
    max-height: min(860px, 92vh);
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    /* softer shadow (not dark “neon”) */
    box-shadow:
        0 24px 70px rgba(0,0,0,0.16),
        0 2px 10px rgba(0,0,0,0.06);

    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    color: #111827;
}

.mm-up-modal *{
    box-sizing: border-box;
}

.mm-up-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding: 18px 22px;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.mm-up-title{
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.2px;

    display:flex;
    align-items:center;
    gap: 10px;

    color:#111827;
}

.mm-up-badge{
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;

    /* neutral pill like Answercraft */
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.mm-up-close{
    cursor:pointer;

    width: 40px;
    height: 40px;

    border-radius: 999px;

    display:flex;
    align-items:center;
    justify-content:center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;

    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    user-select:none;
}

.mm-up-close:hover{
    background: #f9fafb;
}

.mm-up-body{
    padding: 22px;
    background: #ffffff;
}

/* drop zone becomes a light card (not dark dashed neon) */
.mm-up-drop{
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #f9fafb;

    padding: 18px 18px;
    display:flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.mm-up-drop.is-dragover{
    border-color: rgba(124,58,237,0.55);
    background: rgba(124,58,237,0.06);
}

/* left side */
.mm-up-left{
    display:flex;
    align-items:center;
    gap: 14px;
    min-width: 0;
}

.mm-up-ico{
    width: 48px;
    height: 48px;
    border-radius: 14px;

    display:flex;
    align-items:center;
    justify-content:center;

    background: #f3e8ff;                 /* subtle purple tint */
    border: 1px solid #e9d5ff;
    color: #6d28d9;

    font-size: 22px;
    flex: 0 0 auto;
}

.mm-up-copy{
    min-width: 0;
}

.mm-up-copy .h{
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
    color: #111827;
}

.mm-up-copy .s{
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}

/* actions like Answercraft pills */
.mm-up-actions{
    display:flex;
    gap: 10px;
    align-items:center;
    flex: 0 0 auto;
}

/* (You didn’t include btn CSS in your snippet; add it to match screenshot) */
.mm-up-btn{
    cursor:pointer;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;

    border: 1px solid #e5e7eb;
    background: #ffffff;
    color:#111827;

    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.mm-up-btn:hover{
    background:#f9fafb;
}

.mm-up-btn.primary{
    border-color: rgba(124,58,237,0.35);
    background: rgba(124,58,237,0.08);
    color: #5b21b6;
}

.mm-up-btn.primary:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

/* selected file row */
.mm-up-file{
    margin-top: 14px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;

    padding: 12px 14px;
    border-radius: 14px;

    background: #f9fafb;
    border: 1px solid #e5e7eb;

    font-size: 12px;
}

.mm-up-file span{
    color: #374151;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mm-up-status{
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    min-height: 18px;
}

.mm-up-prog-wrap{
    margin-top: 10px;
    height: 10px;

    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;

    overflow:hidden;
    display:none;
}

.mm-up-prog-bar{
    height: 100%;
    width: 0%;
    background: rgba(124,58,237,0.75);
}

.mm-up-foot{
    margin-top: 14px;
    display:flex;
    justify-content:flex-end;
    gap: 10px;
}

.node-menu
{
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    font-weight:800;
    font-size:13px;
    cursor:pointer;
    text-align:left;
    border:1px solid rgba(10,20,40,0.12);
    background: rgba(255,255,255,0.70);
    color: rgba(15,23,42,0.92);
}
.node-menu:hover
{
    background: linear-gradient(90deg, rgba(10,116,255,0.92), rgba(43,139,255,0.92)); 
    color:#fff; 
    border-color: rgba(43,139,255,0.92);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(43,139,255,0.35);
}




