.video-placeholder .yt-preview {
  display: block;
  margin-top: 10px;
  /* Adjust this value to control spacing */
  max-width: 400px;
}

/* Styling for attached images */
.att-img_old {
  /* centering as block */
  /* display: block; */
  margin: 0 auto;
  max-width: 100%;
}

.att-img {
  display: block;
  /* Makes the image a block element to position it naturally */
  margin: 0;
  /* Removes centering */
  max-width: 100%;
  /* Ensures the image doesn't exceed the container's width */
}

/* SVG-specific styling */
.att-img-svg {
  max-height: 150px;
  object-fit: contain;
}

/* Raster image-specific styling */
.att-img-raster {
  max-width: 560px;
}

/* Responsive media query for smaller screens */
@media (max-width: 768px) {
  .att-img-svg {
    max-height: 100px;
    /* Smaller height for SVGs on small screens */
  }

  .att-img-raster {
    max-width: 400px;
    /* Smaller width for raster images */
  }
}

/* Responsive media query for smaller screens */
@media (max-width: 480px) {
  .att-img-svg {
    max-height: 100px;
    /* Smaller height for SVGs on small screens */
  }

  .att-img-raster {
    max-width: 100%;
    /* Smaller width for raster images */
  }
}





/* table */

table {
  width: fit-content;
  /* Optional, to make the table use full width */
  /* max-width: 800px;  */
  border-collapse: collapse;
}

td,
th {
  vertical-align: top;
  text-align: left;
  padding: 8px;
  border: 1px solid #ddd;
  word-wrap: break-word;
  /* Enable word wrapping */
  white-space: normal;
  /* Allow text to wrap */
}

th {
  cursor: pointer;
  background-color: #7eb4ff;
  color: white;
}

tr:nth-child(even) {
  /* background-color: #f2f2f2; */
}

.no-borders td,
.no-borders th,
.no-borders table {
  border: none;
}

/* Fix for inner tables in added rows */
.added-row-table {
  width: auto;
  table-layout: auto;
  border: none;
}

.added-row-table td {
  padding: 8px;
  text-align: left;
  border: none;
}

.added-row-title {
  /* optional */
  /* background-color: #7eb4ff; */
  color: white;
  border: none;
}

/* */

.eml-table td,
.eml-table th {
  padding: 2px;
}

/*  */

.wrap-space {
  line-height: 1.6;
  /* Adjust line height for better spacing */
  word-wrap: break-word;
  /* Ensures long words wrap properly */
  overflow-wrap: break-word;
  /* Modern equivalent for breaking words */
  white-space: normal;
  /* Ensures text wraps normally */
}

/*  */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal {
  color: black;
  background: rgb(236, 235, 235);
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.custom-modal button {
  border-radius: 5px;
  margin: 10px;
  padding: 8px 15px;
  cursor: pointer;
}

.custom-modal .confirm-btn {
  border-radius: 5px;
  border-color: white;
  background: rgb(255, 71, 71);
  color: white;
}

.custom-modal .confirm-btn:hover {
  background: rgb(211, 24, 24);
}

.custom-modal .cancel-btn {
  border-color: white;
  border-radius: 5px;
  background: gray;
  color: white;
}

.custom-modal .cancel-btn:hover {
  background: rgb(82, 81, 81);
}

.custom-alert {
  position: fixed;
  top: 10px;
  right: 10px;
  background: green;
  color: white;
  padding: 10px;
  border-radius: 5px;
}

.custom-alert-success {
  background: green;
}

.custom-alert-error {
  background: #b3261e;
}

.underline {
  text-decoration: underline;
  text-decoration-color: rgb(136, 136, 136);
}

.link-active {
  text-decoration: underline;
  text-decoration-color: rgb(204, 32, 32);
  color: white !important;
  background: rgb(9, 95, 207);
}

/*  */

.hide {
  display: none;
}

.show {
  display: block;
}

/*  */

#info-icon {
  cursor: pointer;

}

#info-boxXX {
  display: none;
  position: absolute;
  color: black;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  font-size: 0.9em;
}

#info-box {
  display: none;
  position: absolute;
  color: black;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  font-size: 0.9em;
  width: 200px;
}

.not-found {
  color: black;
  font-size: 0.95em;
  background-color: #ffad99;
  border-radius: 5px;
  padding: 5px !important;
  ;
  border: 1px solid #f07808;
  display: inline-block;
  /* or use block */
  box-sizing: border-box;
  min-width: fit-content;
}

.warning {
  color: black;
  font-size: 0.95em;
  background-color: #fd823b;
  border-radius: 5px;
  margin: 10px 25px !important;
  padding: 5px !important;
  ;
  border: 1px solid #f07808;
  display: inline-block;
  /* or use block */
  box-sizing: border-box;
  min-width: fit-content;
}

.sign,
.sign-shared,
.sign-remove {
  color: black !important;
  font-size: 0.8em;
  border-radius: 5px;
  margin: 5px !important;
  padding: 2px !important;
  border: 1px solid #2366cabb;
  display: inline-block;
  box-sizing: border-box;
  min-width: fit-content;
}

.sign {
  background-color: #c4bcf0;
}

.sign-shared,
.sign-remove {
  background-color: #67d8a0;
}

.sign-remove {
  margin: 0px !important;
  padding: 2px 5px 2px 5px !important;
  ;
}

.sign-remove:hover {
  background-color: #ff6565;
}

.share-icon {
  width: 16px;
  height: auto;
  /* or 16px if you want exact square */
  display: inline-block;
  vertical-align: middle;
}

/*  logo */

.domain {
  white-space: nowrap;
  /* 🔒 keep it all on one line */
}

.logo-prefix {
  font-family: 'Roboto', sans-serif;
  font-weight: 200
    /* Thin */
}

.logo-main {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  /* Regular */
}


/* 1. option wrap pre code */
/* enables horizontal scroll only inside pre */
/* ensures it doesn't exceed the screen */
pre {
  white-space: pre-wrap;

  word-wrap: break-word;

  overflow-x: auto;

  max-width: 100%;

  box-sizing: border-box;
}

pre,
code {
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 2. option  Wrap only on mobile */

/* @media only screen and (max-width: 600px) {
  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
  }
}

pre::-webkit-scrollbar {
  height: 6px;
}
pre::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
} */

/* 3. option always scrollable */

/* pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;  
  box-sizing: border-box;
}

pre {
  overflow-x: scroll;  
} */

/* empty input field */


.file-icon {
  color: var(--text-color);
}

.file-icon-video {
  display: inline-block;
  border: 1px solid #d44444;
  border-radius: 25x;
  background-color: #c9180c;
  color: white;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px 2px 4px;
  margin: 0 5px;
}

.file-icon-pdf {
  display: inline-block;
  border: 1px solid #d44444;
  border-radius: 5px;
  background-color: #c9180c;
  color: white;
  font-size: 10px;
  line-height: 1;
  padding: 2px;
  margin: 0 5px;
}

.file-icon-md {
  display: inline-block;
  border: 1px solid #8b8b8b;
  border-radius: 5px;
  background-color: #d8d8d8;
  color: rgb(12, 12, 12);
  font-size: 10px;
  line-height: 1;
  padding: 2px;
  margin: 0 5px;
}

.file-icon-eml {
  display: inline-block;
  border: 1px solid #8b8b8b;
  border-radius: 5px;
  background-color: #d8d8d8;
  color: rgb(12, 12, 12);
  font-size: 10px;
  line-height: 1;
  padding: 2px;
  margin: 0 5px;
}

.hashtags {
  margin-top: 1em;
}

#tagsButton.active {
  font-weight: bold;
  outline: 1px solid currentColor;
}

.toolbar-md .tooltags {
  background-color: #919191;
  color: white;
  /* border-radius: 5px; */
  padding: 5px;
}

/*  */


.settings-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.settings-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
}

.settings-row input[type="text"],
.settings-row select {
  width: 100%;
  box-sizing: border-box;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}