
        
        :root {
            --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary: #7209b7;
    --secondary-light: rgba(114, 9, 183, 0.1);
    --accent: #f72585;
    --accent-light: rgba(247, 37, 133, 0.1);
    --success: #4cc9f0;
    --success-light: rgba(76, 201, 240, 0.1);
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--dark), #000);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f8ff;
            color: var(--dark);
            line-height: 1.6;
            padding: 0;
            margin: 0;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }

      
       /* Enhanced Header with Glass Effect */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    color: var(--dark);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    background: var(--gradient-primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.h1Logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
}
.logo img {
  height: 50px;   /* logo size */
  justify-content: flex-start;
  width: auto;
}
/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
    
}

nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: lch(64.13% 50.09 25.12 / 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu:hover {
    background: var(--primary);
    color: white;
}

        /* ====================================Main Content Styles =============================================================*/

.main-container {
    padding: 40px 0;
    background: white;
    min-height: calc(100vh - 70px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gradient-primary);
}

.tool-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gradient-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tool-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text h3 {
    font-size: 1.8rem;
    color: #313131;
    margin-bottom: 10px;
}

.upload-text p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.browse-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Settings Panel */
.settings-panel {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.settings-header h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.settings-header .quality-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
    background: white;
    padding: 5px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Quality Control */
.quality-control {
    margin-top: 20px;
}

.quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quality-header label {
    font-weight: 600;
    color: rgb(59, 183, 231);
    font-size: 1.1rem;
}

.quality-header .quality-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
}

.quality-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ff4757, #ffa502, #2ed573);
    border-radius: 5px;
    outline: none;
    margin: 20px 0;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.quality-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 213, 115, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


/*=======image list =======image list=================image list=====================*/
/* Main container */
.image-list-container {
  background: #f8fafc;
  border-radius: 14px;
  padding: 15px;
  margin-top: 20px;
}

/* Header */
.image-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.image-list-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.image-count {
  font-size: 13px;
  color: #64748b;
}

/* Image list (horizontal) */
.image-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

/* Single image card */
.image-item {
  flex: 0 0 auto;
  width: 130px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 8px;
  text-align: center;
}

/* Image preview */
.image-item img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}




/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
   
}



       /* ====================================Main Content Styles =============================================================*/


          /* sumit 02-10-2025 Dark Mode Toggle */
        /* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-large);
    z-index: 100;
    transition: var(--transition);
    border: none;
    font-size: 1.5rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4);
}
/*================= Dark Mode Styles ===================*/
/* Containers & cards */
body.dark-mode .tool-container,
body.dark-mode .tool-card,
body.dark-mode .main-container,
body.dark-mode .settings-panel,
body.dark-mode .upload-area,
body.dark-mode .pdf-item,
body.dark-mode .split-controls,
body.dark-mode .results,
body.dark-mode .ad-container {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

/* Paragraphs, small text */
body.dark-mode p,
body.dark-mode span,
body.dark-mode .pdf-info p,
body.dark-mode .page-number {
    color: #ffffff;
}

/* Tabs */
body.dark-mode .tabs {
    border-bottom-color: #333;
}

body.dark-mode .tab-btn {
    color: #bbb;
}

body.dark-mode .tab-btn.active {
    color: #4cc9f0; /* accent color */
}

body.dark-mode .tab-btn.active::after {
    background-color: #4cc9f0;
}

/* Buttons */
body.dark-mode .btn-primary {
    background-color: #4cc9f0;
    border-color: #4cc9f0;
    color: #ffffff;
}

body.dark-mode .btn-primary:hover {
    background-color: #3aa9cc;
    color: #fff;
}

body.dark-mode .btn-secondary {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .btn-secondary:hover {
    background-color: #444;
}

/* Nav */
/* body.dark-mode header {
    background: linear-gradient(135deg, #222, #333);
} */

body.dark-mode nav a {
    color: var(--primary);
}

body.dark-mode nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
body.dark-mode footer {
    background: #1a1a1a;
    color: #ccc;
}

body.dark-mode .footer-column a {
    color: #bbb;
}

body.dark-mode .footer-column a:hover {
    color: #fff;
}

/* Upload area hover */
body.dark-mode .upload-area:hover {
    background-color: rgba(74, 107, 255, 0.05);
    border-color: #4cc9f0;
}

/* Spinner */
body.dark-mode .spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #4cc9f0;
}

/* Page preview */
body.dark-mode .page-item {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .page-item.selected {
    border-color: #4cc9f0;
    background-color: rgba(76, 201, 240, 0.1);
}


     /*================================== Dark Mode Toggle END =========================================*/
  /*02-10-2025  Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-column h3 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            position: relative;
            padding-bottom: 10px;
            color: white;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.8rem;
        }

        .footer-column a {
            color: #adb5bd;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column a:hover {
            color: white;
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #495057;
            color: #adb5bd;
            font-size: 0.9rem;
        }

          /*=====================================*02-10-2025  Responsive Design============================================================ */
       @media (max-width: 992px) {
    .header-content {
        flex-wrap: nowrap;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .auth-buttons {
        margin-left: 10px;
    }
    
    .converter-container {
        flex-direction: column;
    }
    
    .upload-area, .options-area {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        order: 1;
         width: 40px;
         height: 40px;
        
    }
    
    i.fa-bars {
   display: flex;
   align-items: center;
   
   justify-content: center;
   width: 40px;
   height: 40px;
    }
    
    .logo {
        order: 0;
        flex: 1;
    }
    
    .logo img {
  height: 40px;   /* logo size */
  justify-content: flex-start;
  width: auto;
    }
    .auth-buttons {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-radius: var(--border-radius);
    }
    
    .nav-menu a:hover {
        background-color: rgba(129, 50, 50, 0.377);
    }
    
    .auth-buttons.mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 20px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .auth-buttons.mobile .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        color: white;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .preview-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 5px 0;
        height: 15px;
    }
    .h1Logo {
        font-size: 20px;
    }

    .tool-header h1 {
        font-size: 2rem;
    }
    .tool-card {
        padding: 15px;
        margin: 15px 0;
    }
    
    .settings-header h3 {
        font-size: 1rem;
    }
    .ad-container {
        margin: 10px auto;
        min-height: 75px;
    }
    
    .upload-box {
        padding: 20px 15px;
    }

    .upload-text h3 {
        font-size: 1rem;
    }
    
    .preview-item {
        width: 100px;
    }
    
    .preview-img {
        height: 120px;
    }
    
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-icon {
        margin-right: 0;
    }
    
    .file-name {
        width: 100%;
    }
}

/* Utility Classes */
.hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none;
    }
    .hidden-mobile {
        display: flex;
    }
}


    