/* PDF Tool Specific Overrides */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.file-item:hover {
    border-color: var(--input-border);
    box-shadow: var(--shadow-hover);
}

.file-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.file-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF3B30, #D70015);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(215, 0, 21, 0.2);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.compression-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
}

.level-option {
    padding: 8px 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.level-option:hover {
    color: var(--text-main);
}

.level-option.active {
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.advanced-options {
    display: none;
    padding: 16px;
    background: var(--dropzone-bg);
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

.advanced-options.visible {
    display: block;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Progress Bar */
.progress-wrapper {
    height: 6px;
    background: var(--tag-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
    display: none;
}

.progress-wrapper.visible {
    display: block;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Stats Badge */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #E1F8E8;
    color: #059669;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
}

.icon-btn.remove-btn {
    color: #FF3B30;
    opacity: 0.6;
    margin-left: auto;
}

.icon-btn.remove-btn:hover {
    opacity: 1;
    background: rgba(255, 59, 48, 0.1);
}

@media (max-width: 600px) {
    .file-header-row {
        flex-wrap: wrap;
    }

    .compression-controls {
        max-width: 100%;
    }

    .file-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.hidden {
    display: none !important;
}

/* Mobile Layout Optimizations */
@media (max-width: 640px) {
    .app-shell {
        padding-left: 0;
        padding-right: 0;
        padding-top: 20px;
    }

    .tool-container {
        padding: 0;
        max-width: 100% !important;
    }

    .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 20px !important;
    }

    .guide-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-top: 24px;
    }

    .hero-compact {
        margin-bottom: 4px !important;
        padding: 0;
    }

    .hero-compact h1 {
        font-size: 1.75rem;
        margin-bottom: 6px;
        padding: 0 16px;
    }

    .hero-compact p {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 16px;
    }
}