.multi-tool-container {
  max-width: 95vw;
  margin: 0 auto;
}

label {
  text-align: left;
  display: block;
  padding: 0rem 0.25rem;
  font-size: 1.25rem;
}

.form-control {
  border-radius: 16px !important;
  padding: 0.75rem;
  border: 1px solid var(--theme-color-outline-variant);
  flex-grow: 5;
}

.mt-action-bar {
  display: flex;
  gap: 10px;
  align-items: start;
  border: none;
  backdrop-filter: blur(2px);
  top: 10px;
  z-index: 11;
  padding: 1.25rem;
  border-radius: 2rem;
  margin: 0px 25px;
  justify-content:center;
}


.mt-action-bar>* {
  padding-bottom: 0.5rem;
}
.mt-file-uploader {
  width:100%
}
.mt-action-bar svg,
.mt-action-btn svg {
  width: 20px;
  height: 20px;
}

.mt-action-bar .mt-filename {
  width: 100%;
  display: flex;
  gap: 10px;
}

.mt-action-btn {
  position: sticky;
  bottom: 10%;
  margin: auto;
  margin-bottom: 25px;
  border-radius: 2rem;
  z-index: 12;
  background-color: var(--md-sys-color-surface-container-low) ;
  display: flex;
  gap: 10px;
  padding: 12px 0px 0px;
  width: fit-content;
  justify-content: center;
  padding: 10px 20px
}

.mt-action-btn .btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 20px;
  padding: 0;
}

.bg-card {
  background-color: var(--md-sys-color-surface-5);
  border-radius: 3rem;
  padding: 25px 0;
}

#pages-container-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 25px;
  min-height: 275px;
  margin: 0 0 30px 0;
}

#pages-container {
  margin: 0 auto;     
  width: 95%; 
  font-size: 0;        
}

/* width */
#pages-container-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
#pages-container-wrapper::-webkit-scrollbar-track {
  background: var(--scroll-bar-color);
}

/* Handle */
#pages-container-wrapper::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--scroll-bar-thumb);
}

/* Handle on hover */
#pages-container-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-bar-thumb-hover);
}


.page-container {
  display: inline-block;
  list-style-type: none;
  width: 250px;
  height: 250px;
  line-height: 50px;
  margin: 15px 25px;
  box-sizing: border-box;
  text-align: center;
  aspect-ratio: 1;
  position: relative;
  user-select: none;
  transition: width 1s linear;
}

.page-container.split-before {
  border-left: 1px dashed var(--md-sys-color-on-surface);
  padding-left: -1px;
}

.page-container.split-before:first-child {
  border-left: none;
}

.page-container:first-child .pdf-actions_split-file-button {
  display: none;
}


.page-container:last-child:lang(ar),
/* Arabic */
.page-container:last-child:lang(he),
/* Hebrew */
.page-container:last-child:lang(fa),
/* Persian */
.page-container:last-child:lang(ur),
/* Urdu */
.page-container:last-child:lang(ckb),
/* Sorani Kurdish */
.page-container:last-child:lang(ks),
/* Kashmiri */
.page-container:last-child:lang(kk),
/* Kazakh */
.page-container:last-child:lang(uz),
/* Uzbek */
.page-container:last-child:lang(ky),
/* Kyrgyz */
.page-container:last-child:lang(bal),
/* Baluchi */
.page-container:last-child:lang(dv),
/* Divehi */
.page-container:last-child:lang(ps),
/* Pashto */
.page-container:last-child:lang(sdg),
/* Southern Kurdish */
.page-container:last-child:lang(syr),
/* Syriac */
.page-container:last-child:lang(mzn),
/* Mazanderani */
.page-container:last-child:lang(tgl),
/* Tagalog */
.page-container:last-child:lang(pnb),
/* Western Punjabi */
.page-container:last-child:lang(ug),
/* Uyghur */
.page-container:last-child:lang(nqo),
/* N'Ko */
.page-container:last-child:lang(bqi)

/* Bakhtiari */
  {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.page-container img {
  max-width: calc(100% - 15px);
  max-height: calc(100% - 15px);
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.384);
  border-radius: 4px;
  transition: rotate 0.3s;
}

#add-pdf-button {
  margin: 0 auto;
}

.page-number {
  position: absolute;
  top: 5px;
  left: 5px;
  line-height: normal;
  color: var(--md-sys-color-on-secondary);
  background-color: rgba(162, 201, 255, 0.8);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 2;
  font-weight: 450;
}

.tool-header {
  margin: 0.5rem 1rem 2rem;
}

#select-pages-button {
  opacity: 0.5;
}

.selected-pages-container {
  background-color: var(--md-sys-color-surface);
  border-radius: 16px;
  padding: 15px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.selected-pages-container h3 {
  color: var(--md-sys-color-on-surface);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.pages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  max-height: 10rem;
  overflow: auto;
}

.page-item {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--md-sys-color-on-surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 7rem;
  height: 2.5rem;
}

.selected-page-number {
  width: 4rem;
  font-size: small;
}

.remove-btn {
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
  font-size: 1.2em;
}

.checkbox-container {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.checkbox-label {
  font-size: medium;
}

.btn {
  position: relative;
}

@media only screen and (max-width: 767px) { #pages-container { width:300px;  } }
@media only screen and (min-width: 768px) and (max-width: 991px) { #pages-container { width: 600px; } }
@media only screen and (min-width: 992px) and (max-width: 1199px) { #pages-container { width: 900px; } }
@media only screen and (min-width: 1200px) and (max-width: 1399px) { #pages-container { width: 900px; } }
@media only screen and (min-width: 1399px) { #pages-container { width: 1200px; } }