* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}
body {
    background-color: #F5F9F5;
    color: #1F1F1F;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    min-height: 100vh;
}
a, button{
    transition: all 0.5s ease-in-out;
}

.header{
    background-color: #57B853;
    padding: 8px 0;
}
.header .container{
    max-width: 928px;
    margin: 0 auto;
    padding: 0 16px;
}
.header-row ul{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.header-row ul li{
    list-style: none;
}
.header-row ul li a{
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    padding: 0 6px;
    text-decoration: none;
}


.pdf-compressor{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 35px);
    padding: 78px 0;
}
.pdf-compressor .container {
    margin: 0 auto;
    max-width: 928px;
    padding: 0 12px;
    width: 100%;
}
.pdf-compressor-row{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 50px 0 rgba(87, 184, 83, 0.1);
    padding: 40px;
    position: relative;
    z-index: 1;
}
.pdf-compressor-row::after{
    background-color: #ECF8EC;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    content: "";
    height: 180px;
    width: 180px;
    z-index: -1;
}
.pdf-compressor-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
}
.pdf-compressor-icon-box img{
    max-height: 100px;
    max-width: 100px;
}
.pdf-compressor-title{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdf-compressor-heading{
    color: #1F1F1F;
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}
.pdf-compressor-heading span{
    color: #57B853;
}
.pdf-compressor-title p{
    color: #1F1F1F;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}
.pdf-compressor-icon-box-right{
    margin-left: auto;
}
.pdf-compressor-icon-box-right img{
    max-height: 80px;
    max-width: 80px;
}
.pdf-compressor-bottom{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 12px 0 rgba(31, 31, 31, 0.12);
    padding: 30px;
}
.pdf-compressor-bottom .form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 30px;
    width: 100%;
}
.file-label {
    color: #1F1F1F;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}
.label-number{
    background-color: #57B853;
    color: #ffffff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin: 0 16px 0 0;
    width: 30px;
}
.compressor-label{
    color: #1F1F1F;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}
.range-val{
    color: #57B853;
    font-weight: 700;
    margin: 0 0 0 4px;
}
.range-quality{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.range-quality-label{
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    width: 33.33%;
}
.range-quality-label:nth-child(2){
    text-align: center;
}
.range-quality-label:nth-child(3){
    text-align: right;
}
.pdf-compressor-bottom input[type="file"] {
    background-color: #F5F9F5;
    border: 1px dashed #57B853;
    border-radius: 6px;
    cursor: pointer;
    padding: 16px;
    width: 100%;
}
.compressor-range input{
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
}
.compressor-range input::-webkit-slider-runnable-track{
    background-color: #D9D9D9;
    height: 10px;
    border-radius: 8px;
}
.compressor-range input::-moz-range-track{
    background-color: #D9D9D9;
    height: 10px;
    border-radius: 8px;
}
.compressor-range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #57B853;
    border-radius: 50%;
    height: 14px;
    margin-top: -2px;
    width: 14px;
}
.compressor-range input::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #57B853;
    border-radius: 50%;
    height: 14px;
    margin-top: -2px;
    width: 14px;
}
.pdf-compressor-btn {
    background-color: #57B853;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    height: 50px;
    transition: all 0.5s ease-in-out;
    width: 100%;
}
.pdf-compressor-btn:hover {
    background-color: #1F1F1F;
}
.pdf-compressor-btn img{
    max-width: 28px;
}
.compressor-note{
    color: #1F1F1F;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin: 20px 0 0;
}
.pdf-compressor-bottom button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}
.pdf-compressor-bottom .status-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    background: #f3f4f6;
    display: none;
}
.pdf-compressor-bottom .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}
.pdf-compressor-bottom .progress-fill {
    width: 0%;
    height: 100%;
    background-color: #57b853;
    transition: width 0.3s;
}
.pdf-compressor-bottom .results {
    color: #1F1F1F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: 14px;
    margin-top: 15px;
}
.pdf-compressor-bottom .download-btn {
    background-color: #57B853;
    border: 0;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}
.pdf-compressor-bottom .download-btn:hover {
    background-color: #1F1F1F;
}
.lagel{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    width: 100%;
}
.lagel li{
    list-style: none;
}
.lagel li a{
    color: #57b853;
    text-decoration: none;
    font-size: 14px;
    font-size: 400;
    line-height: normal;
}


/* PDF Watermark Tool */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.color-picker {
    background-color: #f5f9f5;
    height: 40px;
    padding: 2px;
    width: 100%;
    border: 1px solid #57B853;
    border-radius: 6px;
    cursor: pointer;
}
.pdf-compressor-bottom .form-group select,
.pdf-compressor-bottom .form-group input[type="text"]{
    background-color: #f5f9f5;
    border: 1px solid #57B853;
    border-radius: 6px;
    color: #1F1F1F;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    height: 45px;
    outline: none;
    padding: 6px 10px;
}



#fileList { 
    list-style: none;
    margin: 20px 0;
    padding: 0;
}
.pdf-compressor-bottom .label-show{
    display: none;
}
.pdf-compressor-bottom:has(.file-item) .label-show{
    display: block;
}
.file-item { 
    background-color: #f5f9f5;
    border: 1px solid #57B853;
    color: #1F1F1F;
    cursor: grab;
    display: flex; 
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    font-family: "Roboto", sans-serif;
    margin: 5px 0;
    padding: 10px;
}
.remove-btn {
    color: red;
    cursor: pointer;
    font-weight: bold;
}
.controls { 
    margin-top: 20px;
}


/* Sidebar CSS

.sidebar-toggle {
    background-color: #57B853;
    border: 0;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    color: var(--theme-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    position: fixed;
    top: 5px;
    right: 5px;
    width: 40px;
}
.sidebar-toggle img{
    max-height: 24px;
    max-width: 24px;
}
.sidebar-wp{
  overflow: hidden;
}
.sidebar-inner{
  background-color: var(--bianca);
  border-radius: 16px;
  -webkit-border-radius: 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 10px;
  height: calc(100% - 20px);
  margin: auto 0;
  max-width: 500px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  transform: translateX(calc(100% + 80px));
  -webkit-transform: translateX(calc(100% + 80px));
  -moz-transform: translateX(calc(100% + 80px));
  -ms-transform: translateX(calc(100% + 80px));
  -o-transform: translateX(calc(100% + 80px));
  width: 100%;
  z-index: 99;
}
@media (max-width:575px){
  .sidebar-inner{
    max-width: calc(100% - 20px);
  }
}
.sidebar-inner.sidebar-open{
  transform: translateX(0);
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
}
.sidebar-content{
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
}
@media (max-width:575px){
  .sidebar-content{
    gap: 20px;
    padding: 20px;
  }
}
.sidebar-header{
  border-bottom: 1px solid var(--theme-color30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 20px 0;
}
.sidebar-logo a img{
  max-width: 198px;
  max-height: 60px;
}
.sidebar-close-btn{
  background-color: var(--secondary-color);
  border: 2px solid var(--theme-color);
  border-radius: 6px;
  -webkit-border-radius: 6px;
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: normal;
  height: 40px;
  padding: 0;
  width: 40px;
}
.sidebar-close-btn:hover{
  background-color: var(--theme-color);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}
.sidebar-close-btn i{
  font-size: 20px;
  font-weight: normal;
}
.sidebar-heading{
  color: var(--theme-color);
  font-family: var(--theme-font);
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  margin: 0 0 20px 0;
}
.sidebar-overlay{
  background-color: var(--secondary-50-color);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 98;
}
.sidebar-overlay.sidebar-open{
  opacity: 1;
  visibility: visible;
} */


/* Responsive CSS */

@media (max-width:991px){
    .pdf-compressor{
        padding: 60px 0;
    }
}
@media (max-width:767px){
    .pdf-compressor-row{
        padding: 30px;
    }
    .pdf-compressor-icon-box-right{
        display: none;
    }
    .pdf-compressor-bottom{
        padding: 20px;
    }
    .pdf-compressor-icon-box img {
        max-height: 80px;
        max-width: 80px;
    }
    .pdf-compressor-icon-box-right img {
        max-height: 60px;
        max-width: 60px;
    }
    .pdf-compressor-heading{
        font-size: 30px;
    }
    .file-label,
    .compressor-label{
        font-size: 14px;
    }
    .label-number {
        margin: 0 10px 0 0;
    }
    .range-quality-label{
        font-size: 14px;
    }
    .range-quality-label span{
        display: none;
    }
}
@media (max-width:575px){
    .header-row ul{
        gap: 4px;
    }
    .header-row ul li a{
        font-size: 14px;
    }
    .pdf-compressor-row {
        padding: 20px;
    }
    .pdf-compressor-top{
        align-items: start;
        flex-direction: column;
    }
    .pdf-compressor-icon-box img {
        max-height: 40px;
        max-width: 40px;
    }
    .pdf-compressor-bottom {
        padding: 0;
        box-shadow: none;
    }
    .file-label,
    .compressor-label {
        font-size: 12px;
    }
    .label-number{
        height: 24px;
        width: 24px;
    }
    .pdf-compressor-bottom .form-group{
        gap: 12px;
        margin: 0 0 20px;
    }
    .compressor-note{
        font-size: 14px;
    }
    .pdf-compressor-btn{
        height: 40px;
        font-size: 14px;
    }
    .pdf-compressor-btn img{
        max-width: 22px;
    }
    .pdf-compressor-bottom .results{
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }
    .grid-2{
        grid-template-columns: 1fr;
    }
}