:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --accent-primary: #6366f1;
    --accent-hover: #4f46e5;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styling matching original */
header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.title-group h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-group p {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-btn,
.header-btn:link,
.header-btn:visited {
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-btn-home,
.header-btn-home:link,
.header-btn-home:visited {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
}

.header-btn-home:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.header-btn-calc,
.header-btn-calc:link,
.header-btn-calc:visited {
    color: var(--accent-warning) !important;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.header-btn-calc:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24 !important;
}

.header-btn-cropper,
.header-btn-cropper:link,
.header-btn-cropper:visited {
    color: var(--accent-success) !important;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.header-btn-cropper:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399 !important;
}

.badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Main Layout */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: hidden;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    overflow: hidden;
}

/* Cards style */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dropzone Styles */
.dropzone {
    border: 2px dashed #475569;
    border-radius: var(--radius-md);
    padding: 2.2rem 1rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.dropzone-icon {
    font-size: 2.4rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.dropzone-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dropzone-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropzone.has-files {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-style: solid;
    background: rgba(99, 102, 241, 0.08);
    overflow: hidden;
    flex-wrap: wrap;
}

.dropzone.has-files .dropzone-icon {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.dropzone.has-files .dropzone-title {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.dropzone.has-files .dropzone-desc {
    display: none;
}

.file-input {
    display: none;
}

/* File List Styles */
.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.825rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.file-item:hover,
.file-item.active-file {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.12);
}

.active-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.file-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.remove-file {
    color: var(--accent-danger);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Action Stack & Buttons */
.action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.btn {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px -8px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: #334155;
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.775rem;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.btn-lg {
    padding: 14px 22px;
    font-size: 0.95rem;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.divider-text {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin: 8px 0;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: var(--card-border);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* Search & Redact Group */
.search-redact-group {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 8px 10px 8px 30px;
    color: var(--text-main);
    font-size: 0.775rem;
    outline: none;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-primary);
}

.search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Layers / Page Elements Inspector */
.layers-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    max-height: 400px;
}

.layer-search input {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-main);
    font-size: 0.775rem;
    margin-bottom: 10px;
    outline: none;
}

.layer-search input:focus {
    border-color: var(--accent-primary);
}

.layers-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.empty-layers-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 2rem 1rem;
    opacity: 0.6;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 6px 8px;
    transition: all 0.2s;
}

.layer-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.6);
}

.layer-item.highlighted {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.layer-item.deleted {
    opacity: 0.4;
    text-decoration: line-through;
}

.layer-checkbox {
    cursor: pointer;
    accent-color: var(--accent-success);
}

.layer-text-input {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--text-main);
    font-size: 0.775rem;
    font-weight: 500;
    min-width: 0;
    outline: none;
}

.layer-text-input:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--card-border);
}

.layer-nudge-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.15s;
}

.layer-nudge-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
}

.layer-delete-btn {
    border: none;
    background: transparent;
    color: var(--accent-danger);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.15s;
}

.layer-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Editor Main Panel & Workspace */
.editor-main-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workspace-header-card {
    padding: 0.75rem 1.5rem !important;
}

.workspace-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-navigator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Preview Card Layout */
.preview-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.preview-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.helper-text-bar {
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.workspace-container {
    flex: 1;
    background: #090d16;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    min-height: 400px;
}

.editor-workspace {
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 4px;
    display: none; /* Shown dynamically when pdf page is loaded */
    background: white;
}

canvas#editorCanvas {
    display: block;
    max-width: 100%;
}

.editor-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Pass events through container */
    z-index: 15;
}

/* Draggable & Editable Text Overlay Items */
.text-overlay-item {
    position: absolute;
    border: 1px dashed transparent;
    pointer-events: auto; /* Catch events on overlays */
    box-sizing: border-box;
    cursor: move;
    user-select: none;
    color: transparent; /* Render original canvas text underneath normally */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: visible;
}

.text-overlay-item:hover {
    border-color: rgba(99, 102, 241, 0.7);
    background-color: rgba(99, 102, 241, 0.05);
}

.text-overlay-item.highlighted {
    border-color: var(--accent-warning) !important;
    background-color: rgba(245, 158, 11, 0.15) !important;
}

/* Active Editing State */
.text-overlay-item.editing {
    border: 1px solid var(--accent-primary) !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    user-select: text;
    cursor: text;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Item Action Overlay Menu on Hover */
.text-overlay-item::after {
    content: "";
    display: none;
}

.item-badge-menu {
    position: absolute;
    top: -22px;
    right: -1px;
    display: none;
    gap: 2px;
    background: var(--accent-primary);
    border-radius: 4px 4px 0 0;
    padding: 2px;
    z-index: 40;
    pointer-events: auto;
}

.text-overlay-item:hover .item-badge-menu {
    display: flex;
}

.item-menu-btn {
    border: none;
    background: transparent;
    color: white;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.1s;
}

.item-menu-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Export Actions Area */
.export-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Footer style */
footer {
    border-top: 1px solid var(--card-border);
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.5);
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .app-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .sidebar-panel {
        display: contents;
    }

    .upload-card { order: 1; width: 100%; }
    .operations-card { order: 2; width: 100%; }
    .editor-main-panel { order: 3; width: 100%; }
    .layers-card { order: 4; width: 100%; }

    .card {
        padding: 1.25rem 1rem;
        width: 100%;
    }
}

/* Erase block overlay items */
.erase-overlay-item {
    position: absolute;
    border: 1.5px dashed var(--accent-danger);
    background: rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
    cursor: move;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--accent-danger);
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
    z-index: 20;
    box-shadow: inset 0 0 5px rgba(239, 68, 68, 0.1);
}

.erase-overlay-item:hover {
    border-color: #ef4444;
    background: rgba(255, 255, 255, 0.85);
}

.erase-overlay-item .item-badge-menu {
    top: -22px;
    right: -1px;
    background: var(--accent-danger);
    display: none;
    gap: 2px;
    position: absolute;
    border-radius: 4px 4px 0 0;
    padding: 2px;
    z-index: 40;
    pointer-events: auto;
}

.erase-overlay-item:hover .item-badge-menu {
    display: flex;
}

.erase-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-danger);
    cursor: se-resize;
    pointer-events: auto;
    border-radius: 2px 0 0 0;
    z-index: 30;
}

/* Header & Full-Page mobile optimization */
@media (max-width: 768px) {
    header {
        padding: 0.85rem 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo-group {
        width: 100%;
        gap: 10px;
    }

    .title-group h1 {
        font-size: 1.15rem;
    }

    .title-group p {
        font-size: 0.75rem;
    }

    .header-actions {
        width: 100%;
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .header-btn {
        font-size: 0.775rem;
        padding: 5px 10px;
    }

    .badge {
        font-size: 0.725rem;
        padding: 4px 10px;
    }

    /* Content area mobile */
    main {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    .card {
        padding: 1rem 0.85rem;
        border-radius: 12px;
    }

    .card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }

    .card-title {
        font-size: 0.95rem;
        gap: 8px;
    }

    .dropzone {
        padding: 1.5rem 0.75rem;
    }

    .dropzone-icon {
        font-size: 2rem;
    }

    .dropzone-title {
        font-size: 0.85rem;
    }

    .dropzone-desc {
        font-size: 0.75rem;
    }

    .file-item {
        padding: 6px 10px;
        font-size: 0.775rem;
    }

    .active-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.825rem;
        gap: 8px;
    }

    .btn-lg {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Workspace header */
    .workspace-header-card {
        padding: 0.6rem 0.85rem !important;
    }

    .workspace-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .page-navigator {
        justify-content: center;
        font-size: 0.8rem;
    }

    .workspace-tools {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    /* Preview card */
    .preview-card {
        min-height: 350px;
    }

    .preview-header-title {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .helper-text-bar {
        font-size: 0.7rem;
        width: 100%;
        justify-content: center;
    }

    .workspace-container {
        padding: 0.75rem;
        min-height: 280px;
    }

    /* Export actions */
    .export-actions-row {
        flex-direction: column;
        gap: 8px;
    }

    .export-actions-row .btn {
        width: 100%;
    }

    /* Layers card */
    .layers-card {
        min-height: 200px;
        max-height: 300px;
    }

    .layer-item {
        padding: 5px 6px;
        gap: 6px;
    }

    .layer-text-input {
        font-size: 0.725rem;
    }

    /* Search & Redact */
    .search-redact-group {
        width: 100%;
    }

    .search-actions {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    footer {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-group img {
        height: 34px !important;
    }

    .title-group h1 {
        font-size: 1.05rem;
    }

    .title-group p {
        font-size: 0.7rem;
    }

    .header-actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .header-btn {
        font-size: 0.725rem;
        padding: 4px 8px;
        gap: 4px;
    }

    .badge {
        font-size: 0.675rem;
        padding: 3px 7px;
        gap: 5px;
    }

    main {
        padding: 0 0.5rem;
    }

    .card {
        padding: 0.85rem 0.7rem;
        border-radius: 10px;
    }

    .card-title {
        font-size: 0.875rem;
    }

    .dropzone {
        padding: 1.25rem 0.5rem;
    }

    .dropzone-icon {
        font-size: 1.75rem;
    }

    .dropzone-title {
        font-size: 0.8rem;
    }

    .btn {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .workspace-header-card {
        padding: 0.5rem 0.7rem !important;
    }

    .page-navigator {
        font-size: 0.75rem;
        gap: 8px;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
    }

    .preview-card {
        min-height: 280px;
    }

    .workspace-container {
        padding: 0.5rem;
        min-height: 220px;
    }
}
