/* ✅ Base Fullscreen Modal (Only for MSP) */
#mspModal.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ✅ Modal Content - Fullscreen Layout */
#mspModal .modal-content.fullscreen {
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  position: relative;
  border-radius: 0;
  margin: 0;
  padding: 0;
  border-left: 4px solid #006666; /* ✅ Unique Teal Accent */
}

/* ✅ Sidebar (Unique for MSP) */
#mspModal .sidebar {
  width: 280px;
  background-color: #e9f9f9; /* ✅ Light Teal Shade */
  border-right: 1px solid #99cccc;
  padding: 15px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

#mspModal .sidebar h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
  color: #004c4c;
  border-bottom: 2px solid #004c4c;
  padding-bottom: 5px;
}

#mspModal .sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mspModal .sidebar li {
  padding: 8px 10px;
  border-bottom: 1px solid #b3e0e0;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  color: #004c4c;
}

#mspModal .sidebar li:hover {
  background-color: #cceeee;
  color: #003333;
  font-weight: bold;
}

/* ✅ Drawing Panel */
#mspModal .drawing {
  flex: 1;
  background-color: #ffffff;
  overflow: auto;
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* ✅ SVG / Image Full Fit */
#mspModal #msp-svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#mspModal #msp-svgContainer img,
#mspModal #msp-svgContainer svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ✅ Close Button */
#mspModal .close-btn {
  position: absolute;
  top: 50px;
  right: 20px;
  font-size: 30px;
  color: #004c4c;
  cursor: pointer;
  z-index: 10000;
  background: #e6fafa;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}
#mspModal .close-btn:hover {
  background: #004c4c;
  color: #fff;
}

/* ✅ Show Details Button */
#mspModal #msp-showDetailsMsg {
  position: absolute;
  top: 50px;       /* thoda niche */
  left: 20px;      /* 👈 left side kar diya */
  font-size: 20px; /* 👈 font size chhota kiya */
  color: #004080;
  cursor: pointer;
  z-index: 10000;
  background: #f0f7ff;
  padding: 4px 8px;  /* chhota padding bhi */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

@keyframes mspBlinkShowDetails {
  0% { opacity: 1; }
  50% { opacity: 0.1; }
  100% { opacity: 1; }
}

/* ✅ MSP Details Popup */
#msp-detailsModal {
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 2px solid #006666;
  border-radius: 10px;
  padding: 20px 25px;
  width: 90vw;
  max-width: 1000px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  display: none;
  animation: mspPopupFade 0.3s ease-in-out;
}

/* ✅ MSP Details Content */
#msp-detailsModal #msp-detailsContent {
  max-height: calc(85vh - 70px);
  overflow-y: auto;
  padding: 15px 20px;
  background: #f9fefe;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}




/* ✅ Close Button (Details Popup) */
#msp-detailsModal .close-btn {
  position: absolute;
  top: 50px;   /* 👈 yeh bhi 10px se badha diya */
  left: 10px;
  font-size: 18px;
  color: #004080;
  font-weight: bold;
  background-color: #e6f3ff;
  padding: 10px 15px;
  border: 2px dashed #004080;
  cursor: pointer;
  animation: cduvduBlinkShowDetails 1s infinite;
  z-index: 10000;
  border-radius: 4px;
}
#msp-detailsModal .close-btn:hover {
  background: #004c4c;
  color: #fff;
}

@keyframes mspPopupFade {
  0% { opacity: 0; transform: translate(-50%, -45%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}
