/* ==========================================================================
   DocuMorph - iLovePDF Inspired Design System & Modern Responsive UI
   ========================================================================== */

:root {
    /* Brand Colors (iLovePDF signature palette & luxury accents) */
    --brand-red: #e53238;
    --brand-red-hover: #c92228;
    --brand-red-light: rgba(229, 50, 56, 0.08);

    /* Backgrounds */
    --bg-page: #f4f5f8;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-elevated: #f8f9fa;
    --bg-input: #ffffff;

    /* Borders & Shadows */
    --border-subtle: #e2e5eb;
    --border-card: #e5e8ec;
    --border-focus: #e53238;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-modal: 0 20px 50px -10px rgba(0, 0, 0, 0.25);

    /* Typography */
    --text-heading: #1e1e24;
    --text-body: #47474f;
    --text-muted: #757580;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #0f1117;
    --bg-header: #161922;
    --bg-card: #1a1e29;
    --bg-card-hover: #202534;
    --bg-elevated: #202534;
    --bg-input: #13161f;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-focus: #e53238;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.5);

    --text-heading: #f4f5f8;
    --text-body: #a6adb9;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Header & Navigation (iLovePDF Style)
   ========================================================================== */
.ilove-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

/* Logo */
.ilove-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-heart-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ilove-logo strong {
    color: var(--brand-red);
}

/* Primary Nav */
.ilove-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 70px;
    color: var(--text-heading);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-item-link:hover, .ilove-dropdown:hover .nav-item-link {
    color: var(--brand-red);
}

.nav-count-badge {
    background-color: var(--brand-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.caret-icon {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.ilove-dropdown:hover .caret-icon {
    transform: rotate(180deg);
}

/* Dropdowns */
.ilove-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ilove-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-header);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal);
    display: none;
    padding: 16px;
    gap: 20px;
    z-index: 150;
    min-width: 480px;
}

.ilove-dropdown-menu.mega-menu {
    min-width: 520px;
}

.ilove-dropdown:hover .ilove-dropdown-menu {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.dropdown-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-heading {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    padding: 4px 8px 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-heading);
    transition: var(--transition);
}

.dropdown-link-item:hover {
    background: var(--brand-red-light);
}

.dropdown-link-item strong {
    display: block;
    font-size: 0.88rem;
}

.dropdown-link-item small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.drop-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.theme-switch-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-switch-btn:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* Auth Buttons in Header */
.auth-nav-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--text-heading) !important;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.auth-nav-link:hover {
    color: var(--brand-red) !important;
    background: var(--brand-red-light);
    border-color: rgba(229, 50, 56, 0.2);
}

.btn-signup-header {
    background-color: var(--brand-red);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}

.btn-signup-header:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 50, 56, 0.35);
}

/* Mobile Auth Section - Hidden on Desktop */
.mobile-auth-section {
    display: none !important;
}

/* User Profile Badge in Header (Desktop) */
.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    height: 38px;
}

.user-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.btn-logout-header {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-logout-header:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.btn-studio-cta {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    height: 38px;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-studio-cta:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-size: 1.2rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Hero Section (iLovePDF Style)
   ========================================================================== */
.ilove-hero {
    text-align: center;
    padding: 44px 20px 16px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto 24px;
}

.hero-description strong {
    color: var(--text-heading);
}

/* Hero Search */
.hero-search-container {
    max-width: 600px;
    margin: 0 auto 20px;
    width: 100%;
}

.search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.search-input-box:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-light);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.search-input-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-heading);
    font-family: inherit;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
}

.tab-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-pill:hover {
    background: var(--bg-elevated);
    color: var(--text-heading);
    border-color: var(--border-card);
}

.tab-pill.active {
    background-color: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
    box-shadow: 0 2px 8px rgba(229, 50, 56, 0.3);
}

/* ==========================================================================
   Tools Grid Section (iLovePDF Clean Card Layout)
   ========================================================================== */
.tools-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 50px;
    width: 100%;
}

.ilove-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ilove-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ilove-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-subtle);
}

.ilove-card:active {
    transform: scale(0.98);
}

.card-icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ilove-card:hover .card-icon-box {
    transform: scale(1.06);
}

/* Iconic Tool Colors */
.icon-purple, .drop-icon.purple { background-color: #8b5cf6; }
.icon-pink, .drop-icon.pink { background-color: #ec4899; }
.icon-emerald, .drop-icon.emerald { background-color: #10b981; }
.icon-red, .drop-icon.red { background-color: #e53238; }
.icon-blue, .drop-icon.blue { background-color: #2563eb; }
.icon-amber, .drop-icon.amber { background-color: #f59e0b; }
.icon-indigo, .drop-icon.indigo { background-color: #6366f1; }
.icon-cyan, .drop-icon.cyan { background-color: #06b6d4; }
.icon-rose, .drop-icon.rose { background-color: #e11d48; }
.icon-teal, .drop-icon.teal { background-color: #0d9488; }
.icon-fuchsia, .drop-icon.fuchsia { background-color: #c026d3; }
.icon-royal, .drop-icon.royal { background-color: #4338ca; }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.2px;
}

.card-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.search-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.search-empty-state i { font-size: 2.8rem; margin-bottom: 12px; }
.search-empty-state h3 { color: var(--text-heading); font-size: 1.25rem; }

/* ==========================================================================
   Document Library Section
   ========================================================================== */
.library-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
    width: 100%;
}

.library-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.header-titles h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-titles p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-stats-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-badge strong {
    color: var(--text-heading);
    margin-left: 4px;
}

.btn-refresh-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    cursor: pointer;
}

/* Library Table */
.library-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-action-bar {
    padding: 12px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lib-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    width: 240px;
}

.lib-search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-heading);
    font-size: 0.85rem;
    width: 100%;
}

.lib-filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.lib-tab {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.lib-tab.active, .lib-tab:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.lib-batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.btn-delete-selected {
    padding: 4px 10px;
    background: rgba(229, 50, 56, 0.1);
    color: var(--brand-red);
    border: 1px solid rgba(229, 50, 56, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.library-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    min-width: 600px;
}

.library-table thead th {
    background: var(--bg-elevated);
    padding: 12px 16px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.library-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.library-table tbody tr:hover {
    background: var(--bg-elevated);
}

.library-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.text-right { text-align: right; }

.status-badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
}

.btn-download-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: #10b981;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.empty-library-view {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.empty-folder-icon { font-size: 2.8rem; margin-bottom: 10px; }

/* ==========================================================================
   Universal Tool Modal (iLovePDF Style Big Red Button)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.tool-modal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
}

.tool-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.window-title-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.window-title-flex h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
}

.window-title-flex p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.close-window-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}
.close-window-btn:hover { color: var(--brand-red); }

.tool-window-body {
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
}

.big-upload-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    padding: 36px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.big-upload-zone:hover, .big-upload-zone.dragover {
    border-color: var(--brand-red);
    background: var(--brand-red-light);
}

.upload-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(229, 50, 56, 0.3);
}

.upload-texts h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
}

.upload-texts p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.btn-select-files {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 50, 56, 0.3);
    transition: var(--transition);
}

.btn-select-files:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-1px);
}

/* Selected Files Tray */
.selected-files-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.box-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.box-top h5 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.clear-all-link {
    background: none;
    border: none;
    color: var(--brand-red);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.files-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
}

.tray-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.tray-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.tray-item-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    font-weight: 600;
}

.tray-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.tray-item-remove:hover { color: var(--brand-red); }

/* Tool Options Panel */
.tool-settings-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opt-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opt-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-heading);
}

.opt-input {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-heading);
    font-size: 0.86rem;
    outline: none;
    width: 100%;
}

.opt-input:focus { border-color: var(--brand-red); }

.quality-buttons, .angle-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.opt-btn-pill {
    flex: 1;
    min-width: 70px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.opt-btn-pill.active {
    background: var(--brand-red-light);
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* Modal Processing Stage */
.tool-window-processing {
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner-circle {
    font-size: 3rem;
    color: var(--brand-red);
}

.process-track {
    width: 100%;
    max-width: 360px;
    height: 8px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 10px;
}

.process-fill {
    height: 100%;
    background-color: var(--brand-red);
    animation: progressPulse 1.5s infinite ease-in-out;
}

/* Modal Success Stage */
.tool-window-success {
    padding: 24px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(92vh - 80px);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.success-check-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-big-download {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(229, 50, 56, 0.4);
    transition: var(--transition);
}

.btn-big-download:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-1px);
}

.btn-reset-tool {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

.tool-window-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.btn-cancel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    color: var(--text-body);
}

.btn-execute-main {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-execute-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Authentication Pages (iLovePDF Style Login & Register)
   ========================================================================== */
.auth-body {
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.auth-helper-text {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.btn-auth-switch {
    background-color: var(--brand-red-light);
    color: var(--brand-red) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229, 50, 56, 0.2);
}

.btn-auth-switch:hover {
    background-color: var(--brand-red);
    color: #ffffff !important;
    border-color: var(--brand-red);
}

@media (max-width: 580px) {
    .auth-helper-text {
        display: none !important;
    }
    .auth-header-inner {
        padding: 0 12px;
    }
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 440px;
    padding: 32px 26px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Social buttons */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-header);
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-social:hover {
    background: var(--bg-elevated);
    border-color: var(--border-card);
}

.btn-social.google i { color: #ea4335; }
.btn-social.facebook i { color: #1877f2; }

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-heading);
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.78rem;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-with-icon input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--text-heading);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-light);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-auth-submit {
    background-color: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(229, 50, 56, 0.3);
    transition: var(--transition);
    margin-top: 4px;
}

.btn-auth-submit:hover:not(:disabled) {
    background-color: var(--brand-red-hover);
    transform: translateY(-1px);
}

.auth-card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.auth-card-footer a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   WYSIWYG Editor Modal
   ========================================================================== */
.editor-window-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1100px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.editor-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-symbol {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--brand-red-light);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.editor-inputs-col input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
}

.editor-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.editor-actions-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-save-docx {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.btn-save-pdf {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.btn-save-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    gap: 4px;
    flex-wrap: wrap;
}

.tb-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tb-divider {
    width: 1px;
    height: 18px;
    background: var(--border-subtle);
    margin: 0 3px;
}

.tb-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: none;
    color: var(--text-heading);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: var(--transition);
}

.tb-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    color: var(--brand-red);
}

.tb-btn:active {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.tb-color-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    color: var(--text-heading);
    transition: var(--transition);
}

.tb-color-picker:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

.tb-color-picker input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tb-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-heading);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.tb-select:focus {
    border-color: var(--brand-red);
}

.tb-spacer { flex: 1; }
.tb-stats { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.editor-paper-bg {
    flex: 1;
    background: var(--bg-page);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.paper-sheet {
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    max-width: 820px;
    min-height: 100%;
    padding: 40px 48px;
    border-radius: 2px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
    outline: none;
    font-size: 1rem;
    line-height: 1.7;
}

.paper-sheet h1 { font-size: 1.75rem; margin-bottom: 10px; font-weight: 800; }
.paper-sheet h2 { font-size: 1.3rem; margin-top: 14px; margin-bottom: 6px; font-weight: 700; }
.paper-sheet p { margin-bottom: 8px; }
.paper-sheet ul, .paper-sheet ol { margin-left: 18px; margin-bottom: 8px; }
.paper-sheet table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.paper-sheet table td, .paper-sheet table th { border: 1px solid #cbd5e1; padding: 6px 10px; }

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 300;
    max-width: 90vw;
}

.toast {
    background: var(--bg-header);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    box-shadow: var(--shadow-modal);
    color: var(--text-heading);
    font-size: 0.86rem;
    animation: slideIn 0.25s ease;
}

.toast.toast-success { border-left-color: #10b981; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ilove-footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-subtle);
    padding: 36px 20px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-col-main {
    max-width: 380px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-logo i { color: var(--brand-red); }
.footer-col-main p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.footer-col-links h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.footer-col-links a, .footer-col-links span {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-col-links a:hover { color: var(--brand-red); }
.footer-col-links i { color: var(--brand-red); margin-right: 6px; }

.footer-bottom {
    max-width: 1400px;
    margin: 16px auto 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes progressPulse { 0% { width: 10%; } 50% { width: 85%; } 100% { width: 95%; } }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile Phones, Tablets, Small Laptops)
   ========================================================================== */

/* Laptops & Tablets Landscape (< 1200px) */
@media (max-width: 1200px) {
    .ilove-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .header-inner {
        padding: 0 16px;
    }
    .nav-item-link {
        padding: 0 10px;
        font-size: 0.78rem;
    }
}

/* Tablets, Phablets & Mobile Phones (< 1100px) */
@media (max-width: 1100px) {
    .ilove-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .ilove-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hide heavy desktop buttons from the top bar so mobile header is ultra-clean */
    .btn-studio-cta {
        display: none;
    }

    #authControlsContainer .auth-nav-link,
    #authControlsContainer .btn-signup-header,
    #authControlsContainer .user-profile-btn,
    #authControlsContainer .btn-logout-header {
        display: none;
    }

    /* Mobile Slide-down Menu */
    .ilove-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-bottom: 2px solid var(--border-subtle);
        padding: 16px 20px;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        gap: 8px;
    }

    .ilove-nav.mobile-active .mobile-auth-section {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 14px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .mobile-auth-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ilove-nav.mobile-active .nav-item-link {
        height: 48px;
        width: 100%;
        padding: 0 12px;
        border-radius: var(--radius-sm);
        justify-content: space-between;
    }

    .ilove-nav.mobile-active .nav-item-link:hover {
        background: var(--bg-elevated);
    }

    .ilove-nav.mobile-active .ilove-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .ilove-nav.mobile-active .ilove-dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 8px 12px;
        background: var(--bg-elevated);
        border: 1px solid var(--border-subtle);
        margin-top: 4px;
        flex-direction: column;
        gap: 10px;
    }

    .ilove-nav.mobile-active .dropdown-column {
        width: 100%;
    }
}

/* Mobile Devices (< 640px) */
@media (max-width: 640px) {
    .header-inner {
        height: 60px;
        padding: 0 12px;
    }

    .ilove-logo {
        font-size: 1.25rem;
    }

    .logo-heart-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .ilove-hero {
        padding: 24px 12px 10px;
    }

    .hero-main-title {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 6px 2px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-tabs::-webkit-scrollbar { display: none; }

    .tab-pill {
        padding: 6px 14px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .tools-grid-wrapper {
        padding: 12px 12px 40px;
    }

    .ilove-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ilove-card {
        padding: 18px 16px;
    }

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

    .card-text {
        font-size: 0.82rem;
    }

    .library-section {
        padding: 0 12px 40px;
    }

    .header-titles h2 {
        font-size: 1.2rem;
    }

    .table-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .lib-search-box {
        width: 100%;
    }

    .lib-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .lib-filter-tabs::-webkit-scrollbar { display: none; }

    .modal-overlay {
        padding: 8px;
    }

    .tool-modal-window {
        max-height: 96vh;
        border-radius: var(--radius-md);
    }

    .tool-window-header {
        padding: 14px 16px;
    }

    .tool-window-body {
        padding: 16px 14px;
        gap: 14px;
    }

    .big-upload-zone {
        padding: 24px 12px;
    }

    .upload-icon-circle {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .btn-select-files {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .tool-window-footer {
        padding: 12px 16px;
    }

    .btn-execute-main {
        padding: 9px 18px;
        font-size: 0.88rem;
    }

    .editor-window-container {
        height: 96vh;
        border-radius: var(--radius-sm);
    }

    .editor-paper-bg {
        padding: 10px;
    }

    .paper-sheet {
        padding: 20px 16px;
    }

    .auth-container {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: var(--radius-sm);
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}
