:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
}
.brand-logo{
    width:52px;
    height:52px;
    object-fit:contain;
}
.brand-logo1{
    width:92px;
    height:92px;
    object-fit:contain;
}
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
    padding: 10px 4%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
}

.navbar-brand {
    color: var(--text);
    font-size: 23px;
    font-weight: 800;
}

.navbar-brand:hover {
    color: var(--primary);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: white;
    background: var(--primary);
    border-radius: 12px;
}

.nav-link {
    margin: 0 5px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.theme-button {
    width: 42px;
    height: 42px;
    margin-left: 8px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.theme-button:hover {
    color: white;
    background: var(--primary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    padding: 9px 15px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .btn {
    padding: 13px 23px;
    border-radius: 12px;
    font-weight: 700;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-features i {
    margin-right: 6px;
    color: var(--success);
}

.hero-card {
    padding: 45px 35px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.hero-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 105px;
    margin-bottom: 23px;
    color: white;
    background: linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    );
    border-radius: 28px;
    font-size: 52px;
    transform: rotate(-3deg);
    box-shadow: 0 18px 35px rgba(220, 38, 38, 0.25);
}

.hero-card h2 {
    font-size: 29px;
    font-weight: 800;
}

.hero-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.system-status {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 10px;
    padding: 9px 14px;
    color: #166534;
    background: #dcfce7;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.popular-section,
.tools-section {
    padding: 75px 0;
}

.popular-section {
    background: var(--surface);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 800;
}

.popular-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 25px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: 0.25s ease;
}

.popular-card:hover {
    color: var(--text);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.popular-icon,
.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 16px;
    font-size: 27px;
}

.popular-card h3,
.tool-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
}

.popular-card p,
.tool-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.popular-arrow {
    position: absolute;
    right: 23px;
    bottom: 20px;
    color: var(--primary);
    font-size: 20px;
}

.tools-header {
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    width: 330px;
    max-width: 100%;
    padding: 0 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: none;
}

.tool-card {
    display: block;
    height: 100%;
    min-height: 285px;
    padding: 26px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: 0.25s ease;
}

.tool-card:hover {
    color: var(--text);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.tool-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.tool-category {
    padding: 6px 10px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--primary);
    font-weight: 700;
}

.empty-result {
    padding: 70px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-result i {
    display: block;
    margin-bottom: 20px;
    font-size: 55px;
}

.empty-result h3 {
    color: var(--text);
    font-weight: 800;
}

.app-footer {
    padding: 30px 15px;
    color: #cbd5e1;
    background: #0f172a;
}

.app-footer p {
    color: white;
    font-size: 18px;
    font-weight: 800;
}

body.dark-mode {
    --background: #0f172a;
    --surface: #172033;
    --text: #f8fafc;
    --text-muted: #a8b3c5;
    --border: #2c3a50;
    --primary-light: rgba(37, 99, 235, 0.17);
}

body.dark-mode .app-navbar {
    background: rgba(15, 23, 42, 0.96);
}

body.dark-mode .hero-section {
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #111827,
            #0f172a
        );
}

body.dark-mode .navbar-toggler {
    background: white;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 65px 0;
    }

    .hero-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .tools-header {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .theme-button {
        margin: 8px 0 0;
    }
}

@media (max-width: 575px) {
    .app-navbar {
        padding-right: 15px;
        padding-left: 15px;
    }

    .hero-section {
        padding: 45px 0;
    }

    .hero-title {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .hero-card {
        padding: 35px 20px;
    }

    .popular-section,
    .tools-section {
        padding: 55px 0;
    }

    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .popular-card,
    .tool-card {
        min-height: auto;
    }
}
.tool-page-section {
    min-height: calc(100vh - 140px);
    padding: 55px 0 80px;
}

.tool-page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-weight: 700;
}

.back-link:hover {
    color: var(--primary);
}

.tool-page-title {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tool-page-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 35px;
}

.tool-page-title h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 850;
}

.tool-page-title p {
    max-width: 700px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.pdf-form-card {
    overflow: hidden;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.upload-drop-zone {
    padding: 65px 25px;
    text-align: center;
    background: var(--background);
    border: 2px dashed var(--border);
    border-radius: 20px;
    transition: 0.2s ease;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    background: var(--primary-light);
    border-color: var(--primary);
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    color: var(--primary);
    background: var(--surface);
    border-radius: 24px;
    font-size: 42px;
    box-shadow: var(--shadow);
}

.upload-drop-zone h2 {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 800;
}

.upload-drop-zone p {
    margin-bottom: 22px;
    color: var(--text-muted);
}

.upload-drop-zone small {
    display: block;
    margin-top: 16px;
    color: var(--text-muted);
}

.upload-button {
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.selected-files-area {
    margin-top: 30px;
}

.selected-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.selected-files-header h3 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
}

.selected-files-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    padding: 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.selected-file-info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.selected-file-number {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.selected-file-icon {
    flex: 0 0 auto;
    color: #dc2626;
    font-size: 30px;
}

.selected-file-text {
    min-width: 0;
}

.selected-file-text strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-text small {
    color: var(--text-muted);
}

.selected-file-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.file-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 17px;
    color: var(--text-muted);
    background: var(--background);
    border-radius: 12px;
}

.merge-submit-area {
    margin-top: 30px;
    text-align: center;
}

.merge-submit-area .btn {
    min-width: 220px;
    padding: 14px 25px;
    border-radius: 13px;
    font-weight: 800;
}

.privacy-notice {
    display: flex;
    gap: 14px;
    align-items: start;
    margin-top: 24px;
    padding: 18px;
    color: #166534;
    background: #dcfce7;
    border-radius: 15px;
}

.privacy-notice > i {
    font-size: 27px;
}

.privacy-notice p {
    margin: 3px 0 0;
    line-height: 1.6;
}

body.dark-mode .privacy-notice {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.16);
}

body.dark-mode .btn-light {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

@media (max-width: 575px) {
    .tool-page-section {
        padding: 35px 0 55px;
    }

    .tool-page-title {
        align-items: flex-start;
    }

    .tool-page-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 27px;
    }

    .pdf-form-card {
        padding: 16px;
        border-radius: 18px;
    }

    .upload-drop-zone {
        padding: 45px 15px;
    }

    .selected-files-header {
        align-items: stretch;
        flex-direction: column;
    }

    .selected-file-item {
        align-items: stretch;
        flex-direction: column;
    }

    .selected-file-actions {
        justify-content: flex-end;
    }

    .file-summary {
        flex-direction: column;
    }

    .merge-submit-area .btn {
        width: 100%;
    }
}
.single-selected-file {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    max-width: 100%;
    margin-top: 25px;
    padding: 14px 18px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.single-selected-file > i {
    flex: 0 0 auto;
    color: #dc2626;
    font-size: 34px;
}

.single-selected-file div {
    min-width: 0;
}

.single-selected-file strong {
    display: block;
    overflow: hidden;
    max-width: 500px;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-selected-file small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
}

.split-options {
    margin-top: 30px;
}

.split-options > h3 {
    margin-bottom: 17px;
    font-size: 21px;
    font-weight: 800;
}

.split-option-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    padding: 18px;
    cursor: pointer;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.2s ease;
}

.split-option-card:hover {
    border-color: var(--primary);
}

.split-option-card:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.split-option-card input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.split-option-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--primary);
    background: var(--surface);
    border-radius: 13px;
    font-size: 23px;
}

.split-option-card strong,
.split-option-card small {
    display: block;
}

.split-option-card strong {
    color: var(--text);
    font-size: 16px;
}

.split-option-card small {
    margin-top: 4px;
    color: var(--text-muted);
}

.page-range-area {
    margin-top: 20px;
    padding: 20px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.page-range-area label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.page-range-area .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.page-range-area small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

body.dark-mode .form-control::placeholder {
    color: #8290a6;
}

@media (max-width: 575px) {
    .split-option-card {
        align-items: flex-start;
    }

    .single-selected-file strong {
        max-width: 210px;
    }
}
.compression-options {
    margin-top: 30px;
}

.compression-options > h3 {
    margin-bottom: 17px;
    font-size: 21px;
    font-weight: 800;
}

.compression-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.compression-card {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px;
    cursor: pointer;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
    transition: 0.2s ease;
}

.compression-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.compression-card:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.compression-card input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.compression-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--primary);
    background: var(--surface);
    border-radius: 14px;
    font-size: 24px;
}

.compression-card strong,
.compression-card small {
    display: block;
}

.compression-card strong {
    margin-bottom: 5px;
    padding-right: 20px;
    color: var(--text);
}

.compression-card small {
    color: var(--text-muted);
    line-height: 1.5;
}

.compression-engine-notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 25px;
    padding: 17px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 15px;
}

.compression-engine-notice > i {
    flex: 0 0 auto;
    font-size: 24px;
}

.compression-engine-notice p {
    margin: 4px 0 0;
    line-height: 1.6;
}

body.dark-mode .compression-engine-notice {
    color: #bfdbfe;
}

@media (max-width: 900px) {
    .compression-grid {
        grid-template-columns: 1fr;
    }
}
.ocr-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.ocr-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.ocr-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.ocr-settings .form-select,
.ocr-settings .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.ocr-settings .form-text {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

.ocr-language-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 18px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 15px;
}

.ocr-language-notice > i {
    flex: 0 0 auto;
    font-size: 26px;
}

.ocr-language-notice p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

body.dark-mode .ocr-language-notice {
    color: #bfdbfe;
}
.pdf-word-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.pdf-word-settings > h3 {
    margin-bottom: 18px;
    font-size: 21px;
    font-weight: 800;
}

.pdf-word-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.pdf-word-settings .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.pdf-word-settings small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

.pdf-word-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 18px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 15px;
}

.pdf-word-notice > i {
    flex: 0 0 auto;
    font-size: 25px;
}

.pdf-word-notice p {
    margin: 4px 0 0;
    line-height: 1.6;
}

body.dark-mode .pdf-word-notice {
    color: #bfdbfe;
}
.image-pdf-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.image-pdf-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.image-pdf-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.image-pdf-settings .form-select,
.image-pdf-settings .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.image-preview-box {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.excel-tool-icon {
    color: #15803d;
    background: #dcfce7;
}

.pdf-excel-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.pdf-excel-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.pdf-excel-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.pdf-excel-settings .form-select,
.pdf-excel-settings .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.pdf-excel-settings small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

.pdf-excel-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 18px;
    color: #166534;
    background: #dcfce7;
    border-radius: 15px;
}

.pdf-excel-notice > i {
    flex: 0 0 auto;
    font-size: 25px;
}

.pdf-excel-notice p {
    margin: 4px 0 0;
    line-height: 1.6;
}

body.dark-mode .pdf-excel-notice {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.16);
}
.ocr-image-preview-area {
    margin-top: 30px;
    padding: 20px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.ocr-preview-header,
.ocr-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.ocr-preview-header h3,
.ocr-result-header h3 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
}

.ocr-preview-header p,
.ocr-result-header p {
    margin: 0;
    color: var(--text-muted);
}

.ocr-image-preview {
    display: block;
    max-width: 100%;
    max-height: 600px;
    margin: auto;
    object-fit: contain;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ocr-browser-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.ocr-browser-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.ocr-browser-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.ocr-browser-settings .form-select {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.ocr-progress-area {
    margin-top: 25px;
    padding: 18px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.ocr-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text);
}

.ocr-result-area {
    margin-top: 30px;
    padding: 22px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.ocr-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ocr-result-area textarea {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
    line-height: 1.7;
}

@media (max-width: 575px) {
    .ocr-preview-header,
    .ocr-result-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ocr-result-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
.pdf-text-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.pdf-text-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.pdf-text-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.pdf-text-settings .form-select,
.pdf-text-settings .form-control {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.pdf-text-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.pdf-text-actions .btn {
    min-width: 210px;
    padding: 14px 24px;
    border-radius: 13px;
    font-weight: 800;
}

@media (max-width: 575px) {
    .pdf-text-actions {
        flex-direction: column;
    }

    .pdf-text-actions .btn {
        width: 100%;
    }
}
.crop-settings {
    margin-top: 30px;
    padding: 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 17px;
}

.crop-settings > h3 {
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 800;
}

.crop-settings .form-label {
    color: var(--text);
    font-weight: 700;
}

.crop-settings .form-control,
.crop-settings .input-group-text {
    min-height: 48px;
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.crop-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 20px;
}

.crop-presets > span {
    color: var(--text-muted);
    font-weight: 700;
}