.tool-workspace {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.workspace-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.privacy-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.privacy-alert i {
    font-size: 1.25rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.drop-zone:hover, .drop-zone.drag-active {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

.drop-icon {
    font-size: 3.5rem;
    color: #ef4444; /* PDF Red */
    margin-bottom: 1rem;
}

.drop-zone h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-size: 1.25rem;
}

.drop-zone p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* File List */
.file-list-container {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.list-header h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1rem;
}

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

.file-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255,255,255,0.06);
}

.file-item-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

.file-item-name {
    flex-grow: 1;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 60px;
    text-align: right;
}

.file-item-controls {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.1);
}

.btn-icon.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Actions */
.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.15);
}

.btn-success {
    background: #10b981;
    color: white;
    text-decoration: none;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
    border-radius: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Result Container */
.result-container {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.result-container h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.result-container p {
    color: var(--text-muted);
    margin: 0 0 2rem 0;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
