.pad-24 {
    padding: 24px;
}
.full-width {
    width: 100%;
}
.v-middle {
    vertical-align: middle;
}
.red {
  color: #CA0A0A;
}
.green {
  color: #63A646;
}

.pathway-container {
    display: flex;
    width: 100%;
    background-color: white;
    min-height: 100vh;
    max-width: 100%;
}
.sidebar {
    display: flex;
    flex-direction: column;
    width: 20%;
    border: 1px solid #ebebeb;
    border-radius: 2px;
    align-items: center;
    padding: 16px;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.sidebar-search-tb {
  width: 50%;
  
}
.cred-tabs {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-top: 16px;
    justify-content: start;
}
.cred-tab.active {
  background-color: #fff;
  border-bottom: 2px solid #007bff;
  font-weight: bold;
}
.cred-tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  margin-top: 10px;
  margin-left: 5px;
  background-color: #fff;
}
.cred-tab-content.active {
  display: block;
}

.canvas {
    width: 80%;
    height: 100vh;
    position: relative;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.cred {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    max-width: 120px;
    max-height: 120px;
    padding: 12px;
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.cert {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 110px !important;
  height: 110px !important;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.cred-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 370px;
}

.cred-selected {
  border: 2px dotted #699e6e;
  border-radius: 4px;
}

.cred-container-img {
  width: calc(50% - 10px); /* 50% of the container width minus the gap */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.pathway-cred {
    width: 120px !important;
    height: 120px !important;
    padding: 4px;
    position: absolute;
}

.cursor-move {
    cursor: move;
}

/* context menu */
.share .share-menu{
  position: absolute;
  background: #fff;
  width: 200px;
  right: -200px;
  top: -35px;
  padding: 13px;
  opacity: 0;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.08);
  transition: 0.2s ease;
}
.share:hover .share-menu{
  opacity: 1;
  pointer-events: auto;
}

tr.connection {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ebebeb;
}

.connection td:first-child {
  width: 40px;
  padding:8px;
}

.connection td {
  width: 40%;
  text-wrap: balance;
}

  /* switch */
  /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* end switch */

/* pathway textbox */
.pathway-tb {
  border: 1px solid #f0f0f0;
  resize: none;
}
.pathway-tb:focus {
  border-radius: 4px;
  outline: none !important;
  border: 1px solid #f0f0f0 !important;
}

/* search text have same pathway-tb styles, except different width on diff screen sizes  */
.search {
    border: 1px solid #f0f0f0;
    resize: none;
}
.search:focus {
  border-radius: 4px;
  outline: 1px #ccc !important;
  border: 1px solid #ccc !important;
}

/* pathway toolbar */
.toolbar {
  display: flex;
  justify-content: start;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;  
  border: none;
  padding: 12px 14px;
}
/* end - pathway toolbar */

.flex-column {
  display: flex;
  flex-direction: column;
}

/* margins */
.ml-20px {
  margin-left: 20px;
}

.mr-20px {
  margin-right: 20px;
}

.mb-20px {
  margin-bottom: 20px;
}

.mt-18px {
  margin-top: 18px;
}

.cert-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 239, 239, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.cert-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #3498db;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* menu */
.kebab-menu {
  position: absolute;
  top: 100%;
  width: 135px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  padding: 8px;
  list-style: none;
  margin: 5px 0;
  display: none;
  /* z-index: 999999 !important; */
}
.kebab-menu li {
  padding: 8px 12px;
  cursor: pointer;
}
.kebab-menu li:hover {
  background: #f0f0f0;
}
/* end - menu */

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.right-modal .modal-dialog {
  position: fixed;
  left: 0;
  top: 0;
  /* height: 100vh; */
  margin: 0;
  max-width: 400px; /* Adjust width as needed */
  background: transparent !important;
  box-shadow: none;
}

.bg-light {
  background-color: #f5f5f5 !important;
}

.logs-dialog .md-dialog-container {
  max-width: 900px;
  width: 90%;
  height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* extra small devices (phones, 600px and down) */
@media only screen and (max-width: 599px) {
  .sidebar {
    display: none;
  }
  .toolbar {
    display: none;
  }
  .canvas {
    width: 1500px;
    height: 1200px;
    overflow: visible;
  }
  .small-screen {
    display: block;
  }
  .leftbar-cred-container {
    display: none;
  }
}

/* small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 991px) {
  .sidebar {
    width: 30%;
  }
  .canvas {
    width: 70%;
  }
  .cred-container {
    width: 370px;
  }
  .cred-container-img {
    width: calc(50% - 10px);
  }
  .leftbar-cred-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .flex-center {
    display: flex;
    justify-content: center;
  }
  .small-screen {
    display: none;
  }
  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 60px !important;
  }
}

/* medium devices (landscape tablets, 960px and up) */
@media only screen and (min-width: 768) and (max-width: 1199px) {
  .sidebar {
    width: 20%;
  }
  .sidebar-input {
    max-width: 125px;
  }
  .canvas {
    width: 80%;
  }
  .leftbar-cred-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .flex-center {
    display: flex;
    justify-content: center;
  }
  .small-screen {
    display: none;
  }
  .add {
    text-align: center;
  }
  .highlighted {
    display: flex;
    width: var(--box-width, 125px);
    height: var(--box-height, 125px);
    padding: 3px;
    border: 2px solid var(--box-color, #007bff);
  }
  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 60px !important;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
  .sidebar {
    width: 20%;
  }
  .sidebar-search {
    display: flex;
    justify-content: space-evenly;
  }
  .sidebar-input {
    max-width: 125px;
  }
  .canvas {
    width: 80%;
  }
  .leftbar-cred-container {
    display: flex;
    flex-wrap: wrap;
    width: 250px !important;
    padding: 2px;
    margin-left: 0px;
  }
  .cred-tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  margin-top: 10px;
  background-color: #fff;
  width: 250px !important;
  }
  .cred-tab-content.active {
    display: block;
  }
  .cred {
    position: relative;
    width: 95px !important;
    height: 95px !important;
    padding: 16px;
    margin-bottom: 8px;
    margin-left: 10px;
  }
  .cert {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 95px !important;
    height: 95px !important;
    padding: 8px;
    margin-bottom: 12px;
    position: relative;
    border-radius: 2px;
  }
  .small-screen {
    display: none;
  }
  .highlighted {
    display: flex;
    width: 125px;
    height: 125px;
    padding: 3px;
    border: 1px solid var(--box-color, #007bff);
  }
  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 120px !important;
  }
}

@media only screen and (min-width: 1600px) {
  .sidebar {
    width: 20%;
  }
  .canvas {
    width: 80%;
    overflow-x: auto;
  }
  .leftbar-cred-container {
    display: flex;
    flex-wrap: wrap;
    min-width: 315px;
    justify-content: space-around;
    gap: 25px;
  }
  .cred {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 110px !important;
    height: 110px !important;
    border-radius: 2px;
    padding: 8px;
    margin-bottom: 16px;
    position: relative;
  }
  .cred-container-img {
    width: calc(50% - 10px);
  }
  .small-screen {
    display: none;
  }
  .highlighted {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 125px;
    height: 125px;
    padding: 8px;
    border: 1px solid var(--box-color, #007bff);
  }
}