﻿@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1755px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 6 per row */
        min-width: 250px;
        max-width: 100%;
    }

    .image-preview {
        overflow-x: hidden;
        height: 500px;
    }

    .image-preview-scroll {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 500px;
    }

    .word-preview-scroll {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 400px;
    }

    .pdf-preview-scroll {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 400px;
    }
}

@media (max-width: 1754px) and (min-width: 1599px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 6 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

@media (max-width: 1599px) and (min-width:1454px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

@media (max-width: 1453px) and (min-width: 1234px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

@media (max-width: 1233px) and (min-width: 1014px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

@media (max-width: 1233px) {
    .heading>h2 {
        opacity: 60%;
        font-size: 13px !important;
        text-align: left;
    }

    .heading>h1 {
        font-size: 18px !important;
        text-align: left;
    }
}

@media (max-width: 1013px) and (min-width: 794px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        height: auto;
        overflow: auto;
        margin-left: 20px;
    }

    .right-pane {
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .left-pane {
        width: 100%;
        height: auto;
        box-shadow: none;
        margin-top: 173px;
    }

    /* .right-pane {
        padding-top: 2rem;
        transition: all 0.4s ease;
        position: fixed;
        right: 0%;
        transform: translateX(100%);
    }*/

    .add-more-btn {
        right: 2rem;
    }

    .main-content {
        padding: 18px;
    }

    .heading {
        top: 16% !important;
    }

    .main-container-itp {
        padding-top: 20% !important;
    }

    .theme-view {
        padding-top: 20% !important;
    }
}

@media (min-width: 1025px) {
    .heading {
        top: 10% !important;
    }

    .main-container-itp {
        padding-top: 10% !important;
    }

    .theme-view {
        padding-top: 10% !important;
    }
}

@media (max-width: 793px) and (min-width: 575px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .text-format-toolbar {
        flex-wrap: wrap;
    }

    .text-format-toolbar select {
        width: 100%;
    }

    .option-group-horizontal {
        flex-direction: column;
    }

    .pdf-thumbnail-grid {
        grid-template-columns: 1fr;
        /* Single column on small screens */
    }

    .right-pane {
        flex-shrink: 0;
        background-color: white;
        padding: 1.5rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        max-width: 85%;
        min-width: 250px;
    }

    .heading>h1 {
        font-size: 13px !important;
        text-align: left;
    }

    .heading>h2 {
        font-size: 12px !important;
        text-align: left;
    }
}

@media (max-width: 574px) {
    .card {
        flex: 1 1 calc(12.5% - 10px);
        /* 8 per row */
        min-width: 230px;
        max-width: 100%;
    }

    .image-preview {
        overflow: hidden;
    }
}

@media (max-width: 768px) {

    .theme-btn-blue {
        display: none !important;
        background-color: #e5322d;
        color: white;
        font-size: 1.1rem;
        font-weight: bold;
        padding: 1rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin-top: 1.5rem;
        flex-shrink: 0;
        position: fixed;
        top: 91.2vh;
        left: 29vh;
        width: 145px;
        z-index: 9999;
    }

    .heading {
        top: 75px !important;
    }

    .root-container {
        display: flow-root;
        margin-top: 100px;
    }

    .mob-theme-btn-blue {
        display: block !important;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 9999;
        padding: 1rem;
        width: auto;
        min-width: 120px;
        max-width: 90vw;
        background-color: #e5322d;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .main-container-itp {
        flex-direction: column;
        padding: 10px;
        padding-top: 10% !important;
    }

    .left-pane-itp {
        width: 100%;
        height: calc(100vh - 80px);
        /* Adjust height for mobile */
    }

    .right-pane-itp {
        position: fixed;
        top: 70px;
        right: 0;
        min-width: 300px;
        max-width: 90vw;
        min-height: 100vh;
        background-color: #fff;
        z-index: 1010;
        box-shadow: -3px 0 15px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        overflow-y: auto;
    }

    .right-pane-itp.visible {
        transform: translateX(0);
    }

    .settings-toggle-btn-itp {
        display: flex !important;
        /* Show on mobile */
    }

    .backdrop-itp {
        display: block;
        /* Enable backdrop on mobile */
    }

    .close-options-btn-itp {
        display: block !important;
        z-index: 999;
        /* Show close button on mobile */
    }
}

@media (max-width: 991px) {
    .navbar>a>.logo {
        height: 55px;
    }
}

html {
    font-size: 14px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.navbar {
    background: #fff;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 1px 3px 4px 0 #adadad33;
    height: 70px;
}

.navbar-light .navbar-brand {
    color: #161616;
}

.navbar-light .navbar-nav .nav-link {
    color: #161616;
}

.navbar-light .navbar-brand:focus,
.navbar-light .navbar-brand:hover {
    color: #161616;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #161616;
}

.navbar-light .navbar-nav .nav-link {
    padding-top: 22px;
    padding-bottom: 22px;
    transition: 0.3s;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 14px;
    color: #161616;
    text-decoration: none;
    font-weight: 700;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #e5322d;
    transition: 0.3s;
}

.dropdown-item:focus {
    color: #161616;
    text-decoration: none;
    font-weight: 700;
    background-color: #f5f5fa;
}

.dropdown-item:hover {
    color: #e5322d !important;
    font-weight: 700;
}

.sm-menu {
    border-radius: 0px;
    border: 0px;
    top: 97%;
    box-shadow: 0 3px 6px 0 rgba(50, 50, 50, .3);
}

.dropdown-item {
    font-weight: 700;
    font-size: 14px;
    font-weight: 700;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #161616;
    text-decoration: none;
}

.navbar-toggler {
    outline: none !important;
}

.navbar-tog {
    color: #161616;
}

.megamenu-li {
    position: static;
}

.collapse>.navbar-nav>.nav-item>.nav-link:hover {
    color: #e5322d !important;
}

.navbar-nav>.nav-item>.dropdown-menu>.dropdown-item .dropdown-menu>a:hover {
    color: #e5322d !important;
}

.megamenu {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    padding: 15px;
}

.megamenu h6 {
    margin-left: 21px;
}

.megamenu i {
    width: 20px;
}

body {
    background-color: #f5f5fa;
}

.padding-10px {
    padding: 3px !important;
}

.card:hover {
    background-color: #f5f5fa;
}

.svg-icon-box {
    width: 76px;
    height: 90px;
    padding: 0px;
    margin-top: -31px;
    margin-left: -8px;
}

.card:hover>.svg-icon-box {
    width: 80px;
    height: 95px;
    transition: 0.3s;
    margin-top: -31px;
    margin-left: -8px;
}

.card>.card-body {
    padding: 0px;
    margin-top: 20px;
}

.image-to-pdf>.card>.card-body {
    margin-top: 20px !important;
}

.icare-block>a {
    color: #212529;
    text-decoration: none;
}

.icare-block>a:hover {
    color: #212529 !important;
    text-decoration: none;
}

.icare-block>a>card>h2 {
    font-size: 18px;
}

.icare-block>a>card>p {
    line-height: 18px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .3px;
    font-size: 13px;
    color: #707078;
}

.icare-block {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    transition: all 0.5s ease;
    /* Smooth transition on layout change */
}

.row-layout {
    flex-direction: row;
}

.column-layout {
    flex-direction: column;
    align-items: flex-start;
}

.card {
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 268px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Hover effects */
    min-height: 250px;
}

.card:hover {
    transform: scale(1.04);
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
}

.card>.content {
    margin-top: -25px;
}

.card>.content>.progress {
    margin-top: 20px !important;
}


.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.about-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.about-section p {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.highlight {
    font-weight: 600;
    color: #0077cc;
}



.navbar>a>.logo {
    height: 55px;
}


.footer {
    text-align: center;
    position: absolute;
    z-index: 99;
    top: 99%;
}

.heading {
    text-align: left;
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    top: 25%;
    padding-left: 18px;
}

.tool-heading {
    display: flex;
    flex-direction: column;
    margin-top: -20px;
}

.heading>h2 {
    opacity: 60%;
    font-size: 13px;
    text-align: left;
}

.heading>h1 {
    font-size: 18px;
    text-align: left;
}

.tool-heading>h2 {
    opacity: 60%;
    font-size: 15px;
    text-align: left;
}

.tool-heading>h1 {
    font-size: 20px;
    text-align: left;
}

.home_heading {
    text-align: left;
    margin-bottom: 50px;
    margin-top: 90px;
    margin-left: 10px;
}

.home_heading>h2 {
    opacity: 60%;
    font-size: 16px;
    text-align: left;
}

.home_heading>h1 {
    font-size: 22px;
    text-align: left;
}



.notfound {
    text-align: center !important;
    position: absolute;
    left: 40%;
    top: 20%;
}

.notfound>.container {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.notfound>.svg-container {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.notfound>h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #222;
}

.notfound>p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #666;
}

.theme-bg {
    background-color: "#286986";
}

.notfound>a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e5322d;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.notfound>a:hover {
    background-color: #e5322d;
}

@media (max-width: 480px) {


    .notfound>h1 {
        font-size: 2em;
    }

    .notfound>p {
        font-size: 1em;
    }
}

.split_pdfs {
    width: 38px;
    height: 73px;
    margin-top: -31px;
}

.card:hover>split_pdfs {
    width: 42px;
    height: 80px;
    transition: 0.3s;
    margin-top: -31px;
    margin-left: -8px;
}

.merge_pdfs {
    width: 38px;
    height: 73px;
    margin-top: -31px;
}

.split_pdfs_content {
    margin-top: -15px;
}

.card:hover>merge_pdfs {
    width: 42px;
    height: 80px;
    transition: 0.3s;
    margin-top: -31px;
    margin-left: -8px;
}

.word_pdf {
    width: 40px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -8px;
}

.word_pdf_content {
    margin-top: -8px;
}

.card:hover>.word_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -31px;
    margin-left: -8px;
}

#convertBtn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

#convertBtn>#spinner {
    margin-left: 155px;
}

#convertBtnText {
    width: 100%;
}

.excel_pdf {
    width: 90px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -5px;
}

.excel_pdf_content {
    margin-top: -8px;
}

.card:hover>.excel_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -31px;
}

.ppt_pdf {
    width: 90px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -5px;
}

.ppt_pdf_content {
    margin-top: -8px;
}

.card:hover>.ppt_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -31px;
}

.organize_pdf {
    width: 45px !important;
    height: 77px !important;
    margin-top: -29px !important;
    margin-left: -5px;
}

.organize_pdf_content {
    margin-top: -15px;
}

.card:hover>.organize_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -31px;
}

.theme-view>.theme-btn {
    width: 200px;
    margin-top: -200px;
    margin-left: -40px;
}

.wm_pdf {
    width: 45px !important;
    height: 77px !important;
    margin-top: -32px !important;
    margin-left: -5px;
}

.wm_pdf_content {
    margin-top: -12px;
}

.card:hover>.wm_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -32px;
}

.pt_pdf {
    width: 42px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -5px;
}

.pt_pdf_content {
    margin-top: -12px;
}

.card:hover>.pt_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -32px;
}

.tp_pdf {
    width: 42px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -5px;
}

.tp_pdf_content {
    margin-top: -15px;
}

.card:hover>.tp_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -32px;
}

.pc_pdf {
    width: 38px !important;
    height: 77px !important;
    margin-top: -34px !important;
    margin-left: -5px;
}

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

.card:hover>.pc_pdf {
    width: 46px;
    height: 85px;
    transition: 0.3s;
    margin-top: -32px;
}

.main-content {
    padding: 60px;
    display: contents;
}

.old-heading {
    text-align: left;
    /* position: absolute; */
    z-index: 1;
    display: flex;
    flex-direction: column;
    top: 8%;
    padding-left: 18px;
    width: 55%;
    margin-top: 100px;
}

.old-heading>h1 {
    text-align: left;
    font-size: 18px;
}

.old-heading>h2 {
    text-align: left;
    font-size: 15px;
    color: gray;
}

.pdf-to-image-theme-btn-blue {
    background-color: #e5322d;
    color: white !important;
    border: none !important;
    flex-shrink: 0 !important;
    padding: 8px !important;
    margin: -6px 0px 0px !important;
    font-size: 12px !important;
    border-radius: 0px !important;
    width: auto !important;
}