/* 
main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    border: solid 2px red;
    padding: 5em 0;
} */

.newElementWrapper {
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px;
}

.tool {
  position: relative;
  margin-right: 10px;
}
.add {
  border-radius: 50%;
  background: #fff;
  border: 1px solid #444444;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.content {
  border: 1px solid #ccc;
  padding: 10px;
  flex-grow: 1;
}

.tools {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 1;
}

.tool_button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.tool_button svg {
  width: 20px;
  height: 20px;
}

.title_descr {
  margin-bottom: 20px;
}

.tools_wrap {
  position: absolute;
  top: -13px;
  left: 40px;
  display: none;
  border: solid 2px forestgreen;
}

.tools_wrap.visible {
  display: flex;
}

.image_element {
  max-width: 500px;
  overflow: hidden;
}
.image_element img {
  width: 100%;
  height: auto;
}

.formatting-tools {
  position: absolute;
  /* background: white; */
  border: 1px solid #ccc;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  gap: 5px;
}

.formatting-tools button {
  background: none;
  border: 1px solid #ccc;
  padding: 5px;
  cursor: pointer;
}

.link-input {
  display: none;
  width: 200px;
  margin-left: 5px;
  padding: 5px;
  border: 1px solid #ccc;
}

/* styles.css */
#popup_container {
  /* min-width: 600px; */
  max-height: 550px;
  min-height: 300px;
  height: fit-content;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* border: solid 2px var(--border-color); */
  /* background: var(--bg-color); */
  padding: 20px;
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  color: var(--h1);
  max-width: 1005px;
  width: 100%;
  /* height: 70vh; */
  overflow-y: scroll;
}
@media (max-width:1024px) {
  #popup_container{
    padding: 10px;
    width: 95%;
    
  }
  .editr-mdl-toolbar{
    flex-direction: column;
    height: fit-content;
  }
  .popup_stylesWrap{
    flex-direction: column;
    height: fit-content;
  }
  
}

#popup {
  border: solid 2px black;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.popup__explanation {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-family: Urbanist;
  font-size: 24px;
  font-weight: 600;
  line-height: 28.8px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--h1);
}

.popup__input {
  border: solid 2px var(--border-color);
  padding: 10px;
  display: block;
  width: 300px;
  background-color: var(--body-bg);
  color: var(--h1);
}

#popup__wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

#popup__wrap .popup__input {
  width: 100%;
  min-height: 30px;
  height: 70px;
  padding: 12px;
  /* margin-bottom: 20px; */
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
}

#popup__wrap .popup__input:focus {
  outline: none;
  border-color: #0ea5e9;
}
#popup__wrap .popup__input::placeholder {
  padding: 0px;
}

#popup__button {
  display: block;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 auto;
  width: 200px;
  background-color: #0378a4;
  color: white;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

#popup__button:hover {
  background-color: #025f8a;
}

#compile-latex-btn {
  /* margin-bottom: 10px; */
  display: block;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 10 auto;
  width: 200px;
  background-color: #0378a4;
  color: white;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

#compile-latex-btn:hover {
  background-color: #025f8a;
}
/* app styles all styles here are important  */

#postWrapp {
  border: solid 2px gray;
  padding: 20px;
  width: 80%;
  max-width: 1000px;
}

#content_container {
  background-color: var(--input-color);
  padding: 20px;
  font-size: 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 100%;
  line-height: 1.5rem;
  min-width: 250px;
  overflow: hidden;
  min-height: 500px;
}
.hidden {
  display: none;
}

/* images */
.img_content_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
}
#content_container img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 80%;
}

/* headers */
#content_container h1,
#content_container h2,
#content_container h3,
#content_container h4,
#content_container h5,
#content_container h6 {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}

#content_container h1 {
  font-size: 2.5rem;
}
#content_container h2 {
  font-size: 2rem;
}
#content_container h3 {
  font-size: 1.8rem;
}
#content_container h4 {
  font-size: 1.6rem;
}
#content_container h5 {
  font-size: 1.4rem;
}
#content_container h6 {
  font-size: 1.2rem;
}

/* ifame video */
.iframe_content_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  width: 100%;
}
#content_container iframe {
  display: block;
  width: 100%;
  height: 400px;
  max-width: 80%;
}

/* order list */
#content_container ol {
  padding: 20px;
  margin: 20px 0;
}
#content_container ol li {
  margin-bottom: 10px;
}

/* unoeder list */
/* #content_container {
    padding: 20px;
    margin: 20px 0;
} */

#content_container ul,
#content_container ol {
  padding-left: 40px;
  margin: 20px 0;
}

#content_container ul li,
#content_container ol li {
  margin-bottom: 10px;
}

.editablecontent_item {
  list-style-type: disc; /* Default list style */
}

#content_container ul {
  list-style-type: disc; /* Level 1 */
}

#content_container ul ul {
  list-style-type: circle; /* Level 2 */
}

#content_container ul ul ul {
  list-style-type: square; /* Level 3 */
}

#content_container ul ul ul ul {
  list-style-type: decimal; /* Level 4 */
}

#content_container ul ul ul ul ul {
  list-style-type: lower-alpha; /* Level 5 */
}

#content_container ul ul ul ul ul ul {
  list-style-type: lower-roman; /* Level 6 */
}

/* Table center */
#content_container table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ccc;
}

#content_container th,
#content_container td {
  border: solid 1px black;
  padding: 10px;
}

/* Table wrapper for horizontal scrolling */
.tableWrap {
  overflow-x: auto;
}

.tableWrap table {
  width: 100%;
  max-width: none;
  min-width: 600px; /* Adjust based on minimum readable width */
}

.hidden {
  display: none;
}

/* uamir editor css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.editr-mdl-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: rgba(0, 0, 0, 0.5); */
  display: flex;
  justify-content: center;
  align-items: center;
}

.editr-mdl {
  background: var(--body-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 24px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.editr-mdl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.editr-mdl-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--h1);
}

.editr-mdl-close-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  padding: 4px;
}
.editr-mdl-feature-select {
  height: 55px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: var(--input-color);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--h1);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d3d3d3' stroke='%23d3d3d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}


.editr-mdl-feature-select option {
  
  background: var(--post-bg)!important;

  color: var(--h1);
  
}
.editr-mdl-text-area {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  resize: vertical;
}

.editr-mdl-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: var(--body-bg);
}

.editr-mdl-toolbar select {
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: var(--body-bg);
  color: var(--h1);
  font-size: 14px;
}

.editr-mdl-toolbar button {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: var(--body-bg);
  color: var(--p);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .editr-mdl-toolbar button:hover {
  background-color:#67bee9;
} */

.editr-mdl-button-group {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.editr-mdl-apply-button {
  padding: 8px 24px;
  background-color: #0085c7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.editr-mdl-apply-button:hover {
  background-color: #006da3;
}

.editr-mdl-cancel-button {
  padding: 8px 24px;
  background-color:var(--engagement-item);
  color: var(--h1);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.editr-mdl-cancel-button:hover {
  background-color: var(--engagement-item);
  color: var(--h1);
}

.popup_stylesWrap {
  max-height: fit-content;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  background: var(--input-color);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  /* padding: 8px; */
  gap: 12px;
}

.popup_style_item {
  max-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-right: 1px solid #e2e8f0;
}

.popup_style_item:last-child {
  border-right: none;
}

.popup_style_item label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.popup_style_item input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 2px;
  border-radius: 4px;
}

.popup_style_item input[type="range"] {
  width: 100px;
}

.popup_style_item .popup__select {
  min-width: 120px;
  padding: 4px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background-color: var(--input-color);
  color: var(--h1);
}
.popup__select option{
  background-color: var(--body-bg) !important;
  
}
.popup_style_item #text_size_value {
  min-width: 45px;
  font-size: 12px;
}

#ud-rd {
  width: 50px;
  display: flex;
  margin-right: 5px;
}
.edit-btn-com {
  width: 25px;
}
#text_color {
  width: 30px !important;
  height: 20px !important;
  padding: 1px !important;
  border-radius: 2px !important;
}
  
  /* #popup_container{
    height: 700;
    white-space: nowrap;
    overflow-y: scroll;
  } */
  

 .latex-img{
  width: 650px;
 }

 @media (max-width:1024px) {
  
 .latex-img{
  width: 320px;
 }
  
 }
 .operation{
  display: flex;
  gap: 8px;
 }