@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

#logo img {
    max-height: 68px;
    width: auto;
    object-fit: contain;
}

/* Navigation Categories Menu */
.main-menu ul.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    height: 72px;
    align-items: center;
}

.main-menu li.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.nav-link i.chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.main-menu li.nav-item:hover .nav-link {
    color: #2563eb;
    background: #f1f5f9;
}

.main-menu li.nav-item:hover .nav-link i.chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Animated Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 380px;
    overflow-y: auto;
}

.main-menu li.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 550;
    color: #475569;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 16px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 32px auto;
    font-weight: 500;
    line-height: 1.6;
}

/* Search Bar (NeoTools Capsule Style) */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input-container i.search-icon {
    display: none;
}

.search-input-container input {
    width: 100%;
    height: 56px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0 140px 0 20px;
    font-size: 15px;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.search-input-container input::placeholder {
    color: #94a3b8;
}

.search-input-container input:focus {
    border-color: #94a3b8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 0 28px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #b91c1c;
}

/* Grid Heading */
.grid-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 750;
    color: #0f172a;
    margin: 40px 0 24px 0;
    letter-spacing: -0.01em;
}

/* Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding: 10px 0 80px 0;
}

/* Card Styling (NeoTools Layout) */
.tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

.tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.05);
}

/* Category-specific Icon Colors */
.tool-card[data-category="Convert to PDF"] .tool-icon-wrapper {
    background: rgba(220, 38, 38, 0.07);
    color: #dc2626;
}

.tool-card[data-category="Convert from PDF"] .tool-icon-wrapper {
    background: rgba(37, 99, 235, 0.07);
    color: #2563eb;
}

.tool-card[data-category="Organize & Optimize"] .tool-icon-wrapper {
    background: rgba(16, 185, 129, 0.07);
    color: #10b981;
}

.tool-card[data-category="Edit & View"] .tool-icon-wrapper {
    background: rgba(217, 119, 6, 0.07);
    color: #d97706;
}

.tool-card[data-category="Security & ZIP"] .tool-icon-wrapper {
    background: rgba(139, 92, 246, 0.07);
    color: #8b5cf6;
}

/* Card Text Styling */
.tool-text-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.tool-text-container h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.tool-text-container p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 15px;
}

.no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* Footer Styling (NeoTools Layout) */
footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 40px 0;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-info p {
    font-size: 13.5px;
    color: #64748b;
    max-width: 260px;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 13.5px;
    color: #64748b;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyrights {
    font-size: 13px;
    color: #64748b;
}

.footer-socials {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #94a3b8;
}

.footer-socials a:hover {
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    .hero-section p {
        font-size: 15px;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }
    .main-menu ul.nav-list {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   PDF Tool Pages Component Styling (NeoTools)
   ========================================== */

/* Main Container Override */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#main-content {
    margin-top: 30px;
    margin-bottom: 60px;
}

.pdf-tool-container, #pdf-tool-tool2, .pdf-tool-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

/* Title on tool pages */
.pdf-tool-container h2, #pdf-tool-tool2 h2, .pdf-tool-wrapper h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Text & Form Inputs */
input[type="text"], input[type="url"], input[type="password"], input[type="email"], select, textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: 16px;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    height: auto;
    padding: 12px 16px;
    min-height: 120px;
    resize: vertical;
}

/* File Drop Zone / Upload Area */
.upload-box, #drop-zone, .drop-zone, .dropzone, #dropzone {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 48px 24px !important;
    background: #f8fafc !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    margin: 20px 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.upload-box:hover, #drop-zone:hover, .drop-zone:hover {
    border-color: #2563eb !important;
    background: #f1f5f9 !important;
}

/* Custom File Upload Selector Button styling */
input[type=file]::file-selector-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 12px;
}

input[type=file]::file-selector-button:hover {
    background-color: #1d4ed8;
}

/* Interactive Buttons */
button, .button, #button, .btn, #btn, .downloadlink, #download-button, #button-copy, .button-copy, .copy-button, #copy-button, #copy, .copy, #download-html-button, [type="button"], [type="submit"], [type="reset"], #download-btn-html, #download-btn-txt, #download-link, #download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    background: #2563eb !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.15) !important;
    font-family: inherit;
    margin: 10px 4px !important;
    text-transform: none !important;
    text-decoration: none !important;
}

button:hover, .button:hover, #button:hover, .btn:hover, #btn:hover, .downloadlink:hover, #download-button:hover, .copy-button:hover, #copy-button:hover, [type="button"]:hover, [type="submit"]:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-1px) !important;
}

button:active, .button:active, .btn:active {
    transform: translateY(1px) !important;
}

/* Secondary Buttons */
.copy-button, #button-copy, .button-copy, #copy {
    background: #64748b !important;
    box-shadow: 0 4px 6px -1px rgba(100, 116, 139, 0.15) !important;
}

.copy-button:hover, #button-copy:hover, .button-copy:hover, #copy:hover {
    background: #475569 !important;
    box-shadow: 0 10px 15px -3px rgba(100, 116, 139, 0.25) !important;
}

