:root {
    --bg-app: #f4f6f8;
    --bg-surface: rgba(255, 255, 255, 0.96);
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;
    --border: #dbe3ea;
    --border-strong: #c9d5df;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-soft: #8aa0b2;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.08);
    --orange-main: #ff6700;
    --orange-hover: #e85d00;
    --orange-soft: #f4aa36;
    --orange-light: #fff1df;
    --orange-light-2: #ffe6c7;
    --orange-border: #efb172;
    --teal-main: #33a3a7;
    --teal-dark: #11878c;
    --teal-deep: #0b6d70;
    --teal-soft: #e5f7f7;
    --sidebar-bg: #0f4c5c;
    --sidebar-bg-2: #0b6d70;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: #fb8500;
    --sidebar-text: #edf6f7;
    --sidebar-muted: rgba(237, 246, 247, 0.68);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-app);
}

/* Base */
a,
.btn-link {
    color: var(--teal-dark);
    text-decoration: none;
}

.btn {
    border-radius: 14px;
    font-weight: 650;
    transition: all 0.16s ease;
}

.btn-primary {
    color: #fff;
    background: var(--orange-main);
    border: 1px solid var(--orange-main);
    box-shadow: 0 10px 22px rgba(255, 103, 0, 0.24);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        background: var(--orange-hover);
        border-color: var(--orange-hover);
        box-shadow: 0 14px 26px rgba(232, 93, 0, 0.3);
    }

.btn-dark {
    background: var(--teal-deep);
    border-color: var(--teal-deep);
    color: #fff;
}

    .btn-dark:hover {
        background: var(--teal-dark);
        border-color: var(--teal-dark);
    }

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-radius: 14px;
}

.btn-outline-primary {
    color: var(--teal-dark);
    border-color: rgba(17, 135, 140, 0.35);
}

    .btn-outline-primary:hover {
        background: var(--teal-soft);
        color: var(--teal-deep);
        border-color: var(--teal-main);
    }

.btn-outline-secondary {
    color: #475569;
    border-color: #cbd5e1;
}

    .btn-outline-secondary:hover {
        background: #f8fafc;
        color: var(--text-main);
        border-color: #94a3b8;
    }

.btn-outline-danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.28);
}

    .btn-outline-danger:hover {
        background: #fef2f2;
        color: #b91c1c;
        border-color: #ef4444;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(17, 135, 140, 0.14);
}

/* Main action buttons */
.action-download-btn {
    color: #fff !important;
    background: var(--orange-main) !important;
    background-color: var(--orange-main) !important;
    background-image: none !important;
    border: 1px solid var(--orange-main) !important;
    box-shadow: 0 10px 22px rgba(255, 103, 0, 0.24) !important;
}

    .action-download-btn:hover:not(:disabled) {
        color: #fff !important;
        background: var(--orange-hover) !important;
        background-color: var(--orange-hover) !important;
        background-image: none !important;
        border-color: var(--orange-hover) !important;
        box-shadow: 0 14px 26px rgba(232, 93, 0, 0.3) !important;
    }

    .action-download-btn:disabled {
        color: #fff !important;
        background: var(--orange-main) !important;
        background-color: var(--orange-main) !important;
        border-color: var(--orange-main) !important;
        opacity: 0.55 !important;
        box-shadow: none !important;
    }

/* Layout */
.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    color: var(--sidebar-text);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 28px;
    overflow-x: hidden;
}

.main-header {
    margin-bottom: 24px;
}

.main-surface {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 18px 6px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-main);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(17, 135, 140, 0.24);
}

.brand-title {
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.1;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.88rem;
    color: var(--sidebar-muted);
    margin-top: 4px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 8px 6px 18px 6px;
}

/* Navigation */
.nav-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    margin: 0 10px 10px 10px;
}

.custom-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.18s ease;
    margin-bottom: 6px;
    font-weight: 550;
    background: transparent;
}

    .custom-nav-link:hover {
        background: var(--sidebar-hover);
        color: #fff;
    }

    .custom-nav-link.active {
        background: var(--sidebar-active);
        color: #fff;
        box-shadow: 0 10px 22px rgba(251, 133, 0, 0.28);
    }

.nav-icon {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    font-size: 0.95rem;
}

.nav-disabled {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
}

/* Typography */
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-dark);
    font-weight: 800;
    margin-bottom: 10px;
}

.main-subtitle,
.section-header p,
.tool-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.section-header h2,
.tool-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.compact-header p {
    display: none;
}

/* Shared surfaces */
.tool-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tool-card,
.upload-card,
.files-card,
.preview-card,
.hero-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.hero-content {
    background: radial-gradient(circle at top right, rgba(51, 163, 167, 0.1), transparent 30%), linear-gradient(135deg, #ffffff 0%, #f8fcfc 100%);
}

.alert {
    border-radius: 16px;
    border: none;
    padding: 14px 16px;
    font-weight: 500;
}

.alert-secondary {
    background: #f3f7fa;
    color: #334155;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 48px;
    border-color: var(--border);
    box-shadow: none;
    background-color: #ffffff;
    color: var(--text-main);
}

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(17, 135, 140, 0.45);
    }

input[type="file"].form-control {
    padding: 0.45rem 0.75rem;
    line-height: 1.5;
    color: #334155;
    background-color: #ffffff;
}

    input[type="file"].form-control::file-selector-button {
        margin-right: 14px;
        border: none;
        background: #e8f6f7;
        color: var(--teal-dark);
        padding: 10px 14px;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s ease;
    }

        input[type="file"].form-control::file-selector-button:hover {
            background: #d8eff0;
        }

.toolbar-icon-btn {
    min-width: 42px;
    padding: 0.42rem 0.7rem;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(51, 163, 167, 0.12);
    color: var(--teal-dark);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero-text {
    margin-top: 14px;
    max-width: 780px;
    color: #475569;
    font-size: 1.03rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

    .hero-actions .btn {
        min-width: 210px;
    }

    .hero-actions .btn-dark,
    .hero-actions .btn-outline-dark {
        background: #ffffff;
        color: var(--text-main);
        border: 1px solid var(--border-strong);
        box-shadow: none;
    }

        .hero-actions .btn-dark:hover,
        .hero-actions .btn-outline-dark:hover {
            background: #fff7ef;
            color: var(--orange-main);
            border-color: var(--orange-border);
        }

.hero-btn {
    border-radius: 14px;
    padding-inline: 18px;
    font-weight: 600;
}

.dashboard-hero {
    background: radial-gradient(circle at top right, rgba(51, 163, 167, 0.1), transparent 28%), linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
    border: 1px solid rgba(17, 135, 140, 0.1);
}

.tools-grid {
    display: grid;
    gap: 20px;
}

.dashboard-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-tool-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dfe7ee;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .dashboard-tool-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
        border-color: rgba(17, 135, 140, 0.18);
    }

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tool-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef9fa;
    color: var(--teal-dark);
    font-size: 1.2rem;
    font-weight: 800;
}

.tool-status {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 5px 10px;
}

    .tool-status.secondary {
        color: var(--teal-dark);
        background: var(--teal-soft);
    }

.tool-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--text-main);
}

.tool-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    min-height: 76px;
}

.tool-card-actions {
    margin-top: 20px;
}

.dashboard-tool-card .tool-card-actions .btn {
    min-width: 94px;
}

/* Shared preview / toolbar */
.rotate-inline-status {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.files-card {
    position: sticky;
    top: 24px;
    align-self: start;
    height: fit-content;
}

.preview-card {
    height: fit-content;
}

.pdf-preview-layout {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    align-items: start;
}

.thumbs-panel {
    max-height: 820px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    padding-right: 12px;
}

.thumb-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .thumb-item:hover {
        border-color: var(--teal-main);
        box-shadow: 0 4px 16px rgba(17, 135, 140, 0.1);
    }

    .thumb-item.selected {
        border-color: var(--teal-dark);
        box-shadow: 0 0 0 2px rgba(17, 135, 140, 0.14);
        background: #edf9fa;
    }

    .thumb-item.range-selected {
        background: #fff7ef;
        border-color: var(--orange-border);
    }

    .thumb-item.range-start,
    .thumb-item.range-end {
        border-color: var(--orange-main);
        box-shadow: 0 0 0 2px rgba(255, 103, 0, 0.16);
    }

.thumb-canvas {
    width: 100%;
    display: block;
    border-radius: 8px;
    background: #fff;
}

.thumb-label {
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
    margin-top: 6px;
    font-weight: 700;
}

.preview-main {
    overflow: auto;
}

.preview-canvas {
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

/* Split / Watermark shared top layout */
.split-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.split-equal-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.split-card-header {
    min-height: 28px;
    margin-bottom: 14px;
}

.split-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.split-settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, 420px);
    gap: 16px;
}

.split-range-grid,
.watermark-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px));
    gap: 16px;
}

.split-upload-zone {
    position: relative;
    flex: 1;
    min-height: 280px;
    border: 2px dashed var(--orange-border);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange-light-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
    overflow: hidden;
    cursor: pointer;
}

    .split-upload-zone:hover,
    .split-upload-zone.is-dragover {
        border-color: var(--orange-main);
        box-shadow: 0 14px 30px rgba(251, 133, 0, 0.16);
        background: linear-gradient(180deg, #fff6eb 0%, #ffe2bf 100%);
        transform: translateY(-1px);
    }

.split-upload-inner {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
}

.split-plus-button {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--orange-main);
    border: 2px solid var(--orange-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
    font-weight: 300;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.split-upload-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    max-width: 460px;
}

.split-upload-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.watermark-preview-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 10px;
}

/* Merge / Rotate shared top toolbar */
.merge-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.merge-toolbar-status {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.merge-toolbar-right {
    display: flex;
    align-items: center;
}

/* Merge list */
.merge-native-input,
.merge-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.merge-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.merge-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.merge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.merge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    transition: all 0.16s ease;
}

    .merge-item:hover {
        border-color: rgba(17, 135, 140, 0.24);
        background: #fbfefe;
    }

.merge-item-selected {
    border-color: var(--teal-main);
    box-shadow: 0 0 0 2px rgba(17, 135, 140, 0.1);
    background: #eef9fa;
}

.merge-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.merge-order-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e6f6f7;
    color: var(--teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.merge-file-text {
    min-width: 0;
}

.merge-file-name {
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.merge-file-meta {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.merge-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Empty state */
.tool-empty-state {
    text-align: center;
    padding: 30px 24px;
}

    .tool-empty-state h4 {
        margin: 0;
        color: var(--text-main);
    }

/* Validation helpers */
.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Responsive */
@media (max-width: 1400px) {
    .dashboard-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .pdf-preview-layout {
        grid-template-columns: 1fr;
    }

    .files-card {
        position: static;
    }

    .thumbs-panel {
        max-height: 220px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
        display: flex;
        gap: 12px;
    }

    .thumb-item {
        min-width: 120px;
        margin-bottom: 0;
    }
}

@media (max-width: 1100px) {
    .split-top-grid {
        grid-template-columns: 1fr;
    }

    .split-equal-card {
        min-height: unset;
    }

    .split-settings-header {
        align-items: stretch;
    }

        .split-settings-header .btn {
            width: 100%;
        }

    .split-upload-zone {
        min-height: 240px;
    }

    .split-upload-title {
        font-size: 1.35rem;
    }

    .split-plus-button {
        width: 76px;
        height: 76px;
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding-bottom: 18px;
    }

    .main-content {
        padding: 18px;
    }

    .main-surface {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-content,
    .tool-card,
    .upload-card,
    .files-card,
    .preview-card {
        padding: 20px;
    }

    .merge-toolbar-right .btn {
        width: 100%;
    }

    .merge-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .merge-item-left {
        width: 100%;
    }

    .split-settings-grid,
    .split-range-grid,
    .watermark-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-tools-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
