:root {
    /* Color Palette */
    --primary: #e5322d;
    --primary-hover: #c42b27;
    --secondary: #333e48;
    --tertiary: #f29a2e;
    --quaternary: #4baf4f;
    --quinary: #E8F5E9;
    --primary-light: rgba(229, 50, 45, 0.1);


    /* Base Theme (Light) */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #f3f0ec;
    --bg-header: #ffffff;

    --text-main: #000000;
    --text-muted: #4a4a4a;
    --text-light: #ffffff;

    --border-color: #e1e4e8;

    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.12);

    --white: #ffffff;
    --radius-lg: 12px;
    --radius-md: 8px;

    /* Tool Specific Colors */
    --color-organize: var(--tertiary);
    --color-optimize: var(--quaternary);
    --color-convert-to: #3e86c6;
    --color-convert-from: #6c5ce7;
    --color-edit: #b339a1;
    --color-security: #e74c3c;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-body: #1a202c;
    --bg-card: #2d3748;
    --bg-light: #2d3748;
    --bg-header: #1a202c;
    --bg-footer: #000000;
    /* Dedicated footer variable for dark mode */

    --text-main: #ffffff;
    --text-muted: #cbd5e0;
    --text-light: #e2e8f0;

    --border-color: #4a5568;

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.4);

    --secondary: #f7fafc;
    /* Make secondary text light in dark mode */
    --search-bg: #2d3748;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

#tool-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

#tool-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(229, 50, 45, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 5%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 55px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(229, 50, 45, 0.1);
}

body.dark-mode header.scrolled {
    background: rgba(26, 32, 44, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--secondary);
}



.logo-i {
    color: var(--primary);
}

.logo-create {
    color: #16a34a;
    /* Vivid Green */
}

.logo-pdf {
    color: var(--primary);
}

/* Dark Mode Logo Adaptation */
body.dark-mode .logo-create {
    color: #4ade80;
    /* Lighter Green for Dark Mode */
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav>a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-nav>a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Theme Toggle Slider */
.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    background: #e2e8f0;
    /* Darker grey for better visibility in light mode */
    border: 2px solid #cbd5e0;
    border-radius: 50px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    /* Subtle pop effect */
}

.toggle-track {
    width: 100%;
    height: 100%;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Icons inside thumb */
.toggle-thumb i {
    width: 16px;
    height: 16px;
    position: absolute;
    transition: all 0.4s ease;
    stroke-width: 2.5px;
    /* Thicker strokes */
}

.icon-sun {
    color: #f59e0b;
    /* Vivid Amber */
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
}

.icon-moon {
    color: #3b82f6;
    /* Vivid Blue */
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
}

/* Dark Mode State */
body.dark-mode .theme-toggle {
    background: #4a5568;
    /* Harder dark grey */
    border-color: #718096;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .toggle-thumb {
    transform: translateX(32px);
    background: #2d3748;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0);
}

body.dark-mode .icon-moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-btn i {
    width: 16px;
    height: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 2rem;
    min-width: 900px;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.tool-column h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tool-column a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.tool-column a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.tool-column a i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero {
    text-align: center;
    padding: 1rem 2rem 0.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.tool-category {
    max-width: 1550px;
    margin: 1.5rem auto;
    padding: 0 5%;
}

.tool-category h2 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tool-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.remove-file-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
}

.preview-item:hover .remove-file-btn {
    opacity: 1;
    visibility: visible;
}

.remove-file-btn:hover {
    background: #000;
    transform: scale(1.1);
}

.remove-file-btn i {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

.tool-card i {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tool-card.organize i {
    color: var(--color-organize);
}

.tool-card.optimize i {
    color: var(--color-optimize);
}

.tool-card.convert-to i {
    color: var(--color-convert-to);
}

.tool-card.convert-from i {
    color: var(--color-convert-from);
}

.tool-card.edit i {
    color: var(--color-edit);
}

.tool-card.security i {
    color: var(--color-security);
}

/* Featured Tools Section */
.featured-tools {
    max-width: 1550px;
    margin: 2rem auto;
    padding: 0 5%;
}

.featured-tools h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.tool-grid-featured {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .tool-grid-featured {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .tool-grid-featured {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-grid-featured {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tool-grid-featured {
        grid-template-columns: repeat(1, 1fr);
    }
}



.tool-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 180px;
    justify-content: center;
}

.tool-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.tool-card-large i {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tool-card-large h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-card-large p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* All Tools Section with Tabs */
.all-tools-section {
    max-width: 1550px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.all-tools-section>h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

/* Tab Logic */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-grid-category {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .tool-grid-category {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .tool-grid-category {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-grid-category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tool-grid-category {
        grid-template-columns: repeat(1, 1fr);
    }
}

.tool-grid-category .tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.tool-grid-category .tool-card i {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tool-grid-category .tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-grid-category .tool-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Testimonials Section */
.testimonials-section {
    max-width: 1500px;
    margin: 5rem auto;
    padding: 0 2rem;
    background: var(--bg-light);

    /* Updated to variable for dark mode support */
    border-radius: 16px;
    padding: 4rem 2rem;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Carousel Container */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.testimonials-container {
    overflow: hidden;
    flex: 1;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

/* Testimonial Card */
.testimonial-card {
    min-width: calc(33.333% - 1.35rem);
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* Stars */
.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    width: 18px;
    height: 18px;
}

.testimonial-stars svg {
    fill: #ffd700 !important;
    stroke: #ffd700 !important;
    color: #ffd700 !important;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Author Info */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Carousel Buttons */
.carousel-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    color: var(--text-main);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.carousel-btn:hover i {
    color: var(--white);
}

.carousel-btn i {
    width: 24px;
    height: 24px;
    color: inherit;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonials-carousel {
        gap: 1rem;
    }

    .testimonial-card {
        min-width: 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .testimonials-section h2,
    .hero h1 {
        font-size: 2rem;
    }
}

/* Content Pages */
.content-page {
    padding: 6rem 2rem;
    min-height: 60vh;
    animation: fadeIn 0.3s ease-in;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.content-container .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.content-container h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-container p {
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.content-container ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Contact Form */
.contact-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background: #d62c27;
    transform: translateY(-2px);
}

footer {
    background: #1a202c;
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
    /* Always white in footer */
}

.footer-tagline {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #edf2f7;
    border-radius: 50%;
    color: #2d3748;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #16a34a;
    color: var(--white);
    transform: translateY(-3px);
}

.social-links i {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-page {
    display: none;
    background: var(--bg-light);
}

.tool-container {
    display: flex;
    min-height: calc(100vh - 70px);
    width: 100%;
}

.options-sidebar {
    width: 320px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-main {
    flex: 1;
    padding: 2rem 3rem;
    background: var(--bg-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Base for absolute FABs */
}

.tool-main .hero {
    text-align: center;
    padding: 1rem 0 2rem;
    width: 100%;
}

.tool-main .hero p {
    margin: 0 auto;
    max-width: 800px;
}

.drop-zone {
    border: 3px dashed var(--border-color);
    background: var(--bg-card);
    padding: 5rem 2rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: #fff8f8;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 4rem;
}

.preview-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: grab;
}

.preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.preview-item:active {
    cursor: grabbing;
}

.preview-item img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.preview-item-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-more-card {
    background: var(--white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    aspect-ratio: 3/4;
}

.add-more-card:hover {
    background: #fffafa;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.add-more-card .add-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(229, 50, 45, 0.2);
}

.add-more-card .add-icon-wrapper i,
.add-more-card .add-icon-wrapper svg {
    width: 24px;
    height: 24px;
    stroke-width: 3px;
    color: white !important;
}

.add-more-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}


/* Floating Action Buttons */

/* Option Card Styles */
.option-buttons {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.option-group[data-cols="2"] .option-buttons {
    grid-template-columns: 1fr 1fr;
}

.option-group[data-cols="3"] .option-buttons {
    grid-template-columns: 1fr 1fr 1fr;
}

.option-button {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.option-button i {
    width: 24px;
    height: 24px;
    color: #4a5568;
}

.option-button span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
}

.option-button:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.option-button.active {
    border: 2px solid #e5322d;
    background: #fff5f5;
}

.option-button.active i,
.option-button.active span {
    color: #e5322d;
}

/* Action Button Refinement */
.action-btn-large {
    width: 100%;
    background: #e5322d;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(229, 50, 45, 0.2);
}

.action-btn-large:hover {
    background: #c42b27;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(229, 50, 45, 0.3);
}

.action-btn-large i {
    width: 24px;
    height: 24px;
}

.option-group {
    margin-bottom: 0.75rem;
}

.option-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.option-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked {
    border-color: #16a34a;
}

.option-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #16a34a;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.option-checkbox:hover input[type="checkbox"] {
    border-color: #cbd5e0;
}

select,
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* --- Success Page Redesign --- */
.success-page {
    padding: 4rem 2rem;
    text-align: center;
    background: #fdfdfd;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertical Center */
}

.success-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 3.5rem;
}

.success-main-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
    position: relative;
}

/* Round Side Buttons */
.back-circle-btn,
.side-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #333;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.side-action-btn {
    background: #e5322d;
}

.side-action-btn.delete {
    background: #e5322d;
}

.back-circle-btn:hover,
.side-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.side-actions-stack {
    display: flex;
    gap: 0.75rem;
}

/* Main Download Button Premium */
.download-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #e5322d;
    color: white !important;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(229, 50, 45, 0.4);
    transition: all 0.3s;
}

.download-btn-premium:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 30px rgba(229, 50, 45, 0.5);
}

/* Continue Tools Grid */
.continue-tools-container {
    width: 100%;
    max-width: 900px;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    margin: 0 auto 4rem;
}

.continue-tools-header {
    text-align: center;
    /* Centered Header */
    margin-bottom: 2rem;
}

.continue-tools-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #333;
}

.continue-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.compact-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 700;
    transition: all 0.3s;
}

.compact-tool-card:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.compact-tool-card i {
    width: 24px;
    height: 24px;
}

.compact-tool-card .arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    opacity: 0.3;
}

.compact-tool-card:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

.see-more-link {
    display: block;
    text-align: right;
    margin-top: 1.5rem;
    color: #718096;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Testimonials Styling */
.testimonials-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    margin-top: 2rem;
    background: #f8f6f2;
    /* Matches reference beige-white */
    border-radius: 24px;
    margin: 2rem auto 0;
}

.testimonials-header {
    text-align: center;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.testimonials-header p {
    color: #718096;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.testimonials-wrapper .testimonials-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.testimonial-card {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
    color: #f6ad55;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Dark Mode Testimonials */
body.dark-mode .testimonials-wrapper {
    background: #2d3748;
}

body.dark-mode .testimonial-card {
    background: #1a202c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .testimonials-header h2 {
    color: white;
}

body.dark-mode .testimonial-card p {
    color: #cbd5e0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1a202c;
}

.user-info strong {
    display: block;
    color: #2d3748;
}

.user-info span {
    font-size: 0.85rem;
    color: #a0aec0;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Tool specific colors for icons */
.icon-compress {
    color: #48bb78;
}

.icon-merge {
    color: #ed8936;
}

.icon-split {
    color: #f56565;
}

.icon-watermark {
    color: #9f7aea;
}

.icon-rotate {
    color: #ed64a1;
}

.icon-protect {
    color: #4299e1;
}

@media (max-width: 900px) {
    .continue-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .success-main-actions {
        flex-direction: column;
        gap: 2rem;
    }

    .continue-tools-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }

    .options-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: none;
        /* Usually hidden on mobile until toggled */
    }

    .nav-links {
        display: none;
    }
}


/* Quaternary Button (User Requested) */
.btn-quaternary {
    background-color: var(--quaternary);
    color: var(--white) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-quaternary:hover {
    filter: brightness(0.95);
    color: var(--white);
}

/* Quinary Button (User Requested) */
.btn-quinary {
    background-color: var(--quinary);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-quinary:hover {
    filter: brightness(0.95);
    color: var(--primary);
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    /* Light grey distinct from body white */
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    border-top: 4px solid var(--primary);
    /* Thick colored border for clear separation */
    transition: background-color 0.3s;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Upward shadow */
}

body.dark-mode footer {
    background-color: #000000;
    border-top-color: #333;
    /* Darker border for black footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: inline-block;
}

.footer-section h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Content Pages (Terms, Privacy, About, Contact) */
.content-page {
    padding: 8rem 2rem 4rem;
    min-height: 80vh;
    animation: fadeIn 0.5s ease;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-container h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.1);
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Options Sidebar Elements */

/* Sidebar Elements */
.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.sidebar-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Floating Action Buttons */
.fab-container {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--primary);
    color: white;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 50, 45, 0.3);
}

.fab svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #16a34a;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s;
    pointer-events: none;
}

.fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 1200px) {
    .fab-container {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }

    .options-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        order: 2;
    }

    .tool-main {
        order: 1;
    }

    .fab-container {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Grid Menu (Apps) */
.apps-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.apps-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.apps-btn:hover {
    background: var(--bg-body);
}

.apps-btn i {
    width: 20px;
    height: 20px;
}

.apps-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    width: 280px;
    display: none;
    z-index: 1100;
    padding: 1rem;
    animation: menuFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apps-dropdown.show {
    display: block;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.apps-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
}

.apps-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apps-help i {
    color: #3b82f6;
    /* Help Blue */
}

.apps-help:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.apps-translate i {
    color: #10b981;
    /* Translate Green */
}

.apps-translate:hover {
    background: #ecfdf5;
    border-color: #10b981;
}

body.dark-mode .apps-help:hover {
    background: rgba(59, 130, 246, 0.1);
}

body.dark-mode .apps-translate:hover {
    background: rgba(16, 185, 129, 0.1);
}

.apps-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Dark Mode logic handle for dropdown */
body.dark-mode .apps-dropdown {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.1);
}


/* Language List Grid styles */
.language-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.lang-column {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.lang-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    padding-left: 2rem;
}

.lang-item:hover {
    background: var(--bg-light);
}

.lang-item.active {
    font-weight: 600;
}

.lang-item .checkmark {
    position: absolute;
    left: 0.5rem;
    opacity: 0;
}

.lang-item.active .checkmark {
    opacity: 1;
    color: var(--primary);
}

@media (max-width: 768px) {
    .language-list-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .lang-btn:hover {
    background: #252525;
    border-color: var(--primary);
}

/* PDF Tool Options UI */
.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-button {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--text-muted);
}

.option-button:active {
    transform: scale(0.95);
}

.option-button.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 2px var(--primary-light), 0 4px 12px rgba(220, 38, 38, 0.1);
    transform: translateY(0);
}

.option-button.active i {
    animation: bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.option-select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    transition: all 0.2s;
}

.option-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

/* PDF Live Preview Simulation */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
    transition: all 0.4s ease;
}

.preview-sheet {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin: 0 auto 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: padding 0.3s ease;
}

.preview-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Orientation Styles */
.orient-portrait .preview-sheet {
    aspect-ratio: 210 / 297;
    width: 140px;
}

.orient-landscape .preview-sheet {
    aspect-ratio: 297 / 210;
    width: 180px;
}

/* Margin Styles */
.margin-none .preview-content {
    padding: 0 !important;
}

.margin-small .preview-content {
    padding: 10% !important;
}

.margin-big .preview-content {
    padding: 20% !important;
}

/* Page Size Hints (A4/Letter visual consistency) */
.size-a4 .preview-sheet {
    opacity: 1;
}

.size-fit .preview-sheet {
    background: var(--bg-card);
}

/* Card adjustments for sheet */
.preview-item {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.preview-item-name {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}