/* Whole Website */
body {

    margin: 0;
    padding: 0;

    font-family: Arial;

    background: #f5f5f5;

}


/* Main Container */
.container {

    width: 900px;

    margin: 60px auto;

    text-align: center;

}


/* Heading */
h1 {

    color: #d32f2f;

    font-size: 50px;

}


/* Paragraph */
p {

    color: #666;

    font-size: 22px;

}


/* Button Design */
.btn {

    display: inline-block;

    margin: 15px;

    padding: 15px 40px;

    background: #d32f2f;

    color: white;

    text-decoration: none;

    border-radius: 8px;

}


/* Mouse Hover */
.btn:hover {

    background: #b71c1c;

}

/* PDF List */
#fileList {
    margin-top: 30px;
}

/* Single PDF Card */
.pdf-item {

    background: white;

    width: 550px;

    margin: 15px auto;

    padding: 15px 20px;

    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 22px;
}

body {

    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #FFF8F0;

    text-align: center;

}

.container {

    width: 80%;

    margin: auto;

    margin-top: 40px;

}

h1 {

    font-size: 70px;

    color: #F9A825;

}

p {

    font-size: 30px;

    color: #666;

}

input[type=file] {

    font-size: 20px;

}

.btn {

    margin-top: 30px;

    padding: 18px 40px;

    font-size: 28px;

    color: white;

    background: #F9A825;

    border: none;

    border-radius: 10px;

    cursor: pointer;

}

.btn:hover {

    background: #EF6C00;

}

#fileList {

    margin-top: 30px;

}

.pdf-item {

    width: 650px;

    margin: 15px auto;

    padding: 18px;

    background: white;

    border-radius: 10px;

    box-shadow: 0px 2px 8px rgba(0, 0, 0, .15);

    font-size: 22px;

    text-align: left;

}

.remove-btn {

    background: #EF6C00;

    color: white;

    border: none;

    width: 35px;

    height: 35px;

    border-radius: 50%;

    cursor: pointer;

}

.logo {

    width: 320px;

    margin-top: 13px;

    margin-bottom: 6px;

}

/* ==========================
   Header
========================== */

.header {

    width: 90%;

    max-width: 1100px;

    margin: 40px auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

}


/* Logo */

.logo {

    width: 90px;

}


/* Company Name */

.header h2 {

    margin: 0;

    color: #E53935;

    font-size: 42px;

    font-weight: bold;

}


/* Subtitle */

.header p {

    margin: 0;

    color: #666;

    font-size: 20px;

    letter-spacing: 4px;

}

.page-title {

    font-size: 70px;

    color: #2B2B2B;

    margin-top: 20px;

}

.subtitle {

    font-size: 28px;

    color: #777;

    margin-bottom: 40px;

}

.logo {
    width: 265px;
}

.header {
    margin-bottom: 20px;
}

.page-title {
    margin-top: 0;
}

.upload-btn {

    display: inline-block;

    background: #FFAA1D;

    color: white;

    padding: 16px 40px;

    border-radius: 12px;

    font-size: 22px;

    cursor: pointer;

    font-weight: bold;

    transition: .3s;

}

.upload-btn:hover {

    background: #ff9800;

}

body {

    background: linear-gradient(180deg,
            #FFF7ED,
            #FFFDF9);

}

.btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(255, 170, 29, .35);

}

#pdfInput {
    display: none;
}

/* ==========================
   Drag Area
========================== */

.drop-area {

    width: 80%;

    max-width: 900px;

    margin: 40px auto;

    padding: 50px;

    border: 4px dashed #FFAA1D;

    border-radius: 20px;

    background: white;

    transition: .3s;

}

.drop-area:hover {

    background: #FFF8EE;

}

.drop-icon {

    font-size: 70px;

}

.drop-area h2 {

    color: #333;

    margin: 20px 0;

}

.drop-area p {

    color: #777;

    font-size: 22px;

}

.btn {
    margin-top: 40px;
}

.drop-zone {
    transition: .3s;
}

.drop-zone.dragover {
    background: #fff8ef;
    border-color: #ff9800;
    transform: scale(1.02);
}

.drag-over {
    border-color: #your-accent-color;
    background-color: #f0f4ff;
    /* হালকা highlight */
}

.pdf-thumbnail {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pdf-item {
    cursor: grab;
    position: relative;
}

.file-remove-btn {
    background: #e53935;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    line-height: 30px;
    text-align: center;
    padding: 0;
}
.file-remove-btn:hover { background: #b71c1c; }

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f0a500;
    /* তোমার accent color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================
   Hero
========================== */

.hero {
    margin: 20px 0 40px;
}

.hero h1 {
    font-size: 48px;
    color: #2B2B2B;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    color: #777;
}

/* ==========================
   Tools Grid
========================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2B2B2B;
}

.tool-card p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff, #FFF8EE);
    border-radius: 12px;
    padding: 30px 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    text-align: center;
    border-left: 4px solid #F9A825;
}

.tool-card:hover {
    background: linear-gradient(135deg, #FFF8EE, #FFE0B2);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 170, 29, 0.25);
    border-left: 4px solid #EF6C00;
}
/* ==========================
   Mode Tabs
========================== */

.mode-tabs {
    margin: 30px 0 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mode-btn {
    padding: 12px 30px;
    font-size: 18px;
    border: 2px solid #F9A825;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: #333;
}

.mode-btn.active {
    background: #F9A825;
    color: white;
}

.mode-btn:hover {
    background: #F9A825;
    color: white;
}

/* ==========================
   Range Input
========================== */

.range-input {
    width: 400px;
    padding: 14px 20px;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.range-input:focus {
    border-color: #F9A825;
}

.mode-hint {
    font-size: 16px;
    color: #777;
    margin-bottom: 15px;
}
.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.thumb-wrapper {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.thumb-wrapper canvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

/* ==========================
   Visual Editor
========================== */

.visual-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.visual-thumb {
    position: relative;
    text-align: center;
    font-size: 13px;
    color: #666;
    cursor: grab;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.visual-thumb:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.visual-thumb canvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.thumb-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    line-height: 24px;
    text-align: center;
    padding: 0;
    z-index: 10;
}

.thumb-remove:hover {
    background: #b71c1c;
}

.sortable-ghost {
    opacity: 0.4;
}

/* ==========================
   SEO Section
========================== */

.seo-section {
    max-width: 800px;
    margin: 60px auto;
    text-align: left;
    color: #555;
    line-height: 1.8;
}

.seo-section h2 {
    font-size: 24px;
    color: #2B2B2B;
    margin-bottom: 10px;
    margin-top: 30px;
}

.seo-section h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 8px;
    margin-top: 24px;
}

.seo-section p {
    font-size: 16px;
    color: #666;
}

/* ==========================
   Navbar
========================== */

.navbar {
    background: white;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 44px;
    display: block;
}

.nav-tools-dropdown {
    position: relative;
}

.nav-tools-btn {
    background: #F9A825;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tools-btn:hover { background: #EF6C00; }

.nav-arrow { font-size: 12px; transition: 0.2s; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 20px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 30px;
    min-width: 560px;
    z-index: 2000;
}

.nav-tools-dropdown:hover .nav-dropdown-menu {
    display: grid;
}

.nav-tools-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-heading {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 0 0 8px 0;
}

.dropdown-col a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: 0.15s;
}

.dropdown-col a:hover {
    background: #FFF8EE;
    color: #EF6C00;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: white;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    padding: 8px 4px;
    border-bottom: 1px solid #f5f5f5;
}

.nav-mobile-menu .dropdown-heading {
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 11px;
}

/* Container top margin accounts for sticky navbar */
.container {
    margin-top: 40px;
}

/* ==========================
   Footer
========================== */

.site-footer {
    background: #2B2B2B;
    color: #ccc;
    margin-top: 80px;
    padding: 50px 20px 0;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: 0.15s;
}

.footer-col a:hover { color: #F9A825; }

.footer-bottom {
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    color: #777;
    font-size: 13px;
    margin: 0;
}

/* ==========================
   Responsive - Mobile
========================== */

@media (max-width: 768px) {

    .container {
        width: 95%;
        margin-top: 20px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        margin: 20px auto;
    }

    .header-text {
        display: none;
    }

    .logo {
        width: 220px;
    }

    .page-title {
        font-size: 36px;
        margin-top: 10px;
    }

    .subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .drop-area {
        width: 90%;
        padding: 30px 15px;
        margin: 20px auto;
    }

    .drop-icon {
        font-size: 50px;
    }

    .drop-area h2 {
        font-size: 20px;
    }

    .upload-btn {
        font-size: 18px;
        padding: 12px 28px;
    }

    .pdf-item {
        width: 90%;
        font-size: 16px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tool-card {
        padding: 20px 12px;
    }

    .tool-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .tool-card h3 {
        font-size: 15px;
    }

    .tool-card p {
        font-size: 12px;
    }

    .mode-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mode-btn {
        width: 80%;
        font-size: 16px;
        padding: 10px 20px;
    }

    .range-input {
        width: 85%;
        font-size: 16px;
    }

    .btn {
        font-size: 18px;
        padding: 14px 30px;
        width: 80%;
    }

    .visual-grid {
        gap: 10px;
    }

    /* Navbar mobile */
    .nav-tools-dropdown { display: none; }
    .nav-hamburger { display: block; }

    /* Footer mobile */
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

}

@media (max-width: 480px) {

    .page-title {
        font-size: 28px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .drop-area h2 {
        font-size: 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

}