.tools-page {
.editor-shell { border-radius: 20px; }

.editor-card {
  border-radius: 18px;
  overflow: visible;
}

.toolbar-wrap {
  background: rgba(255,255,255,.75);
  overflow: visible; 
  position: relative; 
  z-index: 10;
}

.toolbar-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px 6px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

.toolbar-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap: nowrap;
}

.btn-more{ border-radius: 10px; padding: 6px 10px; }

@media (max-width: 576px){
  .toolbar-topbar{ padding: 8px; }
}

.toolbar-wrap .ql-toolbar.ql-snow { 
    border-top: 0; 
    border-bottom: 0;
    padding: 6px 8px 6px;
    background: transparent;
}

.ql-formats { margin-right: 6px; }

#toolbar { padding: 0; min-height: 40px; } 

.toolbar-wrap:not(.show-advanced) .ql-toolbar .ql-formats:nth-child(n+11) {
    display: none;
}

/* Ensure they display when show-advanced is active */
.toolbar-wrap.show-advanced .ql-toolbar .ql-formats {
    display: inline-block;
}

.editor-surface {

  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15,23,42,.04);
}

.ql-editor {
  line-height: 1.75;
  font-size: 1rem;
  padding: 16px;
}

.btn-save {
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

#output {
  border-radius: 14px;
  background: rgba(255,255,255,.7) !important;
}

/* RTL / Arabic support */
.ql-editor[dir="rtl"] { direction: rtl; text-align: right; }
.ql-editor[dir="ltr"] { direction: ltr; text-align: left; }

/* Keep toolbar LTR even in RTL mode */
.rtl-mode #toolbar { direction: ltr; }

.toolbar-controls .toggle-button {
           
            padding: 4px 8px !important;
            font-size: var(--font-size-p1) !important;
        
}
#btnMore{
  width: 80px;
  border: transparent !important;
}
#btnMore:active{
border: transparent !important;
}
}