

html, body { 
  margin:0; 
  padding:0; 
  height:100%; 
  overflow:hidden; 
  font-family: 'iransansx', sans-serif; 
  color: #444;
}
#toolbar { 
  padding: 5px 10px 5px 5px; 
  background: #f5f5f5; 
  display:flex; 
  gap:10px; 
  justify-content: space-between;
}
button { 
  border: none; 
  border-radius: 3px;
  background-color: #eaeaea;
  direction: rtl;
  width: 41px;
  height: 41px;
  cursor: pointer;
}
button.zoom-in-out { 
  border: none; 
  border-radius: 3px;
  background-color: #eaeaea;
  direction: rtl;
  width: 30px;
  height: 30px;
  margin: 5px;
  cursor: pointer;
}
.zoom-item{
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 10;
  right: 10px;
  bottom: 10px;
}
button:hover { 
  border: none; 
  background-color: #dadada;
}
a.bjs-powered-by {
  display:none;
}
.icon-color {
  width: 28px; height: 28px; border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  border: 0px solid #ddd; background: #fff;
  margin-bottom: 0px !important;
  margin-top: 1px !important;
}
.icon-color svg {
  width: 20px;
  height: 20px;
}
.djs-popup.color-picker {
  position: absolute;
  background: white;
  border-radius: 2px;
  padding: 9px 12px 9px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  justify-items: center;
}
.djs-popup.color-picker ul {
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  gap:6px;
  width: 105px;
  flex-wrap: wrap;
  justify-content: center;
}        
.djs-popup-entry-icon {
  width: 28px;
  height: 28px;
  border-radius: 3px;
}
.djs-popup-entry-icon:hover{
  background-color: rgb(222, 222, 222);
}
.djs-popup-entry-icon rect {
  rx: 2;
}
.shortcut-toggle{
  width: 40px;
  height: 40px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  padding: 0 !important;
}
#shortcut-panel{ 
  display: none;
  position: fixed;
  top: 60px;
  right: 10px;
  width: 400px;
  overflow-y: auto;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  direction: rtl;
}
.djs-direct-editing-content{
  direction: rtl;
}
text.djs-label {
  direction: rtl;
  text-anchor: end;
}
.djs-palette {
  touch-action: none;
}
#canvas {
  touch-action: none;
  width: 100%;
  height: calc(100% - 50px); 
  border: 1px solid #ccc; 
  z-index: 10;
}
.title{
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
  margin-bottom: -3px;
}
.left-side{
  display: flex;
  align-items: center;
  width: 280px;
  min-width: 270px;
  justify-content: space-evenly;
}
.right-side{
  display: flex;
  align-items: center;
  width: 200px;
  min-width: 190px;
  justify-content: space-between;
}
.site a{
  position: absolute;
  right: 60px;
  bottom: 13px;
  z-index: 10;
  color: rgb(173, 173, 173);
  text-decoration: none;
}
.site a:hover{
  color:rgb(132, 132, 132);
}
#btnUndo {
 position: absolute;
 bottom: 15px;
 left: 15px;
 z-index: 10;
 font-weight: bold;
 align-items: center;
}
#btnRedo {
  position: absolute;
  bottom: 15px;
  left: 65px;
  z-index: 10;
  font-weight: bold;
  align-items: center;
}
button:hover g{
  fill: #242424;
}
button:hover svg{
  fill: #242424;
}
.bjs-breadcrumbs {
  font-family: "iransansx" !important;
}

@media screen and (max-width: 515px) {
  #shortcut-toggle {
      display: none;  /* المان مخفی می‌شود */
  }
  .right-side {
    display: flex;
    align-items: center;
    min-width: 100px;
    width: 110px;
    justify-content: flex-end;
  }
  .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: -3px;
  }
}
