/**
 * 🎨 PDF TOOLS - Styles
 * =====================
 * 
 * Interface moderne et harmonisée pour les outils PDF
 * - Layout responsive
 * - Upload zones visuelles
 * - Messages et résultats intégrés
 * - Mode sombre compatible
 */

/* ========== LAYOUT PRINCIPAL ========== */
.main-content {
    flex: 1;
    padding: var(--space-lg) 0;
    background: var(--bg-primary);
}

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.page-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: var(--font-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.page-header__icon {
    font-size: var(--font-3xl);
    color: var(--primary);
}

.page-header__subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-header__tutorial {
    margin-top: var(--space-lg);
}

/* ========== NAVIGATION DES OUTILS ========== */
.pdf-tools__navigation {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.pdf-tools__navigation-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.pdf-tools__navigation-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.pdf-tools__nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: var(--font-medium);
}

.pdf-tools__nav-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pdf-tools__nav-link--active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.pdf-tools__nav-link--active .pdf-tools__nav-icon {
    color: white;
}

.pdf-tools__nav-icon {
    font-size: var(--font-xl);
    color: var(--primary);
}

.pdf-tools__nav-text {
    font-size: var(--font-md);
}

/* ========== SECTIONS D'OUTILS ========== */
.pdf-tools__sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.pdf-tools__section {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.pdf-tools__section-header {
    margin-bottom: var(--space-lg);
}

.pdf-tools__section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.pdf-tools__section-icon {
    font-size: var(--font-xl);
    color: var(--primary);
}

.pdf-tools__usecase-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.pdf-tools__hint-icon {
    color: var(--primary);
    font-size: var(--font-lg);
    margin-top: 2px;
}

.pdf-tools__hint-text {
    color: var(--text-primary);
    font-size: var(--font-sm);
    line-height: 1.5;
    margin: 0;
}

/* ========== ZONES D'UPLOAD ========== */
.pdf-tools__upload-zone {
    margin-bottom: var(--space-lg);
}

.pdf-tools__file-input {
    display: none;
}

.pdf-tools__file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 120px;
}

.pdf-tools__file-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pdf-tools__upload-icon {
    font-size: var(--font-3xl);
    color: var(--primary);
}

.pdf-tools__upload-text {
    font-size: var(--font-md);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.pdf-tools__file-list {
    margin-top: var(--space-lg);
}

.pdf-tools__preview {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* ========== OPTIONS DE COMPRESSION ========== */
.pdf-tools__options {
    margin-bottom: var(--space-lg);
}

.pdf-tools__options-title {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.pdf-tools__compression-levels {
    display: grid;
    gap: var(--space-md);
}

.pdf-tools__compression-level {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pdf-tools__compression-level:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pdf-tools__radio {
    accent-color: var(--primary);
}

.pdf-tools__level-info {
    flex: 1;
}

.pdf-tools__level-name {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pdf-tools__level-desc {
    display: block;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========== BOUTONS D'ACTION ========== */
.pdf-tools__actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

.pdf-tools__action-btn {
    min-width: 200px;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-md);
}

.pdf-tools__action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== BARRE DE PROGRESSION ========== */
.pdf-tools__progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: none;
}

.pdf-tools__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdf-tools__progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pdf-tools__progress-text {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-lg);
    z-index: 1101;
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

.pdf-tools__progress-text i {
    font-size: var(--font-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== LISTES DE FICHIERS ========== */
.file-list-header {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.file-list-header::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.file-list-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: move;
}

.file-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.file-item-handle {
    color: var(--text-secondary);
    cursor: grab;
}

.file-item-handle:active {
    cursor: grabbing;
}

.file-item .material-icons {
    color: var(--primary);
    font-size: var(--font-lg);
}

.file-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: var(--font-medium);
    font-size: var(--font-sm);
    word-break: break-word;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.remove-btn .material-icons {
    font-size: var(--font-md);
}

/* ========== CONTRÔLES DE PAGES (SPLIT) ========== */
.pages-selection-header {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pages-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.control-btn--danger {
    color: var(--danger);
    border-color: var(--danger-border);
}

.control-btn--danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

.control-btn .material-icons {
    font-size: var(--font-md);
}

.group-pages-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.group-pages-option label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: var(--font-sm);
    cursor: pointer;
    margin: 0;
}

.group-pages-option input[type="checkbox"] {
    accent-color: var(--primary);
}

.pages-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.pages-info strong {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.page-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 200px;
    position: relative;
}

.page-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.page-item.selected::before {
    content: '✓';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
}

.page-number {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
}

.page-preview {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.page-preview canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
}

.page-preview.loading {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-xs);
}

.page-preview.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-xs);
}

/* ========== ÉTATS DE COMPRESSION ========== */
.compression-stats {
    padding: var(--space-lg);
    background: var(--success-light);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.compression-stats p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.compression-stats p:last-child {
    margin-bottom: 0;
    font-weight: var(--font-semibold);
    color: var(--success);
}

.compression-warning {
    padding: var(--space-lg);
    background: var(--warning-light);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.compression-warning p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.compression-warning p:first-child {
    font-weight: var(--font-semibold);
    color: var(--warning);
}

.compression-warning p:last-child {
    margin-bottom: 0;
}

.compression-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

/* ========== BARRES DE PROGRESSION LOCALES (legacy) ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
}

.compression-progress {
    padding: var(--space-lg);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    text-align: center;
}

.compression-progress p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.compression-step {
    font-weight: var(--font-semibold);
    color: var(--primary);
}

.compression-error {
    padding: var(--space-lg);
    background: var(--danger-light);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.compression-error p {
    margin: 0;
    color: var(--danger);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
}

/* ========== INFORMATIONS DE FICHIER ========== */
.file-info {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.file-info p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.file-info p:last-child {
    margin-bottom: 0;
}

.file-info p::before {
    content: '📄';
    font-size: var(--font-md);
}

/* ========== RÉSULTATS ========== */
.pdf-tools__results {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.pdf-tools__message {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
}

.pdf-tools__message--success {
    background: var(--success-light);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.pdf-tools__message--error {
    background: var(--danger-light);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.pdf-tools__message--info {
    background: var(--info-light);
    border: 1px solid var(--info-border);
    color: var(--info);
}

.pdf-tools__message-icon {
    font-size: var(--font-lg);
}

.pdf-tools__message-text {
    flex: 1;
}

.pdf-tools__message-content {
    flex: 1;
}

.pdf-tools__message-title {
    font-size: var(--font-md);
    font-weight: var(--font-semibold);
    margin: 0 0 var(--space-sm) 0;
    color: inherit;
}

.pdf-tools__result-files {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0 0;
}

.pdf-tools__result-file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--font-sm);
}

.pdf-tools__result-file:last-child {
    margin-bottom: 0;
}

.pdf-tools__result-file i {
    font-size: var(--font-md);
    opacity: 0.8;
}

/* ========== TOASTS ========== */
.pdf-tools__toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.pdf-tools__toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.pdf-tools__toast--success {
    background: var(--success);
    color: white;
}

.pdf-tools__toast--error {
    background: var(--danger);
    color: white;
}

.pdf-tools__toast--info {
    background: var(--info);
    color: white;
}

.pdf-tools__toast-icon {
    font-size: var(--font-lg);
}

.pdf-tools__toast-text {
    font-size: var(--font-sm);
}

/* ========== BOUTON D'AIDE FLOTTANT ========== */
.fv-help {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 100;
}

.fv-help__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-help__btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.fv-help__btn i {
    font-size: var(--font-xl);
}

/* ========== MODAL D'AIDE ========== */
.fv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.fv-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.fv-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fv-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: var(--primary);
    color: white;
}

.fv-modal__title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    margin: 0;
}

.fv-modal__icon {
    font-size: var(--font-xl);
}

.fv-modal__close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.fv-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fv-modal__body {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.fv-help-section {
    margin-bottom: var(--space-lg);
}

.fv-help-section:last-child {
    margin-bottom: 0;
}

.fv-help-section__title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.fv-help-section__title i {
    color: var(--primary);
    font-size: var(--font-lg);
}

.fv-help-section__list {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.fv-help-section__list li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.fv-help-section__case {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.fv-help-section__case:last-child {
    margin-bottom: 0;
}

.fv-help-section__case-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-md);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.fv-help-section__case-title i {
    color: var(--primary);
}

.fv-help-section__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.fv-help-section__steps {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.fv-help-section__steps li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.fv-help-section__example {
    padding: var(--space-md);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
}

.fv-help-section__example p {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
}

.fv-help-section__example p:last-child {
    margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-content {
        padding: var(--space-md) 0;
    }
    
    .page-header,
    .pdf-tools__navigation,
    .pdf-tools__section,
    .pdf-tools__results {
        margin-left: var(--space-md);
        margin-right: var(--space-md);
        padding: var(--space-md);
    }
    
    .page-header__title {
        font-size: var(--font-xl);
    }
    
    .pdf-tools__navigation-links {
        grid-template-columns: 1fr;
    }
    
    .pdf-tools__nav-link {
        padding: var(--space-md);
    }
    
    .pdf-tools__file-label {
        padding: var(--space-md);
        min-height: 100px;
    }
    
    .fv-help {
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    .fv-modal__content {
        width: 95%;
        max-height: 95%;
    }
    
    .fv-modal__header {
        padding: var(--space-md);
    }
    
    .fv-modal__title {
        font-size: var(--font-lg);
    }
    
    .fv-modal__body {
        padding: var(--space-md);
    }
    
    .fv-help-section__case {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .page-header__title {
        flex-direction: column;
        gap: var(--space-sm);
        font-size: var(--font-lg);
    }
    
    .pdf-tools__section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
        font-size: var(--font-lg);
    }
    
    .pdf-tools__usecase-hint {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-tools__action-btn {
        min-width: 150px;
        padding: var(--space-md);
    }
}
